diff options
| author | Mao Han <[email protected]> | 2019-07-11 02:38:40 +0000 |
|---|---|---|
| committer | Paul Walmsley <[email protected]> | 2019-07-31 19:26:10 +0000 |
| commit | b399abe7c21e248dc6224cadc9a378a2beb10cfd (patch) | |
| tree | cb747e3d9ad777a4fa9a027368da790b7ac498b8 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | Linux 5.3-rc2 (diff) | |
| download | kernel-b399abe7c21e248dc6224cadc9a378a2beb10cfd.tar.gz kernel-b399abe7c21e248dc6224cadc9a378a2beb10cfd.zip | |
riscv: Fix perf record without libelf support
This patch fix following perf record error by linking vdso.so with
build id.
perf.data perf.data.old
[ perf record: Woken up 1 times to write data ]
free(): double free detected in tcache 2
Aborted
perf record use filename__read_build_id(util/symbol-minimal.c) to get
build id when libelf is not supported. When vdso.so is linked without
build id, the section size of PT_NOTE will be zero, buf size will
realloc to zero and cause memory corruption.
Signed-off-by: Mao Han <[email protected]>
Cc: Paul Walmsley <[email protected]>
Cc: Palmer Dabbelt <[email protected]>
Cc: Albert Ou <[email protected]>
Signed-off-by: Paul Walmsley <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions
