public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Keshavamurthy Anil S <anil.s.keshavamurthy@intel.com>
To: systemtap@sources.redhat.com
Cc: anil.s.keshavamurthy@intel.com
Subject: compile error accessing fn args
Date: Fri, 28 Oct 2005 23:35:00 -0000	[thread overview]
Message-ID: <20051028163529.A27228@unix-os.sc.intel.com> (raw)

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


             reply	other threads:[~2005-10-28 23:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-28 23:35 Keshavamurthy Anil S [this message]
2005-10-29  6:27 ` Roland McGrath

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051028163529.A27228@unix-os.sc.intel.com \
    --to=anil.s.keshavamurthy@intel.com \
    --cc=systemtap@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).