diff options
author | Peter Zijlstra <peterz@infradead.org> | 2020-08-29 16:03:24 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2020-10-12 19:27:27 +0300 |
commit | d741bf41d7c7db4898bacfcb020353cddc032fd8 (patch) | |
tree | 9944b2c314717793ebd6be0982dab4bd4f82b2a1 /include/linux/sched.h | |
parent | 476c5818c37a7828d558f34ae01f0c32f8bfadde (diff) | |
download | linux-d741bf41d7c7db4898bacfcb020353cddc032fd8.tar.xz |
kprobes: Remove kretprobe hash
The kretprobe hash is mostly superfluous, replace it with a per-task
variable.
This gets rid of the task hash and it's related locking.
Note that this may change the kprobes module-exported API for kretprobe
handlers. If any out-of-tree kretprobe user uses ri->rp, use
get_kretprobe(ri) instead.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/159870620431.1229682.16325792502413731312.stgit@devnote2
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index afe01e232935..5911805cafde 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1315,6 +1315,10 @@ struct task_struct { struct callback_head mce_kill_me; #endif +#ifdef CONFIG_KRETPROBES + struct llist_head kretprobe_instances; +#endif + /* * New fields for task_struct should be added above here, so that * they are included in the randomized portion of task_struct. |