aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/python.c
diff options
context:
space:
mode:
authorFrederic Weisbecker <[email protected]>2013-08-02 16:29:55 +0000
committerIngo Molnar <[email protected]>2013-08-16 15:55:51 +0000
commit948b26b6ddd08a57cb95ebb0dc96fde2edd5c383 (patch)
tree7b358b7d8ab23ffadd170aba686768a74d7b8b01 /tools/perf/util/python.c
parentperf: Roll back callchain buffer refcount under the callchain mutex (diff)
downloadkernel-948b26b6ddd08a57cb95ebb0dc96fde2edd5c383.tar.gz
kernel-948b26b6ddd08a57cb95ebb0dc96fde2edd5c383.zip
perf: Account freq events globally
Freq events may not always be affine to a particular CPU. As such, account_event_cpu() may crash if we account per cpu a freq event that has event->cpu == -1. To solve this, lets account freq events globally. In practice this doesn't change much the picture because perf tools create per-task perf events with one event per CPU by default. Profiling a single CPU is usually a corner case so there is no much point in optimizing things that way. Reported-by: Jiri Olsa <[email protected]> Suggested-by: Peter Zijlstra <[email protected]> Signed-off-by: Frederic Weisbecker <[email protected]> Tested-by: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Stephane Eranian <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/python.c')
0 files changed, 0 insertions, 0 deletions