projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dda18a
)
tracing: add missing trace_probe_log_clear for eprobes
author
Paul Cacheux
<paulcacheux@gmail.com>
Sun, 4 May 2025 18:27:52 +0000
(20:27 +0200)
committer
Masami Hiramatsu (Google)
<mhiramat@kernel.org>
Fri, 9 May 2025 23:44:50 +0000
(08:44 +0900)
Make sure trace_probe_log_clear is called in the tracing
eprobe code path, matching the trace_probe_log_init call.
Link:
https://lore.kernel.org/all/20250504-fix-trace-probe-log-race-v3-1-9e99fec7eddc@gmail.com/
Signed-off-by: Paul Cacheux <paulcacheux@gmail.com>
Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
kernel/trace/trace_eprobe.c
patch
|
blob
|
history
diff --git
a/kernel/trace/trace_eprobe.c
b/kernel/trace/trace_eprobe.c
index
c08355c
..
916555f
100644
(file)
--- a/
kernel/trace/trace_eprobe.c
+++ b/
kernel/trace/trace_eprobe.c
@@
-969,10
+969,13
@@
static int __trace_eprobe_create(int argc, const char *argv[])
goto error;
}
}
+ trace_probe_log_clear();
return ret;
+
parse_error:
ret = -EINVAL;
error:
+ trace_probe_log_clear();
trace_event_probe_cleanup(ep);
return ret;
}