Lines Matching refs:nr_cpus
67 static unsigned long nr_cpus, nr_pages, nr_pages_per_cpu, page_size; variable
416 for (i = 0; i < nr_cpus * 2; ++i) { in uffd_test_ctx_clear()
491 pipefd = malloc(sizeof(int) * nr_cpus * 2); in uffd_test_ctx_init()
494 for (cpu = 0; cpu < nr_cpus; cpu++) in uffd_test_ctx_init()
844 pthread_t locking_threads[nr_cpus]; in stress()
845 pthread_t uffd_threads[nr_cpus]; in stress()
846 pthread_t background_threads[nr_cpus]; in stress()
849 for (cpu = 0; cpu < nr_cpus; cpu++) { in stress()
869 for (cpu = 0; cpu < nr_cpus; cpu++) in stress()
885 for (cpu = 0; cpu < nr_cpus; cpu++) in stress()
889 for (cpu = 0; cpu < nr_cpus; cpu++) { in stress()
1472 struct uffd_stats uffd_stats[nr_cpus]; in userfaultfd_stress()
1561 uffd_stats_reset(uffd_stats, nr_cpus); in userfaultfd_stress()
1599 uffd_stats_report(uffd_stats, nr_cpus); in userfaultfd_stress()
1748 nr_cpus = sysconf(_SC_NPROCESSORS_ONLN); in main()
1750 nr_cpus; in main()
1761 nr_pages = nr_pages_per_cpu * nr_cpus; in main()