]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
perf test: Add cgroup summary test case for 'perf trace'
authorNamhyung Kim <namhyung@kernel.org>
Thu, 22 May 2025 14:25:51 +0000 (07:25 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 23 May 2025 01:24:58 +0000 (22:24 -0300)
  $ 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 <howardchu95@gmail.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250522142551.1062417-1-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/shell/trace_summary.sh

index 4d98cb212dd9de0b3b19dc58560569f05842b856..bb350dfabdc2bf5e258e1d19eef92f95db658b00 100755 (executable)
@@ -62,4 +62,10 @@ test_perf_trace "-as --summary-mode=total --bpf-summary"
 # summary with normal output for system wide - total summary mode with BPF
 test_perf_trace "-aS --summary-mode=total --bpf-summary"
 
+# summary only for system wide - cgroup summary mode with BPF
+test_perf_trace "-as --summary-mode=cgroup --bpf-summary"
+
+# summary with normal output for system wide - cgroup summary mode with BPF
+test_perf_trace "-aS --summary-mode=cgroup --bpf-summary"
+
 rm -f ${OUTPUT}