Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1378631
| From | Huang Shijie <shijie.huang@arm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] kprobes: add the "tls" argument for j_do_fork |
| Date | 2016-04-14 11:20 +0200 |
| Message-ID | <rnLBp-7R1-15@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
The patch "3033f14a clone: support passing tls argument via C rather ..."
added the tls argument for _do_fork(). The patch adds the "tls" argument
for j_do_fork to make it match _do_fork().
Acked-by: Steve Capper <steve.capper@arm.com>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Huang Shijie <shijie.huang@arm.com>
---
samples/kprobes/jprobe_example.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
2.5.5
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] kprobes: add the "tls" argument for j_do_fork Huang Shijie <shijie.huang@arm.com> - 2016-04-14 11:20 +0200
csiph-web