Home
last modified time | relevance | path

Searched refs:affinity_mask (Results 1 – 3 of 3) sorted by relevance

/tools/perf/util/
Dmmap.c231 bitmap_free(map->affinity_mask.bits); in mmap__munmap()
260 map->affinity_mask.nbits = cpu__max_cpu(); in perf_mmap__setup_affinity_mask()
261 map->affinity_mask.bits = bitmap_alloc(map->affinity_mask.nbits); in perf_mmap__setup_affinity_mask()
262 if (!map->affinity_mask.bits) in perf_mmap__setup_affinity_mask()
266 build_node_mask(cpu__get_node(map->core.cpu), &map->affinity_mask); in perf_mmap__setup_affinity_mask()
268 set_bit(map->core.cpu, map->affinity_mask.bits); in perf_mmap__setup_affinity_mask()
289 mmap_cpu_mask__scnprintf(&map->affinity_mask, "mmap"); in mmap__mmap()
Dmmap.h43 struct mmap_cpu_mask affinity_mask; member
/tools/perf/
Dbuiltin-record.c109 struct mmap_cpu_mask affinity_mask; member
1054 !bitmap_equal(rec->affinity_mask.bits, map->affinity_mask.bits, in record__adjust_affinity()
1055 rec->affinity_mask.nbits)) { in record__adjust_affinity()
1056 bitmap_zero(rec->affinity_mask.bits, rec->affinity_mask.nbits); in record__adjust_affinity()
1057 bitmap_or(rec->affinity_mask.bits, rec->affinity_mask.bits, in record__adjust_affinity()
1058 map->affinity_mask.bits, rec->affinity_mask.nbits); in record__adjust_affinity()
1059 sched_setaffinity(0, MMAP_CPU_MASK_BYTES(&rec->affinity_mask), in record__adjust_affinity()
1060 (cpu_set_t *)rec->affinity_mask.bits); in record__adjust_affinity()
1062 mmap_cpu_mask__scnprintf(&rec->affinity_mask, "thread"); in record__adjust_affinity()
2705 rec->affinity_mask.nbits = cpu__max_cpu(); in cmd_record()
[all …]