/tools/testing/selftests/rseq/ |
D | basic_test.c | 18 cpu_set_t affinity, test_affinity; in test_cpu_pointer() local 21 sched_getaffinity(0, sizeof(affinity), &affinity); in test_cpu_pointer() 24 if (CPU_ISSET(i, &affinity)) { in test_cpu_pointer() 35 sched_setaffinity(0, sizeof(affinity), &affinity); in test_cpu_pointer()
|
/tools/perf/util/ |
D | affinity.h | 7 struct affinity { struct 13 void affinity__cleanup(struct affinity *a); argument 14 void affinity__set(struct affinity *a, int cpu); 15 int affinity__setup(struct affinity *a);
|
D | affinity.c | 24 int affinity__setup(struct affinity *a) in affinity__setup() 48 void affinity__set(struct affinity *a, int cpu) in affinity__set() 65 void affinity__cleanup(struct affinity *a) in affinity__cleanup()
|
D | mmap.c | 97 static int perf_mmap__aio_bind(struct mmap *map, int idx, int cpu, int affinity) in perf_mmap__aio_bind() argument 105 if (affinity != PERF_AFFINITY_SYS && cpu__max_node() > 1) { in perf_mmap__aio_bind() 141 int cpu __maybe_unused, int affinity __maybe_unused) in perf_mmap__aio_bind() 175 ret = perf_mmap__aio_bind(map, i, map->core.cpu, mp->affinity); in perf_mmap__aio_mmap() 265 if (mp->affinity == PERF_AFFINITY_NODE && cpu__max_node() > 1) in perf_mmap__setup_affinity_mask() 267 else if (mp->affinity == PERF_AFFINITY_CPU) in perf_mmap__setup_affinity_mask() 281 if (mp->affinity != PERF_AFFINITY_SYS && in mmap__mmap()
|
D | evlist.c | 382 struct affinity affinity; in evlist__disable() local 386 if (affinity__setup(&affinity) < 0) in evlist__disable() 392 affinity__set(&affinity, cpu); in evlist__disable() 410 affinity__cleanup(&affinity); in evlist__disable() 423 struct affinity affinity; in evlist__enable() local 426 if (affinity__setup(&affinity) < 0) in evlist__enable() 430 affinity__set(&affinity, cpu); in evlist__enable() 440 affinity__cleanup(&affinity); in evlist__enable() 881 bool auxtrace_overwrite, int nr_cblocks, int affinity, int flush, in evlist__mmap_ex() argument 891 .affinity = affinity, in evlist__mmap_ex() [all …]
|
D | mmap.h | 50 int nr_cblocks, affinity, flush, comp_level; member
|
D | record.h | 70 int affinity; member
|
D | python-ext-sources | 36 util/affinity.c
|
D | evlist.h | 208 int affinity, int flush, int comp_level);
|
D | Build | 81 perf-y += affinity.o
|
/tools/virtio/ringtest/ |
D | run-on-all.sh | 20 "$@" --host-affinity $HOST_AFFINITY --guest-affinity $cpu 24 "$@" --host-affinity $HOST_AFFINITY
|
/tools/testing/selftests/bpf/ |
D | bench.c | 19 .affinity = false, 180 env.affinity = true; in parse_arg() 183 env.affinity = true; in parse_arg() 191 env.affinity = true; in parse_arg() 390 if (env.affinity) in setup_benchmark() 409 if (env.affinity) in setup_benchmark()
|
D | bench.h | 26 bool affinity; member
|
/tools/perf/ |
D | builtin-stat.c | 385 struct affinity affinity; in read_affinity_counters() local 388 if (affinity__setup(&affinity) < 0) in read_affinity_counters() 397 affinity__set(&affinity, cpu); in read_affinity_counters() 408 affinity__cleanup(&affinity); in read_affinity_counters() 722 struct affinity affinity; in __run_perf_stat() local 738 if (affinity__setup(&affinity) < 0) in __run_perf_stat() 742 affinity__set(&affinity, cpu); in __run_perf_stat() 792 affinity__set(&affinity, cpu); in __run_perf_stat() 829 affinity__cleanup(&affinity); in __run_perf_stat()
|
D | builtin-record.c | 846 if (opts->affinity != PERF_AFFINITY_SYS) in record__mmap_evlist() 852 opts->nr_cblocks, opts->affinity, in record__mmap_evlist() 1053 if (rec->opts.affinity != PERF_AFFINITY_SYS && in record__adjust_affinity() 2170 opts->affinity = PERF_AFFINITY_NODE; in record__parse_affinity() 2172 opts->affinity = PERF_AFFINITY_CPU; in record__parse_affinity() 2635 rec->opts.affinity = PERF_AFFINITY_SYS; in cmd_record() 2704 if (rec->opts.affinity != PERF_AFFINITY_SYS) { in cmd_record() 2828 pr_debug("affinity: %s\n", affinity_tags[rec->opts.affinity]); in cmd_record()
|
/tools/perf/Documentation/ |
D | perf-record.txt | 490 --affinity=mode:: 491 Set affinity mask of trace reading thread according to the policy defined by 'mode' value: 492 node - thread affinity mask is set to NUMA node cpu mask of the processed mmap buffer 493 cpu - thread affinity mask is set to cpu of the processed mmap buffer
|