From: akpm@linux-foundation.org Subject: [patch 160/162] kprobes: add the "tls" argument for j_do_fork Date: Fri, 20 May 2016 17:04:30 -0700 Message-ID: <573fa60e.+VbHtSsJFV6afGYr%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:53224 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751657AbcEUAEc (ORCPT ); Fri, 20 May 2016 20:04:32 -0400 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: torvalds@linux-foundation.org, mm-commits@vger.kernel.org, akpm@linux-foundation.org, shijie.huang@arm.com, josh@joshtriplett.org, luto@kernel.org, masami.hiramatsu.pt@hitachi.com, steve.capper@arm.com, thiago.macieira@intel.com From: Huang Shijie 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 Acked-by: Steve Capper Reviewed-by: Josh Triplett Cc: Masami Hiramatsu Cc: Andy Lutomirski Cc: Thiago Macieira Signed-off-by: Andrew Morton --- 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); _