This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/10820] stap -L should take varaible location list into account


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]