Reputation: 21
How to check whether linux kernel support obtaining the per-process CPU-time clock of another process?
In Detail :
clock_getcpuclockid() returns EPERM error if The caller does not have permission to access the CPU-time clock of the process specified by pid. (Specified as an optional error in POSIX.1-2001; does not occur on Linux unless the kernel does not support obtaining the per-process CPU-time clock of another process.)
So, my question is how to check whether linux kernel support obtaining the per-process CPU-time clock of another process? In other words how can I make clock_getcpuclockid() to fail with return value EPERM?
Upvotes: 0
Views: 302