Server IP : 15.235.198.142 / Your IP : 216.73.216.149 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/modules/6.8.0-45-generic/build/tools/perf/tests/shell/ |
Upload File : |
#!/bin/sh # perf all metricgroups test # SPDX-License-Identifier: GPL-2.0 set -e ParanoidAndNotRoot() { [ "$(id -u)" != 0 ] && [ "$(cat /proc/sys/kernel/perf_event_paranoid)" -gt $1 ] } system_wide_flag="-a" if ParanoidAndNotRoot 0 then system_wide_flag="" fi for m in $(perf list --raw-dump metricgroups) do echo "Testing $m" perf stat -M "$m" $system_wide_flag sleep 0.01 done exit 0