aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/python.c
diff options
context:
space:
mode:
authorGanapatrao Kulkarni <[email protected]>2017-10-16 18:32:22 +0000
committerArnaldo Carvalho de Melo <[email protected]>2017-12-05 18:43:51 +0000
commitde3d0f12be476271d03f1ddb5a7c241c2f07f126 (patch)
tree30ab74be22c53de2ea52809ec540b64e91b57ed2 /tools/perf/util/python.c
parentperf vendor events arm64: Add ThunderX2 implementation defined pmu core events (diff)
downloadkernel-de3d0f12be476271d03f1ddb5a7c241c2f07f126.tar.gz
kernel-de3d0f12be476271d03f1ddb5a7c241c2f07f126.zip
perf pmu: Add check for valid cpuid in perf_pmu__find_map()
On some platforms(arm/arm64) which uses cpus map to get corresponding cpuid string, cpuid can be NULL for PMUs other than CORE PMUs. Adding check for NULL cpuid in function perf_pmu__find_map to avoid segmentation fault. Signed-off-by: Ganapatrao Kulkarni <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Ganapatrao Kulkarni <[email protected]> Cc: Jayachandran C <[email protected]> Cc: Jonathan Cameron <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Robert Richter <[email protected]> Cc: Shaokun Zhang <[email protected]> Cc: Will Deacon <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/python.c')
0 files changed, 0 insertions, 0 deletions