* Arguments of inlines
@ 2009-01-05 23:00 David J. Wilder
2009-01-05 23:14 ` Roland McGrath
2009-01-05 23:49 ` Masami Hiramatsu
0 siblings, 2 replies; 3+ messages in thread
From: David J. Wilder @ 2009-01-05 23:00 UTC (permalink / raw)
To: systemtap
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Arguments of inlines
2009-01-05 23:00 Arguments of inlines David J. Wilder
@ 2009-01-05 23:14 ` Roland McGrath
2009-01-05 23:49 ` Masami Hiramatsu
1 sibling, 0 replies; 3+ messages in thread
From: Roland McGrath @ 2009-01-05 23:14 UTC (permalink / raw)
To: David J. Wilder; +Cc: systemtap
It might be handy for some level of verbosity to give
debugfilename+dwarf_dieoffset (hex) of the variable/formal_parameter
in question for those errors. That makes something easy to search for
in eu-readelf --debug-dump=info output and quickly verify what the
compiler gave us for double-checking/bug-reporting.
Thanks,
Roland
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Arguments of inlines
2009-01-05 23:00 Arguments of inlines David J. Wilder
2009-01-05 23:14 ` Roland McGrath
@ 2009-01-05 23:49 ` Masami Hiramatsu
1 sibling, 0 replies; 3+ messages in thread
From: Masami Hiramatsu @ 2009-01-05 23:49 UTC (permalink / raw)
To: David J. Wilder; +Cc: systemtap
Hi,
David J. Wilder wrote:
> 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?
I think this has been filed in bz1155
http://sources.redhat.com/bugzilla/show_bug.cgi?id=1155
Thanks,
--
Masami Hiramatsu
Software Engineer
Hitachi Computer Products (America) Inc.
Software Solutions Division
e-mail: mhiramat@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-01-05 23:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-05 23:00 Arguments of inlines David J. Wilder
2009-01-05 23:14 ` Roland McGrath
2009-01-05 23:49 ` Masami Hiramatsu
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).