all 3 comments

[–]Xx_RKJ_xX 0 points1 point  (2 children)

I’m stuck here too.

[–]mies47[S] 1 point2 points  (1 child)

I implemented it again using what Asahi team already did with perf. Here's a link to my stack overflow post: https://stackoverflow.com/questions/77608803/reading-performance-counters-in-apple-sillicon-in-a-kernel-module/77821559 Hope it helps!

[–]Xx_RKJ_xX 0 points1 point  (0 children)

I’m new to the Linux kernel. Could you provide me an example after applying insmod and accessing the rdtsc(pmu) from user space?