From: Huang Shijie Date: Sat, 21 May 2016 00:04:30 +0000 (-0700) Subject: kprobes: add the "tls" argument for j_do_fork X-Git-Tag: v4.9.8~2047^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=603ac5df86df5bfd26ed4d9c310dd196b07590ae;p=platform%2Fkernel%2Flinux-rpi3.git kprobes: add the "tls" argument for j_do_fork Commit 3033f14ab78c ("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 Acked-by: Steve Capper Reviewed-by: Josh Triplett Cc: Masami Hiramatsu Cc: Andy Lutomirski Cc: Thiago Macieira Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/samples/kprobes/jprobe_example.c b/samples/kprobes/jprobe_example.c index c285a3b..c3108bb 100644 --- a/samples/kprobes/jprobe_example.c +++ b/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);