aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorGlauber Costa <[email protected]>2011-11-28 14:45:19 -0200
committerIngo Molnar <[email protected]>2011-12-06 20:51:21 +0100
commit54c707e98de9ca899e6552a47c797c62c45885ee (patch)
tree61ec9be62b2b3db0201aca7c8eddb5e49239baf5 /tools/perf/scripts/python/check-perf-trace.py
parentb39e66eaf9c573f38133e894256caeaf9fd2a528 (diff)
sched/accounting: Re-use scheduler statistics for the root cgroup
Right now, after we collect tick statistics for user and system and store them in a well known location, we keep the same statistics again for cpuacct. Since cpuacct is hierarchical, the numbers for the root cgroup should be absolutely equal to the system-wide numbers. So it would be better to just use it: this patch changes cpuacct accounting in a way that the cpustat statistics are kept in a struct kernel_cpustat percpu array. In the root cgroup case, we just point it to the main array. The rest of the hierarchy walk can be totally disabled later with a static branch - but I am not doing it here. Signed-off-by: Glauber Costa <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Cc: Paul Tuner <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions