Skip to content

Commit d8cda6c

Browse files
committed
chore: revert kperf changes
1 parent 9ab6585 commit d8cda6c

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

libs/darwin-kperf/criterion/src/pmc.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,6 @@ impl Drop for HardwareCounter {
145145
// drop order is field declaration order), and we are the sole owner.
146146
// No ThreadSampler will be running after this point.
147147
let _result = unsafe { SAMPLER.release() };
148-
149-
// The sampler can now be acquired again.
150-
SAMPLER_ACQUIRED.store(false, Ordering::SeqCst);
151148
}
152149
}
153150

libs/darwin-kperf/events/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl Cpu {
5959
b"a15" => Some(Self::M2),
6060
b"a16" | b"as1" | b"as2" | b"as3" => Some(Self::M3),
6161
b"as4" | b"as4-1" | b"as4-2" => Some(Self::M4),
62-
b"as5" | b"as5-1" | b"as5-2" => Some(Self::M5),
62+
b"as5" | b"as5-2" => Some(Self::M5),
6363
_ => None,
6464
}
6565
}

0 commit comments

Comments
 (0)