]> git.baikalelectronics.ru Git - kernel.git/commit
tracing/probe: Reject exactly same probe event
authorMasami Hiramatsu <mhiramat@kernel.org>
Wed, 18 Sep 2019 08:55:46 +0000 (17:55 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 19 Sep 2019 15:09:16 +0000 (11:09 -0400)
commit71b94ee3cac8c93d9a4a57e32425f61c9611fe80
treeeb5e1017f436280c01a4d0ef65710437bfaa6d88
parente8a4e8aeffca717f4d1071a8c01a526497609fe1
tracing/probe: Reject exactly same probe event

Reject exactly same probe events as existing probes.

Multiprobe allows user to define multiple probes on same
event. If user appends a probe which exactly same definition
(same probe address and same arguments) on existing event,
the event will record same probe information twice.
That can be confusing users, so reject it.

Link: http://lkml.kernel.org/r/156879694602.31056.5533024778165036763.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_kprobe.c
kernel/trace/trace_probe.h
kernel/trace/trace_uprobe.c