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/6898] marker $$args / $$parms


------- Additional Comments From wenji dot huang at oracle dot com  2009-07-23 09:12 -------
Created an attachment (id=4079)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4079&action=view)
patch and testcase

With this patch, stap can support $$vars or $$parms for kernel marker. 
For example in FC11.

$ stap -l 'kernel.mark("ext4_da_writepage")'
kernel.mark("ext4_da_writepage").format("dev %s ino %lu page_index %lu")

$ stap -e 'probe kernel.mark("ext4_da_writepage") { printf("%s\n",$$parms)}'
$arg1=dm-0 $arg2=0x3fc25 $arg3=0x0
$arg1=dm-0 $arg2=0x3fc25 $arg3=0x1
$arg1=dm-0 $arg2=0x3fc25 $arg3=0x2
$arg1=dm-0 $arg2=0x3fc25 $arg3=0x3
$arg1=dm-0 $arg2=0x3fc25 $arg3=0x4
$arg1=dm-0 $arg2=0x3fc25 $arg3=0x5
$arg1=dm-0 $arg2=0x3fc25 $arg3=0x6
$arg1=dm-0 $arg2=0x3fc25 $arg3=0x7

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=6898

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