This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Getting at parameters on kernel.inline probes?
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: "Alan D. Brunelle" <Alan dot Brunelle at hp dot com>
- Cc: systemtap at sourceware dot org
- Date: 29 Aug 2006 14:51:45 -0400
- Subject: Re: Getting at parameters on kernel.inline probes?
- References: <44F460CD.7050500@hp.com>
"Alan D. Brunelle" <Alan.Brunelle@hp.com> writes:
> I'm looking into a quick blktrace -> SystemTAP set of functions, and
> ran into a problem right at the start:
> // static inline void blk_add_trace_rq(struct request_queue *q,
> // struct request *rq,
> // u32 what)
> probe kernel.inline("blk_add_trace_rq") {
> [...]
We know of some problems with inline functions and argument
resolution, specifically with respect to debug information quality.
Some of these have been improved with later versions of gcc. Until
your situation gets fully diagnosed, a workaround may be to modify
blktrace to take away the inline declaration and probe kernel.function
instead.
> % stap -vg stap_bt.stp
BTW, there is no need for -g for this script.
- FChE