Skip to content

Commit 3eddb03

Browse files
committed
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: Masami Hiramatsu (Google) <[email protected]> Reviewed-by: Steven Rostedt (Google) <[email protected]>
1 parent 41051da commit 3eddb03

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

kernel/trace/trace_kprobe.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2114,10 +2114,6 @@ static __init int kprobe_trace_self_tests_init(void)
21142114

21152115

21162116
end:
2117-
ret = dyn_events_release_all(&trace_kprobe_ops);
2118-
if (WARN_ONCE(ret, "error on cleaning up probes."))
2119-
warn++;
2120-
21212117
/*
21222118
* Wait for the optimizer work to finish. Otherwise it might fiddle
21232119
* with probes in already freed __init text.

0 commit comments

Comments
 (0)