Skip to contentSkip to conversation

kprobes: add the "tls" argument for j_do_fork

PATCH New [email protected] 1 participant 1 message May 21, 2016 kprobes

lore
Share & tools
lore
#0 lore raw

PATCH 160/162 kprobes: add the "tls" argument for j_do_fork

From: Huang Shijie <[email protected]>
Subject: kprobes: add the "tls" argument for j_do_fork

3033f14a ("clone: support passing tls argument via C rather than pt_regs magic") added the tls argument for _do_fork(). This patch adds the "tls" argument for j_do_fork to make it match _do_fork().

---

 samples/kprobes/jprobe_example.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
samples/kprobes/jprobe_example.c renamed from samples/kprobes/jprobe_example.c~kprobes-add-the-tls-argument-for-j_do_fork +1 -1
diff -puN samples/kprobes/jprobe_example.c~kprobes-add-the-tls-argument-for-j_do_fork samples/kprobes/jprobe_example.c
@@ -25,7 +25,7 @@
 /* Proxy routine having the same arguments as actual _do_fork() routine */
 static long j_do_fork(unsigned long clone_flags, unsigned long stack_start,
 	      unsigned long stack_size, int __user *parent_tidptr,
-	      int __user *child_tidptr)
+	      int __user *child_tidptr, unsigned long tls)
 {
 	pr_info("jprobe: clone_flags = 0x%lx, stack_start = 0x%lx "
 		"stack_size = 0x%lx\n", clone_flags, stack_start, stack_size);

_