Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   perf_event_open    ( 2 )

настроить мониторинг производительности (set up performance monitoring)

  Name  |    Synopsis    |  Description  |  Return value  |  Error  |  Versions  |  Conforming to  |  Note  |  Bugs  |  Examples  |  See also  |

Синопсис (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).