Home
last modified time | relevance | path

Searched refs:cpu_set_size (Results 1 – 2 of 2) sorted by relevance

/linux/tools/perf/util/
A Daffinity.c26 int cpu_set_size = get_cpu_set_size(); in affinity__setup() local
28 a->orig_cpus = bitmap_zalloc(cpu_set_size * 8); in affinity__setup()
31 sched_getaffinity(0, cpu_set_size, (cpu_set_t *)a->orig_cpus); in affinity__setup()
32 a->sched_cpus = bitmap_zalloc(cpu_set_size * 8); in affinity__setup()
37 bitmap_zero((unsigned long *)a->sched_cpus, cpu_set_size); in affinity__setup()
50 int cpu_set_size = get_cpu_set_size(); in affinity__set() local
61 sched_setaffinity(0, cpu_set_size, (cpu_set_t *)a->sched_cpus); in affinity__set()
67 int cpu_set_size = get_cpu_set_size(); in affinity__cleanup() local
70 sched_setaffinity(0, cpu_set_size, (cpu_set_t *)a->orig_cpus); in affinity__cleanup()
/linux/tools/testing/selftests/mqueue/
A Dmq_perf_tests.c84 int cpu_set_size; variable
560 cpu_set_size = CPU_ALLOC_SIZE(cpus_online); in main()
561 CPU_ZERO_S(cpu_set_size, cpu_set); in main()
588 if (CPU_ISSET_S(cpus_to_pin[cpu], cpu_set_size, in main()
595 cpu_set_size, cpu_set); in main()
724 CPU_ZERO_S(cpu_set_size, cpu_set); in main()
725 CPU_SET_S(cpus_to_pin[i], cpu_set_size, cpu_set); in main()
727 pthread_attr_setaffinity_np(&thread_attr, cpu_set_size, in main()

Completed in 5 milliseconds