perf_event_open sample all threads under the same process
I’m trying to use perf_event_open to sample the memory access of a process. But I used the code from this question:
I’m trying to use perf_event_open to sample the memory access of a process. But I used the code from this question: