[patch 160/162] kprobes: add the "tls" argument for j_do_fork

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Huang Shijie <shijie.huang@xxxxxxx>
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().

Signed-off-by: Huang Shijie <shijie.huang@xxxxxxx>
Acked-by: Steve Capper <steve.capper@xxxxxxx>
Reviewed-by: Josh Triplett <josh@xxxxxxxxxxxxxxxx>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@xxxxxxxxxxx>
Cc: Andy Lutomirski <luto@xxxxxxxxxx>
Cc: Thiago Macieira <thiago.macieira@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 samples/kprobes/jprobe_example.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN samples/kprobes/jprobe_example.c~kprobes-add-the-tls-argument-for-j_do_fork samples/kprobes/jprobe_example.c
--- a/samples/kprobes/jprobe_example.c~kprobes-add-the-tls-argument-for-j_do_fork
+++ a/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);
_
--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux