aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorYicong Yang <[email protected]>2023-12-07 08:16:34 +0000
committerArnaldo Carvalho de Melo <[email protected]>2023-12-13 16:53:43 +0000
commit813900d19b923fc1b241c1ce292472f68066092b (patch)
tree4bde296d11b0d4112d86083f2d6852d9edf5719f /tools/perf/scripts/python/netdev-times.py
parentlibperf cpumap: Add for_each_cpu() that skips the "any CPU" case (diff)
downloadkernel-813900d19b923fc1b241c1ce292472f68066092b.tar.gz
kernel-813900d19b923fc1b241c1ce292472f68066092b.zip
perf header: Fix one memory leakage in perf_event__fprintf_event_update()
When dump the raw trace by `perf report -D` ASan reports a memory leakage in perf_event__fprintf_event_update(). It shows that we allocated a temporary cpumap for dumping the CPUs but doesn't release it and it's not used elsewhere. Fix this by free the cpumap after the dumping. Fixes: c853f9394b7bc189 ("perf tools: Add perf_event__fprintf_event_update function") Reviewed-by: Ian Rogers <[email protected]> Signed-off-by: Yicong Yang <[email protected]> Acked-by: Namhyung Kim <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Jonathan Cameron <[email protected]> Cc: Junhao He <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions