aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stat-cpi.py
diff options
context:
space:
mode:
authorJiri Olsa <[email protected]>2016-01-06 10:49:55 +0000
committerArnaldo Carvalho de Melo <[email protected]>2016-01-06 23:11:16 +0000
commit15d2b9956b41ffb5961b897bf61cdc09f722dfbf (patch)
treef8f151bf4f42597a632fb44bcc0605dd139caa4d /tools/perf/scripts/python/stat-cpi.py
parentperf script: Add python support for stat events (diff)
downloadkernel-15d2b9956b41ffb5961b897bf61cdc09f722dfbf.tar.gz
kernel-15d2b9956b41ffb5961b897bf61cdc09f722dfbf.zip
perf cpumap: Fix cpu conversion in cpu_map__from_entries
We can't convert u16 cpu_map_entries::cpu[x] value directly to int, because it could hold -1, which would be converted as 65535. Adding special treatment for -1, which is not real cpu number, to be converted to (int -1). Reported-by: Arnaldo Carvalho de Melo <[email protected]> Signed-off-by: Jiri Olsa <[email protected]> Cc: David Ahern <[email protected]> Cc: Kan Liang <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions