Skip to content

Commit 215d504

Browse files
committed
add support for some raw events on intel skylake
1 parent 003d434 commit 215d504

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
@@ -74,13 +74,30 @@ const EVENT_TYPES =
7474
(:stalled_cycles_backend, 8), # PERF_COUNT_HW_STALLED_CYCLES_BACKEND
7575
(:scaled_cycles, 9) # PERF_COUNT_HW_REF_CPU_CYCLES
7676
]),
77-
(:sw, 1, # PERF_TYPE_SOFTWARE
77+
(:sw, PERF_TYPE_SOFTWARE, # PERF_TYPE_SOFTWARE
7878
[(:page_faults, 2), # PERF_COUNT_SW_PAGE_FAULTS
7979
(:ctx_switches, 3), # PERF_COUNT_SW_CONTEXT_SWITCHES
8080
(:cpu_migrations, 4), # PERF_COUNT_SW_CPU_MIGRATIONS
8181
(:minor_page_faults, 5), # PERF_COUNT_SW_PAGE_FAULTS_MIN
8282
(:major_page_faults, 6), # PERF_COUNT_SW_PAGE_FAULTS_MAJ
83-
])
83+
]),
84+
(:raw, PERF_TYPE_RAW,
85+
# Skylake/Kabylake
86+
[
87+
(:fp_arith_inst_retired_scalar_double, 0x01c7), # mul=1,vlen=1,ops=1
88+
(:fp_arith_inst_retired_scalar_single, 0x02c7), # mul=1,vlen=1,ops=1
89+
(:fp_arith_inst_retired_scalar, 0x03c7),
90+
(:fp_arith_inst_retired_128B_packed_double, 0x04c7), # mul=2,vlen=2,ops=1
91+
(:fp_arith_inst_retired_128B_packed_single, 0x08c7), # mul=2,vlen=2,ops=1
92+
(:fp_arith_inst_retired_256B_packed_double, 0x10c7), # mul=4,vlen=4,ops=1
93+
(:fp_arith_inst_retired_double, 0x15c7),
94+
(:fp_arith_inst_retired_256B_packed_single, 0x20c7), # mul=4,vlen=4,ops=1
95+
(:fp_arith_inst_retired_single, 0x2ac7),
96+
(:fp_arith_inst_retired_packed, 0x3cc7),
97+
(:fp_arith_inst_retired_512B_packed_double, 0x40c7), # mul=8,vlen=8,ops=1 AVX512
98+
(:mem_inst_retired_all_loads, 0x81d0),
99+
(:mem_inst_retired_all_stores, 0x82d0),
100+
])
84101
]
85102

86103

0 commit comments

Comments
 (0)