Skip to content

Commit 6f4b191

Browse files
committed
add support for some raw events on intel skylake
1 parent fe015f0 commit 6f4b191

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

src/LinuxPerf.jl

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,30 @@ const EVENT_TYPES =
7676
(:stalled_cycles_backend, 8), # PERF_COUNT_HW_STALLED_CYCLES_BACKEND
7777
(:scaled_cycles, 9) # PERF_COUNT_HW_REF_CPU_CYCLES
7878
]),
79-
(:sw, 1, # PERF_TYPE_SOFTWARE
79+
(:sw, PERF_TYPE_SOFTWARE, # PERF_TYPE_SOFTWARE
8080
[(:page_faults, 2), # PERF_COUNT_SW_PAGE_FAULTS
8181
(:ctx_switches, 3), # PERF_COUNT_SW_CONTEXT_SWITCHES
8282
(:cpu_migrations, 4), # PERF_COUNT_SW_CPU_MIGRATIONS
8383
(:minor_page_faults, 5), # PERF_COUNT_SW_PAGE_FAULTS_MIN
8484
(:major_page_faults, 6), # PERF_COUNT_SW_PAGE_FAULTS_MAJ
85-
])
85+
]),
86+
(:raw, PERF_TYPE_RAW,
87+
# Skylake/Kabylake
88+
[
89+
(:fp_arith_inst_retired_scalar_double, 0x01c7), # mul=1,vlen=1,ops=1
90+
(:fp_arith_inst_retired_scalar_single, 0x02c7), # mul=1,vlen=1,ops=1
91+
(:fp_arith_inst_retired_scalar, 0x03c7),
92+
(:fp_arith_inst_retired_128B_packed_double, 0x04c7), # mul=2,vlen=2,ops=1
93+
(:fp_arith_inst_retired_128B_packed_single, 0x08c7), # mul=2,vlen=2,ops=1
94+
(:fp_arith_inst_retired_256B_packed_double, 0x10c7), # mul=4,vlen=4,ops=1
95+
(:fp_arith_inst_retired_double, 0x15c7),
96+
(:fp_arith_inst_retired_256B_packed_single, 0x20c7), # mul=4,vlen=4,ops=1
97+
(:fp_arith_inst_retired_single, 0x2ac7),
98+
(:fp_arith_inst_retired_packed, 0x3cc7),
99+
(:fp_arith_inst_retired_512B_packed_double, 0x40c7), # mul=8,vlen=8,ops=1 AVX512
100+
(:mem_inst_retired_all_loads, 0x81d0),
101+
(:mem_inst_retired_all_stores, 0x82d0),
102+
])
86103
]
87104

88105

0 commit comments

Comments
 (0)