This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/6898] marker $$args / $$parms
- From: "wenji dot huang at oracle dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 23 Jul 2009 09:12:48 -0000
- Subject: [Bug translator/6898] marker $$args / $$parms
- References: <20080917185740.6898.fche@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.