From 63ef59c300b42bfda9fe53549f24ce09fcb360b6 Mon Sep 17 00:00:00 2001 From: Srikar Dronamraju Date: Fri, 21 Nov 2008 15:03:53 +0530 Subject: Handle a clone case which should behave like fork --- tapset/nd_syscalls.stp | 2 +- tapset/syscalls.stp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tapset/nd_syscalls.stp b/tapset/nd_syscalls.stp index 5a258e75..a0e5286b 100644 --- a/tapset/nd_syscalls.stp +++ b/tapset/nd_syscalls.stp @@ -1033,7 +1033,7 @@ probe nd_syscall.fork = kernel.function("do_fork") { if (!__is_user_regs(regs)) { name = "fork_kernel_thread" argstr = __fork_flags(clone_flags) - } else if (clone_flags == 17) + } else if (clone_flags & 17) name = "fork" else if (clone_flags & 0x4000) name = "vfork" diff --git a/tapset/syscalls.stp b/tapset/syscalls.stp index 89b3c730..4744412a 100644 --- a/tapset/syscalls.stp +++ b/tapset/syscalls.stp @@ -956,7 +956,7 @@ probe syscall.fork = kernel.function("do_fork") { if (!__is_user_regs(regs)) { name = "fork_kernel_thread" argstr = __fork_flags(clone_flags) - } else if (clone_flags == 17) + } else if (clone_flags & 17) name = "fork" else if (clone_flags & 0x4000) name = "vfork" -- cgit