Lines Matching +full:per +full:- +full:cpu

2 # SPDX-License-Identifier: GPL-2.0
7 [ "$(id -u)" != 0 ] && [ "$(cat /proc/sys/kernel/perf_event_paranoid)" -gt $1 ]
13 echo -n "Checking $1 output: no args "
15 commachecker --no-args
21 echo -n "Checking $1 output: system wide "
27 perf stat -a $2 true
28 commachecker --system-wide
34 echo -n "Checking $1 output: system wide no aggregation "
40 perf stat -A -a --no-merge $2 true
41 commachecker --system-wide-no-aggr
47 echo -n "Checking $1 output: interval "
48 perf stat -I 1000 $2 true
49 commachecker --interval
55 echo -n "Checking $1 output: event "
56 perf stat -e cpu-clock $2 true
57 commachecker --event
63 echo -n "Checking $1 output: per core "
69 perf stat --per-core -a $2 true
70 commachecker --per-core
76 echo -n "Checking $1 output: per thread "
82 perf stat --per-thread -a $2 true
83 commachecker --per-thread
89 echo -n "Checking $1 output: per cache instance "
95 perf stat --per-cache -a $2 true
96 commachecker --per-cache
102 echo -n "Checking $1 output: per die "
108 perf stat --per-die -a $2 true
109 commachecker --per-die
115 echo -n "Checking $1 output: per node "
121 perf stat --per-node -a $2 true
122 commachecker --per-node
128 echo -n "Checking $1 output: per socket "
134 perf stat --per-socket -a $2 true
135 commachecker --per-socket
139 # The perf stat options for per-socket, per-core, per-die
140 # and -A ( no_aggr mode ) uses the info fetched from this
141 # directory: "/sys/devices/system/cpu/cpu*/topology". For
146 # will be set to -1. For example, incase of pSeries platform
148 # and set to -1. Check here validates the socket-id read from
151 FILE_LOC="/sys/devices/system/cpu/cpu*/topology/"
158 socket_file=`ls $FILE_LOC/$FILE_NAME | head -n 1`
159 [ -z $socket_file ] && {
164 [ $socket_id == -1 ] && {