diff options
author | Linyu Yuan | 2022-06-27 10:19:05 +0800 |
---|---|---|
committer | Steven Rostedt (Google) | 2022-07-24 19:11:17 -0400 |
commit | b774926c733850037b15c50f893383aa71bd8695 (patch) | |
tree | 23f022f4d2c8e6160e1cfa25562f4e33a5640aba /kernel/trace | |
parent | ded4a2f1ae608772dd95e819f04bbaba1f0e78b1 (diff) |
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 'kernel/trace')
-rw-r--r-- | kernel/trace/trace_eprobe.c | 1 |
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]); |