Skip to content

Instantly share code, notes, and snippets.

@Manouchehri
Created July 20, 2022 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Manouchehri/6b949141c4096ec75fd4767a3803139d to your computer and use it in GitHub Desktop.
Save Manouchehri/6b949141c4096ec75fd4767a3803139d to your computer and use it in GitHub Desktop.
Asahi Linux on M1
[dave@dave-mac ~]$ sudo perf list
List of pre-defined events (to be used in -e):
alignment-faults [Software event]
bpf-output [Software event]
cgroup-switches [Software event]
context-switches OR cs [Software event]
cpu-clock [Software event]
cpu-migrations OR migrations [Software event]
dummy [Software event]
emulation-faults [Software event]
major-faults [Software event]
minor-faults [Software event]
page-faults OR faults [Software event]
task-clock [Software event]
duration_time [Tool event]
cycles OR apple_firestorm_pmu/cycles/ [Kernel PMU event]
cycles OR apple_icestorm_pmu/cycles/ [Kernel PMU event]
instructions OR apple_firestorm_pmu/instructions/ [Kernel PMU event]
instructions OR apple_icestorm_pmu/instructions/ [Kernel PMU event]
rNNN [Raw hardware event descriptor]
cpu/t1=v1[,t2=v2,t3 ...]/modifier [Raw hardware event descriptor]
(see 'man perf-list' on how to encode it)
mem:<addr>[/len][:access] [Hardware breakpoint]
Metric Groups:
[dave@dave-mac ~]$ sudo perf stat -ddd /bin/true
Performance counter stats for '/bin/true':
0.31 msec task-clock # 0.550 CPUs utilized
0 context-switches # 0.000 /sec
0 cpu-migrations # 0.000 /sec
29 page-faults # 92.198 K/sec
418,615 cycles # 1.331 GHz
511,352 instructions # 1.22 insn per cycle
<not supported> branches
<not supported> branch-misses
<not supported> L1-dcache-loads
<not supported> L1-dcache-load-misses
<not supported> LLC-loads
<not supported> LLC-load-misses
<not supported> L1-icache-loads
<not supported> L1-icache-load-misses
<not supported> dTLB-loads
<not supported> dTLB-load-misses
<not supported> iTLB-loads
<not supported> iTLB-load-misses
<not supported> L1-dcache-prefetches
<not supported> L1-dcache-prefetch-misses
0.000572377 seconds time elapsed
0.000606000 seconds user
0.000000000 seconds sys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment