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