diff options
author | Peter Zijlstra <[email protected]> | 2009-12-16 17:55:54 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2009-12-16 18:30:11 +0100 |
commit | f4c4176f21533e22bcc292030da72bcfa105f5b8 (patch) | |
tree | 9e4376f5ff4dc3fb0f333faca94f219570df9af8 /net/lapb/lapb_in.c | |
parent | 9b33827de63539c7c3314ddf890fb216e4acf3d8 (diff) |
perf events: Allow per-task-per-cpu counters
In order to allow for per-task-per-cpu counters, useful for
scalability when profiling task hierarchies, we allow installing
events with event->cpu != -1 in task contexts.
__perf_event_sched_in() already skips events where ->cpu
mis-matches the current cpu, fix up __perf_install_in_context()
and __perf_event_enable() to also respect this filter.
This does lead to vary hard to interpret enabled/running times
for such counters, but I don't see a simple solution for that.
Signed-off-by: Peter Zijlstra <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: [email protected]
Cc: Paul Mackerras <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions