aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
diff options
context:
space:
mode:
authorRiccardo Mancini <[email protected]>2021-07-15 16:07:18 +0000
committerArnaldo Carvalho de Melo <[email protected]>2021-07-15 20:28:14 +0000
commitfaf3ac305d61341c74e5cdd9e41daecce7f67bfe (patch)
tree5560aa949d07cc8af16c75a9355780b48d9c0a28 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
parentperf script: Release zstd data (diff)
downloadkernel-faf3ac305d61341c74e5cdd9e41daecce7f67bfe.tar.gz
kernel-faf3ac305d61341c74e5cdd9e41daecce7f67bfe.zip
perf script: Fix memory 'threads' and 'cpus' leaks on exit
ASan reports several memory leaks while running: # perf test "82: Use vfs_getname probe to get syscall args filenames" Two of these are caused by some refcounts not being decreased on perf-script exit, namely script.threads and script.cpus. This patch adds the missing __put calls in a new perf_script__exit function, which is called at the end of cmd_script. This patch concludes the fixes of all remaining memory leaks in perf test "82: Use vfs_getname probe to get syscall args filenames". Signed-off-by: Riccardo Mancini <[email protected]> Fixes: cfc8874a48599249 ("perf script: Process cpu/threads maps") Cc: Ian Rogers <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lore.kernel.org/lkml/5ee73b19791c6fa9d24c4d57f4ac1a23609400d7.1626343282.git.rickyman7@gmail.com Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions