diff options
author | Zhao Lei <[email protected]> | 2016-06-20 17:37:19 +0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2016-07-09 13:56:15 +0200 |
commit | 8e546bfafb3121ed25c73a0c02311ec58459344a (patch) | |
tree | 9f141218a3f5d40170e280cc1d5669fc08e47324 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 9acacc2ac525ef1397af63b15cef7bb77a823c06 (diff) |
sched/cpuacct: Use loop to consolidate code in cpuacct_stats_show()
In cpuacct_stats_show() we currently we have copies of similar code,
for each cpustat(system/user) variant.
Use a loop instead to consolidate the code. This will also work better
if we extend the CPUACCT_STAT_NSTATS type.
Signed-off-by: Zhao Lei <[email protected]>
Cc: KOSAKI Motohiro <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/b0597d4224655e9f333f1a6224ed9654c7d7d36a.1466415271.git.zhaolei@cn.fujitsu.com
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions