public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* compile error accessing fn args
@ 2005-10-28 23:35 Keshavamurthy Anil S
  2005-10-29  6:27 ` Roland McGrath
  0 siblings, 1 reply; 2+ messages in thread
From: Keshavamurthy Anil S @ 2005-10-28 23:35 UTC (permalink / raw)
  To: systemtap; +Cc: anil.s.keshavamurthy

Hi,
	The systemtap snapshot 20051022 can't
compile the below script. However the
same script can be compiled from systemtap snapshot
20051008.
-------------------------------------
#!stap -v 

#test script

probe kernel.function("blk_rq_map_sg") {
  print("nr sectors = " . string($rq->nr_sectors) . "\n")
  exit()
}

probe begin {
  print ("Probe Begin\n")
}
probe end {
  log("Probe End")
}
-----------------------------------------


Here is error output
------------------
Pass 3: translated to C into "/tmp/stapMyOVmJ/stap_21402.c"
Running make -C "/lib/modules/2.6.9-prep.rcu/build" M="/tmp/stapMyOVmJ" modules
make: Entering directory `/home/askeshav/linux/RHEL4u3/linux-2.6.9'
  CC [M]  /tmp/stapMyOVmJ/stap_21402.o
/tmp/stapMyOVmJ/stap_21402.c: In function `function_get_rq_0':
/tmp/stapMyOVmJ/stap_21402.c:170: error: syntax error before '}' token
/tmp/stapMyOVmJ/stap_21402.c:174: error: syntax error before '}' token

Inspecting the generated c code, looks like 
translator is missing a semicolon on that line.

Cheers,
-Anil


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

* Re: compile error accessing fn args
  2005-10-28 23:35 compile error accessing fn args Keshavamurthy Anil S
@ 2005-10-29  6:27 ` Roland McGrath
  0 siblings, 0 replies; 2+ messages in thread
From: Roland McGrath @ 2005-10-29  6:27 UTC (permalink / raw)
  To: Keshavamurthy Anil S; +Cc: systemtap

Use the current cvs sources, it's fixed.

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

end of thread, other threads:[~2005-10-29  6:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-28 23:35 compile error accessing fn args Keshavamurthy Anil S
2005-10-29  6:27 ` Roland McGrath

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).