Searched refs:fd_lm (Results 1 – 1 of 1) sorted by relevance
/Linux-v6.1/tools/testing/selftests/resctrl/ |
D | cache.c | 15 static int fd_lm; variable 34 ioctl(fd_lm, PERF_EVENT_IOC_RESET, 0); in ioctl_perf_event_ioc_reset_enable() 35 ioctl(fd_lm, PERF_EVENT_IOC_ENABLE, 0); in ioctl_perf_event_ioc_reset_enable() 40 fd_lm = perf_event_open(&pea_llc_miss, pid, cpu_no, -1, in perf_event_open_llc_miss() 42 if (fd_lm == -1) { in perf_event_open_llc_miss() 95 ioctl(fd_lm, PERF_EVENT_IOC_DISABLE, 0); in get_llc_perf() 97 if (read(fd_lm, &rf_cqm, sizeof(struct read_format)) == -1) { in get_llc_perf() 105 close(fd_lm); in get_llc_perf()
|