summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tapset/nd_syscalls.stp2
-rw-r--r--tapset/syscalls.stp2
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"