Lines Matching +full:system +full:- +full:wide
5 [ "$(id -u)" != 0 ] && [ "$(cat /proc/sys/kernel/perf_event_paranoid)" -gt $1 ]
11 if [ ! -d /sys/bus/event_source/devices/ibs_op ]; then
17 if [ ! -f /sys/bus/event_source/devices/ibs_op/format/swfilt ]; then
26 perf record -B -e ibs_op//u -o /dev/null true 2> /dev/null
27 if [ $? -eq 0 ]; then
33 perf record -B -e ibs_op/swfilt/u -o /dev/null true
34 if [ $? -ne 0 ]; then
42 perf record -B -e ibs_op/swfilt=1/k -o /dev/null true
43 if [ $? -ne 0 ]; then
53 perf record -B -e ibs_fetch/swfilt/u -o /dev/null true
54 if [ $? -ne 0 ]; then
59 # check system wide recording
62 perf record -aB --synth=no -e ibs_op/swfilt/k -o /dev/null true
63 if [ $? -ne 0 ]; then
64 echo "[FAIL] IBS op PMU cannot handle swfilt in system-wide mode"
68 echo "[SKIP] not root and perf_event_paranoid too high for system-wide/exclude_user"
74 kernel_sample=$(perf record -e ibs_op/swfilt/u -o- true | perf script -i- -F misc | grep -c ^K)
75 if [ ${kernel_sample} -ne 0 ]; then
82 user_sample=$(perf record -e ibs_fetch/swfilt/k -o- true | perf script -i- -F misc | grep -c ^U)
83 if [ ${user_sample} -ne 0 ]; then