diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-07-24 14:42:10 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-08-02 13:47:54 +0200 |
commit | e53c0994709166b111fbe9162d1a16ece7dfc45b (patch) | |
tree | 5182e8f91bffae8fcbe05a9b86e761f84b0f079e /kernel/irq/handle.c | |
parent | 470a1396c25c27b4aff08b14d5c9cd9b3da15e09 (diff) |
perf_counter: Collapse inherit on read()
Currently the counter value returned by read() is the value of
the parent counter, to which child counters are only fed back
on child exit.
Thus read() can return rather erratic (and meaningless) numbers
depending on the state of the child processes.
Change this by always iterating the full child hierarchy on
read() and sum all counters.
Suggested-by: Corey Ashford <cjashfor@linux.vnet.ibm.com>
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 'kernel/irq/handle.c')
0 files changed, 0 insertions, 0 deletions