This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: HRTIMER_REL undefined



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]