Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / perf / tests / shell / stat+csv_summary.sh
blob323123ff4d193dbfa86e2524ddb04c40ed632143
1 #!/bin/sh
2 # perf stat csv summary test
3 # SPDX-License-Identifier: GPL-2.0
5 set -e
8 # 1.001364330 9224197 cycles 8012885033 100.00
9 # summary 9224197 cycles 8012885033 100.00
11 perf stat -e cycles -x' ' -I1000 --interval-count 1 --summary 2>&1 | \
12 grep -e summary | \
13 while read summary _ _ _ _
15 if [ $summary != "summary" ]; then
16 exit 1
18 done
21 # 1.001360298 9148534 cycles 8012853854 100.00
22 #9148534 cycles 8012853854 100.00
24 perf stat -e cycles -x' ' -I1000 --interval-count 1 --summary --no-csv-summary 2>&1 | \
25 grep -e summary | \
26 while read _ _ _ _
28 exit 1
29 done
31 exit 0