Lines Matching refs:pfd
106 int pfd; in test_perf_branches_hw() local
116 pfd = syscall(__NR_perf_event_open, &attr, -1, 0, -1, PERF_FLAG_FD_CLOEXEC); in test_perf_branches_hw()
122 if (pfd < 0) { in test_perf_branches_hw()
129 if (CHECK(pfd < 0, "perf_event_open", "err %d errno %d\n", in test_perf_branches_hw()
130 pfd, errno)) in test_perf_branches_hw()
134 test_perf_branches_common(pfd, check_good_sample); in test_perf_branches_hw()
136 close(pfd); in test_perf_branches_hw()
147 int pfd; in test_perf_branches_no_hw() local
155 pfd = syscall(__NR_perf_event_open, &attr, -1, 0, -1, PERF_FLAG_FD_CLOEXEC); in test_perf_branches_no_hw()
156 if (CHECK(pfd < 0, "perf_event_open", "err %d\n", pfd)) in test_perf_branches_no_hw()
159 test_perf_branches_common(pfd, check_bad_sample); in test_perf_branches_no_hw()
161 close(pfd); in test_perf_branches_no_hw()