Lines Matching refs:affinity_mask
112 struct mmap_cpu_mask affinity_mask; member
1067 !bitmap_equal(rec->affinity_mask.bits, map->affinity_mask.bits, in record__adjust_affinity()
1068 rec->affinity_mask.nbits)) { in record__adjust_affinity()
1069 bitmap_zero(rec->affinity_mask.bits, rec->affinity_mask.nbits); in record__adjust_affinity()
1070 bitmap_or(rec->affinity_mask.bits, rec->affinity_mask.bits, in record__adjust_affinity()
1071 map->affinity_mask.bits, rec->affinity_mask.nbits); in record__adjust_affinity()
1072 sched_setaffinity(0, MMAP_CPU_MASK_BYTES(&rec->affinity_mask), in record__adjust_affinity()
1073 (cpu_set_t *)rec->affinity_mask.bits); in record__adjust_affinity()
1075 mmap_cpu_mask__scnprintf(&rec->affinity_mask, "thread"); in record__adjust_affinity()
2795 rec->affinity_mask.nbits = cpu__max_cpu(); in cmd_record()
2796 rec->affinity_mask.bits = bitmap_zalloc(rec->affinity_mask.nbits); in cmd_record()
2797 if (!rec->affinity_mask.bits) { in cmd_record()
2798 pr_err("Failed to allocate thread mask for %zd cpus\n", rec->affinity_mask.nbits); in cmd_record()
2802 pr_debug2("thread mask[%zd]: empty\n", rec->affinity_mask.nbits); in cmd_record()
2943 bitmap_free(rec->affinity_mask.bits); in cmd_record()