]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
43599d1f JO |
2 | #ifndef _PERF_SYS_H |
3 | #define _PERF_SYS_H | |
4 | ||
82baa0eb JO |
5 | #include <unistd.h> |
6 | #include <sys/types.h> | |
7 | #include <sys/syscall.h> | |
14f0652b | 8 | #include <linux/compiler.h> |
91854f9a ACM |
9 | |
10 | struct perf_event_attr; | |
11 | ||
82baa0eb JO |
12 | static inline int |
13 | sys_perf_event_open(struct perf_event_attr *attr, | |
14 | pid_t pid, int cpu, int group_fd, | |
15 | unsigned long flags) | |
16 | { | |
8366f0d2 JO |
17 | return syscall(__NR_perf_event_open, attr, pid, cpu, |
18 | group_fd, flags); | |
82baa0eb JO |
19 | } |
20 | ||
43599d1f | 21 | #endif /* _PERF_SYS_H */ |