summaryrefslogtreecommitdiffstats
path: root/tapset/syscalls2.stp
diff options
context:
space:
mode:
authorzhaolei <zhaolei>2007-08-29 06:12:35 +0000
committerzhaolei <zhaolei>2007-08-29 06:12:35 +0000
commitc3a95b2f2416eb035cf98d2935a9ad0f79ec4bf4 (patch)
tree87b0dd005c16af24a11e4af8683aa9e828276b95 /tapset/syscalls2.stp
parent03745668896c08fbca930331218583f01b38825c (diff)
downloadsystemtap-steved-c3a95b2f2416eb035cf98d2935a9ad0f79ec4bf4.tar.gz
systemtap-steved-c3a95b2f2416eb035cf98d2935a9ad0f79ec4bf4.tar.xz
systemtap-steved-c3a95b2f2416eb035cf98d2935a9ad0f79ec4bf4.zip
2007-08-29 Zhaolei <zhaolei@cn.fujitsu.com>
* syscalls2.stp (sysfs): Set argstr's format different by value of option arg.
Diffstat (limited to 'tapset/syscalls2.stp')
-rw-r--r--tapset/syscalls2.stp9
1 files changed, 8 insertions, 1 deletions
diff --git a/tapset/syscalls2.stp b/tapset/syscalls2.stp
index 8cda0465..292bf91e 100644
--- a/tapset/syscalls2.stp
+++ b/tapset/syscalls2.stp
@@ -2464,7 +2464,14 @@ probe syscall.sysfs = kernel.function("sys_sysfs") {
option = $option
arg1 = $arg1
arg2 = $arg2
- argstr = sprintf("%d, %d, %d", $option, $arg1, $arg2)
+ if (option == 1)
+ argstr = sprintf("%d, %s", $option, user_string_quoted($arg1))
+ else if (option == 2)
+ argstr = sprintf("%d, %d, %p", $option, $arg1, $arg2)
+ else if (option == 3)
+ argstr = sprintf("%d", $option)
+ else
+ argstr = sprintf("%d, %d, %d", $option, $arg1, $arg2)
}
probe syscall.sysfs.return = kernel.function("sys_sysfs").return {
name = "sysfs"