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>
This commit is contained in:
parent
ded4a2f1ae
commit
b774926c73
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user