6 #include <sys/syscall.h>
7 #include <linux/types.h>
8 #include <linux/compiler.h>
9 #include <linux/perf_event.h>
10 #include <asm/barrier.h>
13 #define CPUINFO_PROC {"cpu"}
17 #define CPUINFO_PROC {"vendor_id"}
21 #define CPUINFO_PROC {"cpu type"}
25 #define CPUINFO_PROC {"cpu"}
29 #define CPUINFO_PROC {"cpu"}
33 #define CPUINFO_PROC {"cpu model"}
37 #define CPUINFO_PROC {"model name", "Processor"}
41 #define CPUINFO_PROC {"cpu model"}
45 #define CPUINFO_PROC {"Processor"}
49 #define CPUINFO_PROC {"CPU"}
53 #define CPUINFO_PROC {"core ID"}
57 #define CPUINFO_PROC { "model name", }
61 sys_perf_event_open(struct perf_event_attr *attr,
62 pid_t pid, int cpu, int group_fd,
67 fd = syscall(__NR_perf_event_open, attr, pid, cpu,
71 if (unlikely(test_attr__enabled))
72 test_attr__open(attr, pid, cpu, fd, group_fd, flags);
77 #endif /* _PERF_SYS_H */