aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2022-11-14 23:02:24 +0000
committerArnaldo Carvalho de Melo <[email protected]>2022-11-16 12:51:23 +0000
commit2cf38236d94605586da0ed0f9ec432bf0eb415c3 (patch)
treef97ed18f4abd5dd1c82f64eb660d113a3f50d23a /tools/perf/util/scripting-engines/trace-event-python.c
parentperf stat: Move condition to print_footer() (diff)
downloadkernel-2cf38236d94605586da0ed0f9ec432bf0eb415c3.tar.gz
kernel-2cf38236d94605586da0ed0f9ec432bf0eb415c3.zip
perf stat: Factor out prefix display
The prefix is needed for interval mode to print timestamp at the beginning of each line. But the it's tricky for the metric only mode since it doesn't print every evsel and combines the metrics into a single line. So it needed to pass 'first' argument to print_counter_aggrdata() to determine if the current event is being printed at first. This makes the code hard to read. Let's move the logic out of the function and do it in the outer print loop. This would enable further cleanups later. Signed-off-by: Namhyung Kim <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Athira Jajeev <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: James Clark <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Xing Zhengjun <[email protected]> Link: https://lore.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