Skip to content

Commit dd8633b

Browse files
namhyungacmel
authored andcommitted
perf test: Add cgroup summary test case for 'perf trace'
$ sudo ./perf test -vv 112 112: perf trace summary: --- start --- test child forked, pid 1018940 testing: perf trace -s -- true testing: perf trace -S -- true testing: perf trace -s --summary-mode=thread -- true testing: perf trace -S --summary-mode=total -- true testing: perf trace -as --summary-mode=thread --no-bpf-summary -- true testing: perf trace -as --summary-mode=total --no-bpf-summary -- true testing: perf trace -as --summary-mode=thread --bpf-summary -- true testing: perf trace -as --summary-mode=total --bpf-summary -- true testing: perf trace -aS --summary-mode=total --bpf-summary -- true testing: perf trace -as --summary-mode=cgroup --bpf-summary -- true testing: perf trace -aS --summary-mode=cgroup --bpf-summary -- true ---- end(0) ---- 112: perf trace summary : Ok Reviewed-by: Howard Chu <[email protected]> Signed-off-by: Namhyung Kim <[email protected]> Tested-by: Arnaldo Carvalho de Melo <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 59df607 commit dd8633b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/perf/tests/shell/trace_summary.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,10 @@ test_perf_trace "-as --summary-mode=total --bpf-summary"
6262
# summary with normal output for system wide - total summary mode with BPF
6363
test_perf_trace "-aS --summary-mode=total --bpf-summary"
6464

65+
# summary only for system wide - cgroup summary mode with BPF
66+
test_perf_trace "-as --summary-mode=cgroup --bpf-summary"
67+
68+
# summary with normal output for system wide - cgroup summary mode with BPF
69+
test_perf_trace "-aS --summary-mode=cgroup --bpf-summary"
70+
6571
rm -f ${OUTPUT}

0 commit comments

Comments
 (0)