Commit 3eddb031 authored by Masami Hiramatsu (Google)'s avatar Masami Hiramatsu (Google)
Browse files

tracing/kprobe: Remove cleanup code unrelated to selftest

This cleanup all kprobe events code is not related to the selftest
itself, and it can fail by the reason unrelated to this test.
If the test is successful, the generated events are cleaned up.
And if not, we cannot guarantee that the kprobe events will work
correctly. So, anyway, there is no need to clean it up.

Link: https://lore.kernel.org/all/171811265627.85078.16897867213512435822.stgit@devnote2/



Signed-off-by: default avatarMasami Hiramatsu (Google) <mhiramat@kernel.org>
Reviewed-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
parent 41051daa
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -2114,10 +2114,6 @@ static __init int kprobe_trace_self_tests_init(void)


end:
	ret = dyn_events_release_all(&trace_kprobe_ops);
	if (WARN_ONCE(ret, "error on cleaning up probes."))
		warn++;

	/*
	 * Wait for the optimizer work to finish. Otherwise it might fiddle
	 * with probes in already freed __init text.