Lines Matching +full:clock +full:- +full:skip
3 # SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
7 set -e
19 rm -f "${stat_output}"
21 trap - EXIT TERM INT
33 [ "$(id -u)" != 0 ] && [ "$(cat /proc/sys/kernel/perf_event_paranoid)" -gt $1 ]
38 echo -n "Checking json output: no args "
39 perf stat -j -o "${stat_output}" true
40 $PYTHON $pythonchecker --no-args --file "${stat_output}"
46 echo -n "Checking json output: system wide "
49 echo "[Skip] paranoia and not root"
52 perf stat -j -a -o "${stat_output}" true
53 $PYTHON $pythonchecker --system-wide --file "${stat_output}"
59 echo -n "Checking json output: system wide no aggregation "
62 echo "[Skip] paranoia and not root"
65 perf stat -j -A -a --no-merge -o "${stat_output}" true
66 $PYTHON $pythonchecker --system-wide-no-aggr --file "${stat_output}"
72 echo -n "Checking json output: interval "
73 perf stat -j -I 1000 -o "${stat_output}" true
74 $PYTHON $pythonchecker --interval --file "${stat_output}"
81 echo -n "Checking json output: event "
82 perf stat -j -e cpu-clock -o "${stat_output}" true
83 $PYTHON $pythonchecker --event --file "${stat_output}"
89 echo -n "Checking json output: per core "
92 echo "[Skip] paranoia and not root"
95 perf stat -j --per-core -a -o "${stat_output}" true
96 $PYTHON $pythonchecker --per-core --file "${stat_output}"
102 echo -n "Checking json output: per thread "
105 echo "[Skip] paranoia and not root"
108 perf stat -j --per-thread -p $$ -o "${stat_output}" true
109 $PYTHON $pythonchecker --per-thread --file "${stat_output}"
115 echo -n "Checking json output: per cache_instance "
118 echo "[Skip] paranoia and not root"
121 perf stat -j --per-cache -a true 2>&1 | $PYTHON $pythonchecker --per-cache
127 echo -n "Checking json output: per cluster "
130 echo "[Skip] paranoia and not root"
133 perf stat -j --per-cluster -a true 2>&1 | $PYTHON $pythonchecker --per-cluster
139 echo -n "Checking json output: per die "
142 echo "[Skip] paranoia and not root"
145 perf stat -j --per-die -a -o "${stat_output}" true
146 $PYTHON $pythonchecker --per-die --file "${stat_output}"
152 echo -n "Checking json output: per node "
155 echo "[Skip] paranoia and not root"
158 perf stat -j --per-node -a -o "${stat_output}" true
159 $PYTHON $pythonchecker --per-node --file "${stat_output}"
165 echo -n "Checking json output: per socket "
168 echo "[Skip] paranoia and not root"
171 perf stat -j --per-socket -a -o "${stat_output}" true
172 $PYTHON $pythonchecker --per-socket --file "${stat_output}"
176 # The perf stat options for per-socket, per-core, per-die
177 # and -A ( no_aggr mode ) uses the info fetched from this
183 # will be set to -1. For example, incase of pSeries platform
185 # and set to -1. Check here validates the socket-id read from
195 socket_file=`ls $FILE_LOC/$FILE_NAME | head -n 1`
196 [ -z $socket_file ] && return 0
198 [ $socket_id == -1 ] && skip_test=1
210 if [ $skip_test -ne 1 ]
219 echo "[Skip] Skipping tests for system_wide_no_aggr, per_core, per_die and per_socket since socket id exposed via topology is invalid"