summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>2025-03-13 04:00:10 +0300
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>2025-03-15 02:37:47 +0300
commitac91052f0ae5be9e46211ba92cc31c0e3b0a933a (patch)
treead38089c78a06052af51003a0eb6f4f413c17701 /tools/perf/scripts/python/event_analyzing_sample.py
parent0a8bb688aa824863716fc570d818b8659a79309d (diff)
downloadlinux-ac91052f0ae5be9e46211ba92cc31c0e3b0a933a.tar.xz
tracing: tprobe-events: Fix leakage of module refcount
When enabling the tracepoint at loading module, the target module refcount is incremented by find_tracepoint_in_module(). But it is unnecessary because the module is not unloaded while processing module loading callbacks. Moreover, the refcount is not decremented in that function. To be clear the module refcount handling, move the try_module_get() callsite to trace_fprobe_create_internal(), where it is actually required. Link: https://lore.kernel.org/all/174182761071.83274.18334217580449925882.stgit@devnote2/ Fixes: 57a7e6de9e30 ("tracing/fprobe: Support raw tracepoints on future loaded modules") Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions