Skip to content

Commit 603ac5d

Browse files
Huang Shijietorvalds
authored andcommitted
kprobes: add the "tls" argument for j_do_fork
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 <shijie.huang@arm.com> Acked-by: Steve Capper <steve.capper@arm.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Cc: Andy Lutomirski <luto@kernel.org> Cc: Thiago Macieira <thiago.macieira@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent c8cdd2b commit 603ac5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎samples/kprobes/jprobe_example.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/* Proxy routine having the same arguments as actual _do_fork() routine */
2626
static long j_do_fork(unsigned long clone_flags, unsigned long stack_start,
2727
unsigned long stack_size, int __user *parent_tidptr,
28-
int __user *child_tidptr)
28+
int __user *child_tidptr, unsigned long tls)
2929
{
3030
pr_info("jprobe: clone_flags = 0x%lx, stack_start = 0x%lx "
3131
"stack_size = 0x%lx\n", clone_flags, stack_start, stack_size);

0 commit comments

Comments
 (0)