настроить мониторинг производительности (set up performance monitoring)
Синопсис (Synopsis)
#include <linux/perf_event.h>
/* Definition of PERF_*
constants */
#include <linux/hw_breakpoint.h>
/* Definition of HW_*
constants */
#include <sys/syscall.h>
/* Definition of SYS_*
constants */
#include <unistd.h>
int syscall(SYS_perf_event_open, struct perf_event_attr *
attr,
pid_t
pid, int
cpu, int
group_fd, unsigned long
flags);
Note: glibc provides no wrapper for perf_event_open
(),
necessitating the use of syscall(2).