Lines Matching refs:nprocs

46 int nprocs;  variable
146 for (i = 0; i < nprocs; i++) { in perf_systemwide_event_open()
540 int *fd1 = malloc(nprocs * sizeof(int)); in test_syswide_multi_diff_addr()
541 int *fd2 = malloc(nprocs * sizeof(int)); in test_syswide_multi_diff_addr()
553 close_fds(fd1, nprocs); in test_syswide_multi_diff_addr()
558 reset_fds(fd1, nprocs); in test_syswide_multi_diff_addr()
559 reset_fds(fd2, nprocs); in test_syswide_multi_diff_addr()
560 enable_fds(fd1, nprocs); in test_syswide_multi_diff_addr()
561 enable_fds(fd2, nprocs); in test_syswide_multi_diff_addr()
563 disable_fds(fd1, nprocs); in test_syswide_multi_diff_addr()
564 disable_fds(fd2, nprocs); in test_syswide_multi_diff_addr()
566 breaks1 = read_fds(fd1, nprocs); in test_syswide_multi_diff_addr()
567 breaks2 = read_fds(fd2, nprocs); in test_syswide_multi_diff_addr()
569 close_fds(fd1, nprocs); in test_syswide_multi_diff_addr()
570 close_fds(fd2, nprocs); in test_syswide_multi_diff_addr()
587 int *fd1 = malloc(nprocs * sizeof(int)); in test_syswide_multi_same_addr()
588 int *fd2 = malloc(nprocs * sizeof(int)); in test_syswide_multi_same_addr()
600 close_fds(fd1, nprocs); in test_syswide_multi_same_addr()
605 reset_fds(fd1, nprocs); in test_syswide_multi_same_addr()
606 reset_fds(fd2, nprocs); in test_syswide_multi_same_addr()
607 enable_fds(fd1, nprocs); in test_syswide_multi_same_addr()
608 enable_fds(fd2, nprocs); in test_syswide_multi_same_addr()
610 disable_fds(fd1, nprocs); in test_syswide_multi_same_addr()
611 disable_fds(fd2, nprocs); in test_syswide_multi_same_addr()
613 breaks1 = read_fds(fd1, nprocs); in test_syswide_multi_same_addr()
614 breaks2 = read_fds(fd2, nprocs); in test_syswide_multi_same_addr()
616 close_fds(fd1, nprocs); in test_syswide_multi_same_addr()
617 close_fds(fd2, nprocs); in test_syswide_multi_same_addr()
634 int *fd1 = malloc(nprocs * sizeof(int)); in test_syswide_multi_diff_addr_ro_wo()
635 int *fd2 = malloc(nprocs * sizeof(int)); in test_syswide_multi_diff_addr_ro_wo()
647 close_fds(fd1, nprocs); in test_syswide_multi_diff_addr_ro_wo()
652 reset_fds(fd1, nprocs); in test_syswide_multi_diff_addr_ro_wo()
653 reset_fds(fd2, nprocs); in test_syswide_multi_diff_addr_ro_wo()
654 enable_fds(fd1, nprocs); in test_syswide_multi_diff_addr_ro_wo()
655 enable_fds(fd2, nprocs); in test_syswide_multi_diff_addr_ro_wo()
657 disable_fds(fd1, nprocs); in test_syswide_multi_diff_addr_ro_wo()
658 disable_fds(fd2, nprocs); in test_syswide_multi_diff_addr_ro_wo()
660 breaks1 = read_fds(fd1, nprocs); in test_syswide_multi_diff_addr_ro_wo()
661 breaks2 = read_fds(fd2, nprocs); in test_syswide_multi_diff_addr_ro_wo()
663 close_fds(fd1, nprocs); in test_syswide_multi_diff_addr_ro_wo()
664 close_fds(fd2, nprocs); in test_syswide_multi_diff_addr_ro_wo()
681 int *fd1 = malloc(nprocs * sizeof(int)); in test_syswide_multi_same_addr_ro_wo()
682 int *fd2 = malloc(nprocs * sizeof(int)); in test_syswide_multi_same_addr_ro_wo()
694 close_fds(fd1, nprocs); in test_syswide_multi_same_addr_ro_wo()
699 reset_fds(fd1, nprocs); in test_syswide_multi_same_addr_ro_wo()
700 reset_fds(fd2, nprocs); in test_syswide_multi_same_addr_ro_wo()
701 enable_fds(fd1, nprocs); in test_syswide_multi_same_addr_ro_wo()
702 enable_fds(fd2, nprocs); in test_syswide_multi_same_addr_ro_wo()
704 disable_fds(fd1, nprocs); in test_syswide_multi_same_addr_ro_wo()
705 disable_fds(fd2, nprocs); in test_syswide_multi_same_addr_ro_wo()
707 breaks1 = read_fds(fd1, nprocs); in test_syswide_multi_same_addr_ro_wo()
708 breaks2 = read_fds(fd2, nprocs); in test_syswide_multi_same_addr_ro_wo()
710 close_fds(fd1, nprocs); in test_syswide_multi_same_addr_ro_wo()
711 close_fds(fd2, nprocs); in test_syswide_multi_same_addr_ro_wo()
836 nprocs = get_nprocs(); in runtest()