diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-06-24 15:11:59 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-25 15:39:07 -0400 |
commit | bfbd3381e63aa2a14c6706afb50ce4630aa0d9a2 (patch) | |
tree | 9b165a3068b8a7976ea34e633013165855bb5f51 /include/linux/kthread.h | |
parent | 38b200d67636a30cb8dc1508137908e7a649b5c9 (diff) |
perf_counter: Implement more accurate per task statistics
With the introduction of PERF_EVENT_READ we have the
possibility to provide accurate counter values for
individual tasks in a task hierarchy.
However, due to the lazy context switching used for similar
counter contexts our current per task counts are way off.
In order to maintain some of the lazy switch benefits we
don't disable it out-right, but simply iterate the active
counters and flip the values between the contexts.
This only reads the counters but does not need to reprogram
the full PMU.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/kthread.h')
0 files changed, 0 insertions, 0 deletions