summaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorPeter Zijlstra2009-07-24 14:42:10 +0200
committerIngo Molnar2009-08-02 13:47:54 +0200
commite53c0994709166b111fbe9162d1a16ece7dfc45b (patch)
tree5182e8f91bffae8fcbe05a9b86e761f84b0f079e /kernel/fork.c
parenttracing, perf_counter: Add help text to CONFIG_EVENT_PROFILE (diff)
downloadkernel-qcow2-linux-e53c0994709166b111fbe9162d1a16ece7dfc45b.tar.gz
kernel-qcow2-linux-e53c0994709166b111fbe9162d1a16ece7dfc45b.tar.xz
kernel-qcow2-linux-e53c0994709166b111fbe9162d1a16ece7dfc45b.zip
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/fork.c')
0 files changed, 0 insertions, 0 deletions