This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/10820] stap -L should take varaible location list into account
- From: "wenji dot huang at oracle dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 28 Oct 2009 08:08:43 -0000
- Subject: [Bug translator/10820] stap -L should take varaible location list into account
- References: <20091021113820.10820.mjw@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From wenji dot huang at oracle dot com 2009-10-28 08:08 -------
Created an attachment (id=4332)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4332&action=view)
patch and example
With this patch,
$ stap -L 'kernel.function("tc_fill_tclass")'
kernel.function("tc_fill_tclass@net/sched/sch_api.c:1435") $skb:struct sk_buff*
$q:struct Qdisc* $cl:long unsigned int $pid:u32 $seq:u32 $flags:u16 $event:int
$nlh:struct nlmsghdr* $b:unsigned char* $cl_ops:struct Qdisc_class_ops const*
We can see $tcm and $d are eliminated. And to access the listed variables,
$ stap -p4 -e 'probe
kernel.function("tc_fill_tclass"){print($skb+$q+$cl+$pid+$seq+$flags+$event+$nlh+$b+$cl_ops)}'
stap_16232.ko
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10820
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.