Lines Matching +full:mode +full:- +full:normal

3 # SPDX-License-Identifier: GPL-2.0
5 # Check that perf trace works with various summary mode
11 [ "$(id -u)" = 0 ] || exit 2
18 search="^\s*(open|read|close).*[0-9]+%$"
20 echo "testing: perf trace ${args} -- ${workload}"
21 perf trace ${args} -- ${workload} >${OUTPUT} 2>&1
22 if [ $? -ne 0 ]; then
25 rm -f ${OUTPUT}
29 count=$(grep -E -c -m 3 "${search}" ${OUTPUT})
33 rm -f ${OUTPUT}
39 test_perf_trace "-s"
41 # normal output with summary at the end
42 test_perf_trace "-S"
44 # summary only with an explicit summary mode
45 test_perf_trace "-s --summary-mode=thread"
47 # summary with normal output - total summary mode
48 test_perf_trace "-S --summary-mode=total"
50 # summary only for system wide - per-thread summary
51 test_perf_trace "-as --summary-mode=thread --no-bpf-summary"
53 # summary only for system wide - total summary mode
54 test_perf_trace "-as --summary-mode=total --no-bpf-summary"
56 if ! perf check feature -q bpf; then
57 echo "Skip --bpf-summary tests as perf built without libbpf"
58 rm -f ${OUTPUT}
62 # summary only for system wide - per-thread summary with BPF
63 test_perf_trace "-as --summary-mode=thread --bpf-summary"
65 # summary only for system wide - total summary mode with BPF
66 test_perf_trace "-as --summary-mode=total --bpf-summary"
68 # summary with normal output for system wide - total summary mode with BPF
69 test_perf_trace "-aS --summary-mode=total --bpf-summary"
71 # summary only for system wide - cgroup summary mode with BPF
72 test_perf_trace "-as --summary-mode=cgroup --bpf-summary"
74 # summary with normal output for system wide - cgroup summary mode with BPF
75 test_perf_trace "-aS --summary-mode=cgroup --bpf-summary"
77 rm -f ${OUTPUT}