projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ded4a2f
)
tracing: eprobe: Add missing log index
author
Linyu Yuan
<quic_linyyuan@quicinc.com>
Mon, 27 Jun 2022 02:19:05 +0000
(10:19 +0800)
committer
Steven Rostedt (Google)
<rostedt@goodmis.org>
Sun, 24 Jul 2022 23:11:17 +0000
(19:11 -0400)
Add trace_probe_log_set_index(1) to allow report correct error
if user input wrong SYSTEM.EVENT format.
Link:
https://lore.kernel.org/all/1656296348-16111-2-git-send-email-quic_linyyuan@quicinc.com/
Reviewed-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Linyu Yuan <quic_linyyuan@quicinc.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace_eprobe.c
patch
|
blob
|
history
diff --git
a/kernel/trace/trace_eprobe.c
b/kernel/trace/trace_eprobe.c
index
7d44785
..
b805b57
100644
(file)
--- a/
kernel/trace/trace_eprobe.c
+++ b/
kernel/trace/trace_eprobe.c
@@
-881,6
+881,7
@@
static int __trace_eprobe_create(int argc, const char *argv[])
if (!is_good_name(event) || !is_good_name(group))
goto parse_error;
+ trace_probe_log_set_index(1);
sys_event = argv[1];
ret = traceprobe_parse_event_name(&sys_event, &sys_name, buf2,
sys_event - argv[1]);