aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorRiccardo Mancini <rickyman7@gmail.com>2021-07-15 18:07:22 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2021-07-15 17:35:18 -0300
commit3cb4d5e00e037c70f239173bdd399a7e6040830f (patch)
tree48c4058f9cc808c2f7dd32c8412fa3cbd4c99082 /net
parentperf trace: Free syscall->arg_fmt (diff)
downloadlinux-dev-3cb4d5e00e037c70f239173bdd399a7e6040830f.tar.xz
linux-dev-3cb4d5e00e037c70f239173bdd399a7e6040830f.zip
perf trace: Free syscall tp fields in evsel->priv
ASan reports several memory leaks running: # perf test "88: Check open filename arg using perf trace + vfs_getname" The third of these leaks is related to evsel->priv fields of sycalls never being deallocated. This patch adds the function evlist__free_syscall_tp_fields which iterates over all evsels in evlist, matching syscalls, and calling the missing frees. This new function is called at the end of trace__run, right before calling evlist__delete. Signed-off-by: Riccardo Mancini <rickyman7@gmail.com> Cc: Ian Rogers <irogers@google.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lore.kernel.org/lkml/46526611904ec5ff2768b59014e3afce8e0197d1.1626343282.git.rickyman7@gmail.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions