PR_TASK_PERF_EVENTS_DISABLE
(2)disable or enable performance counters attached to the calling process
#include <linux/prctl.h> /* Definition of PR_* constants */ #include <sys/prctl.h> int prctl(PR_TASK_PERF_EVENTS_DISABLE); int prctl(PR_TASK_PERF_EVENTS_ENABLE);
LIBRARY
DESCRIPTION
- PR_TASK_PERF_EVENTS_DISABLE
- Disable all performance counters attached to the calling process, regardless of whether the counters were created by this process or another process. Performance counters created by the calling process for other processes are unaffected.
- PR_TASK_PERF_EVENTS_ENABLE
- The converse of PR_TASK_PERF_EVENTS_DISABLE; enable performance counters attached to the calling process.