I'm using perf to measure tlb misses of a userspace process. Then, when a system call comes, I want to read userspace misses, i have a syscall handler at the kernel and i need to read or extract from kernel module. (I don't want to use strace). I examined the task_struct and saw a variable named perf_event_ctxp. I wonder if it would be possible for me to read the miss numbers from here, I couldn't find any information in the documentation. or do you have any idea where I can read the counter values specific to a process on the kernel side (started with perf).