diff options
author | Namhyung Kim <[email protected]> | 2014-12-23 13:36:21 +0900 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-01-08 11:26:56 -0300 |
commit | 5ca8271022da8583f0d618aeda5b2bae785e7882 (patch) | |
tree | 4bda325a1b225d454049cbf638c53ce38999df24 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ed9eb845d7916b2bc863e5b93c82e18be8faf032 (diff) |
perf hists: Fix children sort key behavior
When perf report --children resorts output fields, it tries to put
caller above the callee. But this was only meaningful for a same thread
and doing this requires callchain enabled. So fix its check before
comparing the callchain depth.
This also changes the hist accumulation tests: In test 3, xmalloc in
bash thread should be above than other perf threads due to alphabetical
order of comm string. Also it's under page_fault in bash thread since
alphabetical order of dso name. The sys_perf_event_open in perf thread
is put on the last line since it's self overhead is 0.
In test 4, the sys_perf_event_open is put above other perf entries that
have same children overhead since its callchain depth is smaller.
Signed-off-by: Namhyung Kim <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions