Lines Matching refs:fd1

406 	int fd1, fd2;
410 fd1 = perf_process_event_open(HW_BREAKPOINT_RW, (__u64)&a, (__u64)sizeof(a));
411 if (fd1 < 0) {
418 close(fd1);
423 ioctl(fd1, PERF_EVENT_IOC_RESET);
425 ioctl(fd1, PERF_EVENT_IOC_ENABLE);
428 ioctl(fd1, PERF_EVENT_IOC_DISABLE);
431 res = read(fd1, &breaks1, sizeof(breaks1));
436 close(fd1);
451 int fd1, fd2;
455 fd1 = perf_process_event_open(HW_BREAKPOINT_RW, (__u64)&a, (__u64)sizeof(a));
456 if (fd1 < 0) {
463 close(fd1);
468 ioctl(fd1, PERF_EVENT_IOC_RESET);
470 ioctl(fd1, PERF_EVENT_IOC_ENABLE);
473 ioctl(fd1, PERF_EVENT_IOC_DISABLE);
476 res = read(fd1, &breaks1, sizeof(breaks1));
481 close(fd1);
496 int fd1, fd2;
500 fd1 = perf_process_event_open(HW_BREAKPOINT_W, (__u64)&a, (__u64)sizeof(a));
501 if (fd1 < 0) {
508 close(fd1);
513 ioctl(fd1, PERF_EVENT_IOC_RESET);
515 ioctl(fd1, PERF_EVENT_IOC_ENABLE);
518 ioctl(fd1, PERF_EVENT_IOC_DISABLE);
521 res = read(fd1, &breaks1, sizeof(breaks1));
526 close(fd1);
541 int fd1, fd2;
545 fd1 = perf_process_event_open(HW_BREAKPOINT_R, (__u64)&a, (__u64)sizeof(a));
546 if (fd1 < 0) {
553 close(fd1);
558 ioctl(fd1, PERF_EVENT_IOC_RESET);
560 ioctl(fd1, PERF_EVENT_IOC_ENABLE);
563 ioctl(fd1, PERF_EVENT_IOC_DISABLE);
566 res = read(fd1, &breaks1, sizeof(breaks1));
571 close(fd1);
586 int *fd1 = malloc(nprocs * sizeof(int));
591 ret = perf_systemwide_event_open(fd1, HW_BREAKPOINT_RW, (__u64)&a, (__u64)sizeof(a));
597 close_fds(fd1, nprocs);
601 reset_fds(fd1, nprocs);
603 enable_fds(fd1, nprocs);
606 disable_fds(fd1, nprocs);
609 breaks1 = read_fds(fd1, nprocs);
612 close_fds(fd1, nprocs);
615 free(fd1);
630 int *fd1 = malloc(nprocs * sizeof(int));
635 ret = perf_systemwide_event_open(fd1, HW_BREAKPOINT_RW, (__u64)&a, (__u64)sizeof(a));
641 close_fds(fd1, nprocs);
645 reset_fds(fd1, nprocs);
647 enable_fds(fd1, nprocs);
650 disable_fds(fd1, nprocs);
653 breaks1 = read_fds(fd1, nprocs);
656 close_fds(fd1, nprocs);
659 free(fd1);
674 int *fd1 = malloc(nprocs * sizeof(int));
679 ret = perf_systemwide_event_open(fd1, HW_BREAKPOINT_W, (__u64)&a, (__u64)sizeof(a));
685 close_fds(fd1, nprocs);
689 reset_fds(fd1, nprocs);
691 enable_fds(fd1, nprocs);
694 disable_fds(fd1, nprocs);
697 breaks1 = read_fds(fd1, nprocs);
700 close_fds(fd1, nprocs);
703 free(fd1);
718 int *fd1 = malloc(nprocs * sizeof(int));
723 ret = perf_systemwide_event_open(fd1, HW_BREAKPOINT_W, (__u64)&a, (__u64)sizeof(a));
729 close_fds(fd1, nprocs);
733 reset_fds(fd1, nprocs);
735 enable_fds(fd1, nprocs);
738 disable_fds(fd1, nprocs);
741 breaks1 = read_fds(fd1, nprocs);
744 close_fds(fd1, nprocs);
747 free(fd1);