This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: HRTIMER_REL undefined
- From: Srikar Dronamraju <srikar at linux dot vnet dot ibm dot com>
- To: manjunath k <kmanjunat at gmail dot com>
- Cc: systemtap at sourceware dot org
- Date: Mon, 7 Jan 2008 13:47:33 +0530
- Subject: Re: HRTIMER_REL undefined
- References: <2c09dd780801062249l43654cf3jd682fb39d44320ce@mail.gmail.com>
- Reply-to: Srikar Dronamraju <srikar at linux dot vnet dot ibm dot com>
Whats is your kernel version and SystemTap version?
There were changes in Kernel around 2.6.21 which made HRTIMER_REL to
HRTIMER_MODE_REL. The versions of SystemTap later than April 2007
should have changes to work with these kernel changes.
Regards
Srikar
* manjunath k <kmanjunat@gmail.com> [2008-01-07 12:19:37]:
> Hi,
>
> When im trying to build the stap scripts with the HRTIMER_REL option,
> an error is noticed as "HRTIMER_REL" undefined.
>
> When the following line is commented the stap scripts start building
> without an error.
>
> "module_cflags << " += $(call stap_check_build,
> $(SYSTEMTAP_RUNTIME)/autoconf-hrtimer-rel.c, -DSTAPCONF_HRTIMER_REL,)"
>
> The runtime/autoconf-hrtimer-rel.c has the following code in it
>
> #include <linux/hrtimer.h>
> int x = HRTIMER_REL; /* as opposed to HRTIMER_MODE_REL */
>
> But the HRTIMER_REL is not defined in linux/hrtimer.h header file.
>
> What is the solution for this problem ?
>
> - Manjunath