summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2013-08-02 18:29:55 +0200
committerIngo Molnar <mingo@kernel.org>2013-08-16 17:55:51 +0200
commit948b26b6ddd08a57cb95ebb0dc96fde2edd5c383 (patch)
tree7b358b7d8ab23ffadd170aba686768a74d7b8b01 /init
parentfc3b86d673e41ac66b4ba5b75a90c2fcafb90089 (diff)
downloadop-kernel-dev-948b26b6ddd08a57cb95ebb0dc96fde2edd5c383.zip
op-kernel-dev-948b26b6ddd08a57cb95ebb0dc96fde2edd5c383.tar.gz
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 <jolsa@redhat.com> Suggested-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Tested-by: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Stephane Eranian <eranian@google.com> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1375460996-16329-3-git-send-email-fweisbec@gmail.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud