summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_eprobe.c
diff options
context:
space:
mode:
authorLinyu Yuan <quic_linyyuan@quicinc.com>2022-06-27 04:19:05 +0200
committerSteven Rostedt (Google) <rostedt@goodmis.org>2022-07-25 01:11:17 +0200
commitb774926c733850037b15c50f893383aa71bd8695 (patch)
tree23f022f4d2c8e6160e1cfa25562f4e33a5640aba /kernel/trace/trace_eprobe.c
parentmac80211: tracing: Use the new __vstring() helper (diff)
downloadlinux-b774926c733850037b15c50f893383aa71bd8695.tar.xz
linux-b774926c733850037b15c50f893383aa71bd8695.zip
tracing: eprobe: Add missing log index
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>
Diffstat (limited to '')
-rw-r--r--kernel/trace/trace_eprobe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/trace/trace_eprobe.c b/kernel/trace/trace_eprobe.c
index 7d4478525c66..b805b570305f 100644
--- 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]);