aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorAndi Kleen <[email protected]>2014-09-24 13:50:46 -0700
committerArnaldo Carvalho de Melo <[email protected]>2014-09-26 10:17:13 -0300
commitda88c7f78d842a6938d9adde6af87a2ce262051d (patch)
tree9a5cb01c15a56d7ca6a309ae5f570cbf593fb6e7 /tools/perf/util/scripting-engines/trace-event-python.c
parentcf8102f64c8d23f0bd4af0659bbd94d0c1d8d1c7 (diff)
perf stat: Fix --per-core on multi socket systems
On systems with more than one socket perf stat --per-core would either segfault or stop before outputting all cores. The problem was that the output code referenced the id including the socket number in the higher bits, which is far beyond any per cpu array. Mask out the socket number before referencing cpus in abs_printout. I also renamed the variable in nsec_printout to be clear what it is, even though it doesn't reference cpus. Signed-off-by: Andi Kleen <[email protected]> Acked-by: Stephane Eranian <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Stephane Eranian <[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/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions