Lines Matching +full:system +full:- +full:wide

3 # SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
7 set -e
29 rm -f "${stat_output}"
31 trap - EXIT TERM INT
43 [ "$(id -u)" != 0 ] && [ "$(cat /proc/sys/kernel/perf_event_paranoid)" -gt $1 ]
48 echo -n "Checking json output: no args "
49 perf stat -j -o "${stat_output}" true
50 $PYTHON $pythonchecker --no-args --file "${stat_output}"
56 echo -n "Checking json output: system wide "
62 perf stat -j -a -o "${stat_output}" true
63 $PYTHON $pythonchecker --system-wide --file "${stat_output}"
69 echo -n "Checking json output: system wide no aggregation "
75 perf stat -j -A -a --no-merge -o "${stat_output}" true
76 $PYTHON $pythonchecker --system-wide-no-aggr --file "${stat_output}"
82 echo -n "Checking json output: interval "
83 perf stat -j -I 1000 -o "${stat_output}" true
84 $PYTHON $pythonchecker --interval --file "${stat_output}"
91 echo -n "Checking json output: event "
92 perf stat -j -e cpu-clock -o "${stat_output}" true
93 $PYTHON $pythonchecker --event --file "${stat_output}"
99 echo -n "Checking json output: per core "
105 perf stat -j --per-core -a -o "${stat_output}" true
106 $PYTHON $pythonchecker --per-core --file "${stat_output}"
112 echo -n "Checking json output: per thread "
118 perf stat -j --per-thread -a -o "${stat_output}" true
119 $PYTHON $pythonchecker --per-thread --file "${stat_output}"
125 echo -n "Checking json output: per cache_instance "
131 perf stat -j --per-cache -a true 2>&1 | $PYTHON $pythonchecker --per-cache
137 echo -n "Checking json output: per die "
143 perf stat -j --per-die -a -o "${stat_output}" true
144 $PYTHON $pythonchecker --per-die --file "${stat_output}"
150 echo -n "Checking json output: per node "
156 perf stat -j --per-node -a -o "${stat_output}" true
157 $PYTHON $pythonchecker --per-node --file "${stat_output}"
163 echo -n "Checking json output: per socket "
169 perf stat -j --per-socket -a -o "${stat_output}" true
170 $PYTHON $pythonchecker --per-socket --file "${stat_output}"
174 # The perf stat options for per-socket, per-core, per-die
175 # and -A ( no_aggr mode ) uses the info fetched from this
176 # directory: "/sys/devices/system/cpu/cpu*/topology". For
181 # will be set to -1. For example, incase of pSeries platform
183 # and set to -1. Check here validates the socket-id read from
186 FILE_LOC="/sys/devices/system/cpu/cpu*/topology/"
193 socket_file=`ls $FILE_LOC/$FILE_NAME | head -n 1`
194 [ -z $socket_file ] && return 0
196 [ $socket_id == -1 ] && skip_test=1
208 if [ $skip_test -ne 1 ]