Skip to content

Commit

Permalink
fix CacheOp::Prefetch in CacheOp::as_u64
Browse files Browse the repository at this point in the history
  • Loading branch information
Thaumy committed Jan 30, 2024
1 parent 6f3f095 commit c806b16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/perf_event/event/hardware.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ impl CacheOp {
let id = match self {
Read => PERF_COUNT_HW_CACHE_OP_READ,
Write => PERF_COUNT_HW_CACHE_OP_WRITE,
Prefetch => PERF_COUNT_HW_CACHE_OP_WRITE,
Prefetch => PERF_COUNT_HW_CACHE_OP_PREFETCH,
};
id as _
}
Expand Down

0 comments on commit c806b16

Please sign in to comment.