Searched refs:pe_fd (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/tools/testing/selftests/resctrl/ |
D | cache.c | 25 int perf_event_reset_enable(int pe_fd) in perf_event_reset_enable() argument 29 ret = ioctl(pe_fd, PERF_EVENT_IOC_RESET, 0); in perf_event_reset_enable() 33 ret = ioctl(pe_fd, PERF_EVENT_IOC_ENABLE, 0); in perf_event_reset_enable() 48 int pe_fd; in perf_open() local 50 pe_fd = perf_event_open(pea, pid, cpu_no, -1, PERF_FLAG_FD_CLOEXEC); in perf_open() 51 if (pe_fd == -1) { in perf_open() 56 perf_event_reset_enable(pe_fd); in perf_open() 58 return pe_fd; in perf_open() 135 int perf_event_measure(int pe_fd, struct perf_event_read *pe_read, in perf_event_measure() argument 141 ret = ioctl(pe_fd, PERF_EVENT_IOC_DISABLE, 0); in perf_event_measure() [all …]
|
D | cat_test.c | 166 int ret, i, pe_fd; in cat_test() local 186 pe_fd = perf_open(&pea, bm_pid, uparams->cpu); in cat_test() 187 if (pe_fd < 0) { in cat_test() 212 ret = perf_event_reset_enable(pe_fd); in cat_test() 218 ret = perf_event_measure(pe_fd, &pe_read, param->filename, bm_pid); in cat_test() 228 close(pe_fd); in cat_test()
|
D | resctrl.h | 170 int perf_event_reset_enable(int pe_fd); 171 int perf_event_measure(int pe_fd, struct perf_event_read *pe_read,
|