Merge tag 'powerpc-5.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc...
[linux/fpc-iii.git] / tools / perf / perf-sys.h
blob7a2264e1e4e1e67f9c96d18eff9c0b609083dc58
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _PERF_SYS_H
3 #define _PERF_SYS_H
5 #include <unistd.h>
6 #include <sys/types.h>
7 #include <sys/syscall.h>
8 #include <linux/compiler.h>
10 struct perf_event_attr;
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)
17 return syscall(__NR_perf_event_open, attr, pid, cpu,
18 group_fd, flags);
21 #endif /* _PERF_SYS_H */