Lines Matching refs:thread_mask
96 struct thread_mask { struct
103 struct thread_mask *mask; argument
179 struct thread_mask *thread_masks;
2987 static int record__thread_mask_alloc(struct thread_mask *mask, int nr_bits) in record__thread_mask_alloc()
3006 static void record__thread_mask_free(struct thread_mask *mask) in record__thread_mask_free()
3649 struct thread_mask thread_mask, full_mask, *thread_masks; in record__init_thread_masks_spec() local
3669 ret = record__thread_mask_alloc(&thread_mask, cpu__max_cpu().cpu); in record__init_thread_masks_spec()
3676 ret = record__mmap_cpu_mask_init_spec(&thread_mask.maps, maps_spec[s]); in record__init_thread_masks_spec()
3681 ret = record__mmap_cpu_mask_init_spec(&thread_mask.affinity, affinity_spec[s]); in record__init_thread_masks_spec()
3688 if (!bitmap_and(thread_mask.maps.bits, thread_mask.maps.bits, in record__init_thread_masks_spec()
3689 cpus_mask.bits, thread_mask.maps.nbits)) { in record__init_thread_masks_spec()
3694 if (!bitmap_and(thread_mask.affinity.bits, thread_mask.affinity.bits, in record__init_thread_masks_spec()
3695 cpus_mask.bits, thread_mask.affinity.nbits)) { in record__init_thread_masks_spec()
3702 if (bitmap_intersects(thread_mask.maps.bits, full_mask.maps.bits, in record__init_thread_masks_spec()
3703 thread_mask.maps.nbits)) { in record__init_thread_masks_spec()
3708 if (bitmap_intersects(thread_mask.affinity.bits, full_mask.affinity.bits, in record__init_thread_masks_spec()
3709 thread_mask.affinity.nbits)) { in record__init_thread_masks_spec()
3716 thread_mask.maps.bits, full_mask.maps.nbits); in record__init_thread_masks_spec()
3718 thread_mask.affinity.bits, full_mask.maps.nbits); in record__init_thread_masks_spec()
3720 thread_masks = realloc(rec->thread_masks, (t + 1) * sizeof(struct thread_mask)); in record__init_thread_masks_spec()
3727 rec->thread_masks[t] = thread_mask; in record__init_thread_masks_spec()
3735 ret = record__thread_mask_alloc(&thread_mask, cpu__max_cpu().cpu); in record__init_thread_masks_spec()
3747 record__thread_mask_free(&thread_mask); in record__init_thread_masks_spec()