diff options
author | Namhyung Kim <[email protected]> | 2014-08-21 10:15:45 +0900 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2014-08-22 13:12:12 -0300 |
commit | c09a7e755c025558cb882fa20a5f30da738536fa (patch) | |
tree | 4d39a5d1ee49bcb397152df63d829fad4c18eb0c /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | fbe2af45f6bd27ee69fd775303c936c3af4a4807 (diff) |
perf hists browser: Cleanup callchain print functions
The hist_browser__show_callchain() and friends don't need to be that
complex. They're splitted in 3 pieces - one for traversing top-level
tree, other one for special casing first chains in the top-level
entries, and last one for recursive traversing inner trees. It led to
code duplication and unnecessary complexity IMHO.
Simplify the function and consolidate the logic into a single function
- it can recursively call itself. A little difference in printing
callchains in top-level tree can be handled with a small change.
It should have no functional change.
Signed-off-by: Namhyung Kim <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[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/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions