I just updated to 6.12.27, and the counter works now. According to rr dev, this is the kernel fix: perf/x86: Fix non-sampling (counting) events on certain x86 platforms
- Bug#1104796: linux-image-6.12.25-amd64: perf r5... Pasi Kallinen
- Bug#1104796: perf r5101c4 counter regressi... Salvatore Bonaccorso
- Bug#1104796: perf r5101c4 counter regr... Namhyung Kim
- Bug#1104796: perf r5101c4 counter regressi... Pasi Kallinen
- Bug#1104796: marked as done (linux-image-6... Debian Bug Tracking System

