diff --git a/src/perf_event/event/hardware.rs b/src/perf_event/event/hardware.rs index 2e130e6..1c57efa 100644 --- a/src/perf_event/event/hardware.rs +++ b/src/perf_event/event/hardware.rs @@ -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 _ }