Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _PERF_SYS_H
0003 #define _PERF_SYS_H
0004 
0005 #include <unistd.h>
0006 #include <sys/types.h>
0007 #include <sys/syscall.h>
0008 #include <linux/compiler.h>
0009 
0010 struct perf_event_attr;
0011 
0012 static inline int
0013 sys_perf_event_open(struct perf_event_attr *attr,
0014               pid_t pid, int cpu, int group_fd,
0015               unsigned long flags)
0016 {
0017     return syscall(__NR_perf_event_open, attr, pid, cpu,
0018                group_fd, flags);
0019 }
0020 
0021 #endif /* _PERF_SYS_H */