public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* HRTIMER_REL undefined
@ 2008-01-07  6:49 manjunath k
  2008-01-07  8:23 ` Srikar Dronamraju
  0 siblings, 1 reply; 4+ messages in thread
From: manjunath k @ 2008-01-07  6:49 UTC (permalink / raw)
  To: systemtap

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: HRTIMER_REL undefined
  2008-01-07  6:49 HRTIMER_REL undefined manjunath k
@ 2008-01-07  8:23 ` Srikar Dronamraju
  2008-03-28  6:10   ` manjunath k
  0 siblings, 1 reply; 4+ messages in thread
From: Srikar Dronamraju @ 2008-01-07  8:23 UTC (permalink / raw)
  To: manjunath k; +Cc: systemtap



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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: HRTIMER_REL undefined
  2008-01-07  8:23 ` Srikar Dronamraju
@ 2008-03-28  6:10   ` manjunath k
  2008-03-28 13:54     ` Frank Ch. Eigler
  0 siblings, 1 reply; 4+ messages in thread
From: manjunath k @ 2008-03-28  6:10 UTC (permalink / raw)
  To: Srikar Dronamraju; +Cc: systemtap

Hi,

  Ive changed the HRTIMER_REL to HRTIMER_MODE_REL in the
src/runtime/autoconf-hrtimer-rel.c file and it is working fine. Is this
fix OK.

-Manjunath

On 1/7/08, Srikar Dronamraju <srikar@linux.vnet.ibm.com> wrote:
>
>
>  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
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: HRTIMER_REL undefined
  2008-03-28  6:10   ` manjunath k
@ 2008-03-28 13:54     ` Frank Ch. Eigler
  0 siblings, 0 replies; 4+ messages in thread
From: Frank Ch. Eigler @ 2008-03-28 13:54 UTC (permalink / raw)
  To: manjunath k; +Cc: Srikar Dronamraju, systemtap


"manjunath k" <kmanjunat@gmail.com> writes:

>   Ive changed the HRTIMER_REL to HRTIMER_MODE_REL in the
> src/runtime/autoconf-hrtimer-rel.c file and it is working fine. Is
> this fix OK.

Probably not: the autoconf tests are there to let the systemtap
runtime work with kernels old and new.  Maybe we need a new
autoconf-hrtimer-mode-rel.c file.

- FChE

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-03-28 13:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-07  6:49 HRTIMER_REL undefined manjunath k
2008-01-07  8:23 ` Srikar Dronamraju
2008-03-28  6:10   ` manjunath k
2008-03-28 13:54     ` Frank Ch. Eigler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).