Revision f2ebf8ffe7af10bff02d34addbebd9199de65ed2 authored by Riccardo Mancini on 15 July 2021, 16:07:21 UTC, committed by Arnaldo Carvalho de Melo on 15 July 2021, 20:34:39 UTC
ASan reports several memory leaks running: # perf test "88: Check open filename arg using perf trace + vfs_getname" The second of these leaks is caused by the arg_fmt field of syscall not being deallocated. This patch adds a new function syscall__exit which is called on all syscalls.table entries in trace__exit, which will free the arg_fmt field. 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/d68f25c043d30464ac9fa79c3399e18f429bca82.1626343282.git.rickyman7@gmail.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 6c7f0ab
File | Mode | Size |
---|---|---|
controller | ||
endpoint | ||
hotplug | ||
pcie | ||
switch | ||
Kconfig | -rw-r--r-- | 7.1 KB |
Makefile | -rw-r--r-- | 1.1 KB |
access.c | -rw-r--r-- | 14.8 KB |
ats.c | -rw-r--r-- | 11.0 KB |
bus.c | -rw-r--r-- | 10.2 KB |
ecam.c | -rw-r--r-- | 5.6 KB |
host-bridge.c | -rw-r--r-- | 2.4 KB |
iov.c | -rw-r--r-- | 27.0 KB |
irq.c | -rw-r--r-- | 2.4 KB |
mmap.c | -rw-r--r-- | 2.6 KB |
msi.c | -rw-r--r-- | 40.6 KB |
of.c | -rw-r--r-- | 16.9 KB |
p2pdma.c | -rw-r--r-- | 26.2 KB |
pci-acpi.c | -rw-r--r-- | 35.8 KB |
pci-bridge-emul.c | -rw-r--r-- | 11.9 KB |
pci-bridge-emul.h | -rw-r--r-- | 3.3 KB |
pci-driver.c | -rw-r--r-- | 41.7 KB |
pci-label.c | -rw-r--r-- | 5.6 KB |
pci-mid.c | -rw-r--r-- | 1.6 KB |
pci-pf-stub.c | -rw-r--r-- | 1.2 KB |
pci-stub.c | -rw-r--r-- | 2.3 KB |
pci-sysfs.c | -rw-r--r-- | 37.8 KB |
pci.c | -rw-r--r-- | 175.5 KB |
pci.h | -rw-r--r-- | 22.5 KB |
probe.c | -rw-r--r-- | 84.8 KB |
proc.c | -rw-r--r-- | 9.7 KB |
quirks.c | -rw-r--r-- | 200.4 KB |
remove.c | -rw-r--r-- | 3.7 KB |
rom.c | -rw-r--r-- | 5.3 KB |
search.c | -rw-r--r-- | 12.1 KB |
setup-bus.c | -rw-r--r-- | 59.0 KB |
setup-irq.c | -rw-r--r-- | 1.6 KB |
setup-res.c | -rw-r--r-- | 12.9 KB |
slot.c | -rw-r--r-- | 9.7 KB |
syscall.c | -rw-r--r-- | 2.7 KB |
vc.c | -rw-r--r-- | 12.0 KB |
vpd.c | -rw-r--r-- | 12.8 KB |
xen-pcifront.c | -rw-r--r-- | 27.3 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...