diff options
author | 2024-02-23 14:04:58 -0800 | |
---|---|---|
committer | 2024-02-26 08:30:17 -0800 | |
commit | bae4d1f86e4d6750d2fc11e040c7d49b180c4b8d (patch) | |
tree | 58637f6874f93b9092ea8d357faae6c903e1b50e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | perf bpf: Check that the minimal vmlinux.h installed is the latest one (diff) | |
download | wireguard-linux-bae4d1f86e4d6750d2fc11e040c7d49b180c4b8d.tar.xz wireguard-linux-bae4d1f86e4d6750d2fc11e040c7d49b180c4b8d.zip |
perf data convert: Fix segfault when converting to json when cpu_desc isn't set
Arm64 doesn't have Model in /proc/cpuinfo and, thus, cpu_desc doesn't get
assigned.
Running
$ perf data convert --to-json perf.data.json
ends up calling output_json_string() with NULL pointer, which causes a
segmentation fault.
Signed-off-by: Ilkka Koskinen <ilkka@os.amperecomputing.com>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: James Clark <james.clark@arm.com>
Cc: Evgeny Pistun <kotborealis@awooo.ru>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240223220458.15282-1-ilkka@os.amperecomputing.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions