Searched refs:mrrets_fd (Results 1 – 1 of 1) sorted by relevance
/linux/tools/testing/selftests/x86/ |
H A D | srso.c | 16 int rrets_fd, mrrets_fd; in main() local 44 mrrets_fd = syscall(SYS_perf_event_open, &mret_attr, 0, -1, -1, 0); in main() 45 if (mrrets_fd == -1) { in main() 51 ioctl(mrrets_fd, PERF_EVENT_IOC_RESET, 0); in main() 54 ioctl(mrrets_fd, PERF_EVENT_IOC_ENABLE, 0); in main() 60 ioctl(mrrets_fd, PERF_EVENT_IOC_DISABLE, 0); in main() 63 read(mrrets_fd, &count_rets_mispred, sizeof(long long)); in main()
|