From 877c58b82e3e6b2943b257c320c78604b612a1e6 Mon Sep 17 00:00:00 2001 From: gatieme Date: Wed, 12 Apr 2017 20:33:06 +0800 Subject: [PATCH] test_mkdir... --- .../3-components_of_a_systemTap_script/test_mkdir.stp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/study/debug/tools/systemtap/00-code/3-components_of_a_systemTap_script/test_mkdir.stp b/study/debug/tools/systemtap/00-code/3-components_of_a_systemTap_script/test_mkdir.stp index 4336688..0b3e3f7 100644 --- a/study/debug/tools/systemtap/00-code/3-components_of_a_systemTap_script/test_mkdir.stp +++ b/study/debug/tools/systemtap/00-code/3-components_of_a_systemTap_script/test_mkdir.stp @@ -1,12 +1,18 @@ probe kernel.function("sys_mkdir").call { - printf("enter %s\n", $pathname); + log("enter"); } probe kernel.function("sys_mkdir").return { - printf("exit %s\n", $pathname); + log("exit\n\n"); +} + + +probe syscall.mkdir +{ + printf ("%s(%d) mkdir (%s)\n", execname( ), pid( ), argstr) } probe begin