From: "David J. Wilder" <dwilder@us.ibm.com>
To: systemtap@sourceware.org
Subject: Arguments of inlines
Date: Mon, 05 Jan 2009 23:00:00 -0000 [thread overview]
Message-ID: <1231196411.10874.14.camel@wilder.ibm.com> (raw)
I am probing the following inline defined in include/rdma/ib_verbs.h:
static inline int ib_post_send(struct ib_qp *qp,
struct ib_send_wr *send_wr,
struct ib_send_wr **bad_send_wr)
{
return qp->device->post_send(qp, send_wr, bad_send_wr);
}
And accessing the qp argument, however stap complains it can not
reference $qp. It this a limitation? Any ideas?
My probe:
probe module("ib_ipoib").function("ib_post_send").inline
{
printf("ib_post_send: ib_qpv = %p \n",$qp);
}
Pass 1: parsed user script and 45 library script(s) in
390usr/0sys/405real ms.
probe ib_post_send@include/rdma/ib_verbs.h:1345 module=ib_ipoib
reloc=.text section=.text pc=0x2591b48
probe ib_post_send@include/rdma/ib_verbs.h:1345 module=ib_ipoib
reloc=.text section=.text pc=0x2593400
probe ib_post_send@include/rdma/ib_verbs.h:1345 module=ib_ipoib
reloc=.text section=.text pc=0x2593844
probe ib_post_send@include/rdma/ib_verbs.h:1345 module=ib_ipoib
reloc=.text section=.text pc=0x2597264
probe ib_post_send@include/rdma/ib_verbs.h:1345 module=ib_ipoib
reloc=.text section=.text pc=0x2598b08
semantic error: not accessible at this address: identifier '$qp' at
rdma.stp:6:4
$ rpm -qa | grep systemtap
systemtap-0.7.2-2.el5
systemtap-runtime-0.7.2-2.el5
$ stap -V
SystemTap translator/driver (version 0.7.2/0.137 non-git sources)
Copyright (C) 2005-2008 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
Thanks
Dave
next reply other threads:[~2009-01-05 23:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-05 23:00 David J. Wilder [this message]
2009-01-05 23:14 ` Roland McGrath
2009-01-05 23:49 ` Masami Hiramatsu
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=1231196411.10874.14.camel@wilder.ibm.com \
--to=dwilder@us.ibm.com \
--cc=systemtap@sourceware.org \
/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).