Lines Matching refs:break_fd

233 	int break_fd;  in runtestsingle()  local
247 break_fd = perf_process_event_open_exclude_user(readwriteflag, (__u64)ptr, in runtestsingle()
249 if (break_fd < 0) { in runtestsingle()
255 ioctl(break_fd, PERF_EVENT_IOC_ENABLE); in runtestsingle()
268 ioctl(break_fd, PERF_EVENT_IOC_DISABLE); in runtestsingle()
271 res = read(break_fd, &breaks, sizeof(unsigned long long)); in runtestsingle()
287 close(break_fd); in runtestsingle()
297 int break_fd; in runtest_dar_outside() local
309 break_fd = perf_process_event_open(HW_BREAKPOINT_RW, (__u64)(target + 2), 4); in runtest_dar_outside()
310 if (break_fd < 0) { in runtest_dar_outside()
317 ioctl(break_fd, PERF_EVENT_IOC_RESET); in runtest_dar_outside()
318 ioctl(break_fd, PERF_EVENT_IOC_ENABLE); in runtest_dar_outside()
321 ioctl(break_fd, PERF_EVENT_IOC_DISABLE); in runtest_dar_outside()
322 res = read(break_fd, &breaks, sizeof(unsigned long long)); in runtest_dar_outside()
332 ioctl(break_fd, PERF_EVENT_IOC_RESET); in runtest_dar_outside()
333 ioctl(break_fd, PERF_EVENT_IOC_ENABLE); in runtest_dar_outside()
336 ioctl(break_fd, PERF_EVENT_IOC_DISABLE); in runtest_dar_outside()
337 res = read(break_fd, &breaks, sizeof(unsigned long long)); in runtest_dar_outside()
347 ioctl(break_fd, PERF_EVENT_IOC_RESET); in runtest_dar_outside()
348 ioctl(break_fd, PERF_EVENT_IOC_ENABLE); in runtest_dar_outside()
351 ioctl(break_fd, PERF_EVENT_IOC_DISABLE); in runtest_dar_outside()
352 res = read(break_fd, &breaks, sizeof(unsigned long long)); in runtest_dar_outside()
362 ioctl(break_fd, PERF_EVENT_IOC_RESET); in runtest_dar_outside()
363 ioctl(break_fd, PERF_EVENT_IOC_ENABLE); in runtest_dar_outside()
366 ioctl(break_fd, PERF_EVENT_IOC_DISABLE); in runtest_dar_outside()
367 res = read(break_fd, &breaks, sizeof(unsigned long long)); in runtest_dar_outside()
377 ioctl(break_fd, PERF_EVENT_IOC_RESET); in runtest_dar_outside()
378 ioctl(break_fd, PERF_EVENT_IOC_ENABLE); in runtest_dar_outside()
381 ioctl(break_fd, PERF_EVENT_IOC_DISABLE); in runtest_dar_outside()
382 res = read(break_fd, &breaks, sizeof(unsigned long long)); in runtest_dar_outside()
392 close(break_fd); in runtest_dar_outside()