2017-11-01 15:07:57 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2014-05-05 12:53:20 +02:00
|
|
|
#ifndef _PERF_SYS_H
|
|
|
|
|
#define _PERF_SYS_H
|
|
|
|
|
|
2014-05-05 12:58:31 +02:00
|
|
|
#include <unistd.h>
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
#include <sys/syscall.h>
|
2016-07-18 17:40:49 -03:00
|
|
|
#include <linux/compiler.h>
|
2019-08-29 14:59:50 -03:00
|
|
|
|
|
|
|
|
struct perf_event_attr;
|
|
|
|
|
|
2014-05-05 12:58:31 +02:00
|
|
|
static inline int
|
|
|
|
|
sys_perf_event_open(struct perf_event_attr *attr,
|
|
|
|
|
pid_t pid, int cpu, int group_fd,
|
|
|
|
|
unsigned long flags)
|
|
|
|
|
{
|
2020-08-27 21:32:01 +02:00
|
|
|
return syscall(__NR_perf_event_open, attr, pid, cpu,
|
|
|
|
|
group_fd, flags);
|
2014-05-05 12:58:31 +02:00
|
|
|
}
|
|
|
|
|
|
2014-05-05 12:53:20 +02:00
|
|
|
#endif /* _PERF_SYS_H */
|