Lines Matching refs:break_fd
187 int break_fd; in runtestsingle() local
201 break_fd = perf_process_event_open_exclude_user(readwriteflag, (__u64)ptr, in runtestsingle()
203 if (break_fd < 0) { in runtestsingle()
209 ioctl(break_fd, PERF_EVENT_IOC_ENABLE); in runtestsingle()
222 ioctl(break_fd, PERF_EVENT_IOC_DISABLE); in runtestsingle()
225 res = read(break_fd, &breaks, sizeof(unsigned long long)); in runtestsingle()
241 close(break_fd); in runtestsingle()
251 int break_fd; in runtest_dar_outside() local
263 break_fd = perf_process_event_open(HW_BREAKPOINT_RW, (__u64)(target + 2), 4); in runtest_dar_outside()
264 if (break_fd < 0) { in runtest_dar_outside()
271 ioctl(break_fd, PERF_EVENT_IOC_RESET); in runtest_dar_outside()
272 ioctl(break_fd, PERF_EVENT_IOC_ENABLE); in runtest_dar_outside()
275 ioctl(break_fd, PERF_EVENT_IOC_DISABLE); in runtest_dar_outside()
276 res = read(break_fd, &breaks, sizeof(unsigned long long)); in runtest_dar_outside()
286 ioctl(break_fd, PERF_EVENT_IOC_RESET); in runtest_dar_outside()
287 ioctl(break_fd, PERF_EVENT_IOC_ENABLE); in runtest_dar_outside()
290 ioctl(break_fd, PERF_EVENT_IOC_DISABLE); in runtest_dar_outside()
291 res = read(break_fd, &breaks, sizeof(unsigned long long)); in runtest_dar_outside()
301 ioctl(break_fd, PERF_EVENT_IOC_RESET); in runtest_dar_outside()
302 ioctl(break_fd, PERF_EVENT_IOC_ENABLE); in runtest_dar_outside()
305 ioctl(break_fd, PERF_EVENT_IOC_DISABLE); in runtest_dar_outside()
306 res = read(break_fd, &breaks, sizeof(unsigned long long)); in runtest_dar_outside()
316 ioctl(break_fd, PERF_EVENT_IOC_RESET); in runtest_dar_outside()
317 ioctl(break_fd, PERF_EVENT_IOC_ENABLE); in runtest_dar_outside()
320 ioctl(break_fd, PERF_EVENT_IOC_DISABLE); in runtest_dar_outside()
321 res = read(break_fd, &breaks, sizeof(unsigned long long)); in runtest_dar_outside()
331 ioctl(break_fd, PERF_EVENT_IOC_RESET); in runtest_dar_outside()
332 ioctl(break_fd, PERF_EVENT_IOC_ENABLE); in runtest_dar_outside()
335 ioctl(break_fd, PERF_EVENT_IOC_DISABLE); in runtest_dar_outside()
336 res = read(break_fd, &breaks, sizeof(unsigned long long)); in runtest_dar_outside()
346 close(break_fd); in runtest_dar_outside()