Skip to content

Commit

Permalink
kprobes: add the "tls" argument for j_do_fork
Browse files Browse the repository at this point in the history
Commit 3033f14 ("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 <[email protected]>
Acked-by: Steve Capper <[email protected]>
Reviewed-by: Josh Triplett <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Thiago Macieira <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Huang Shijie authored and torvalds committed May 21, 2016
1 parent c8cdd2b commit 603ac5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/kprobes/jprobe_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 603ac5d

Please sign in to comment.