| /* SPDX-License-Identifier: GPL-2.0 */ |
| #include <linux/compiler.h> |
| #include <linux/perf_event.h> |
| #define CPUINFO_PROC {"cpu"} |
| #define CPUINFO_PROC {"vendor_id"} |
| #define CPUINFO_PROC {"cpu type"} |
| #define CPUINFO_PROC {"cpu"} |
| #define CPUINFO_PROC {"cpu"} |
| #define CPUINFO_PROC {"cpu model"} |
| #define CPUINFO_PROC {"model name", "Processor"} |
| #define CPUINFO_PROC {"cpu model"} |
| #define CPUINFO_PROC {"Processor"} |
| #define CPUINFO_PROC {"core ID"} |
| #define CPUINFO_PROC { "model name", } |
| sys_perf_event_open(struct perf_event_attr *attr, |
| pid_t pid, int cpu, int group_fd, |
| fd = syscall(__NR_perf_event_open, attr, pid, cpu, |
| if (unlikely(test_attr__enabled)) |
| test_attr__open(attr, pid, cpu, fd, group_fd, flags); |