/linux-master/mm/ |
H A D | mempolicy.c | 90 #include <linux/cpuset.h> 2561 * If mpol_dup() sees current->cpuset == cpuset_being_rebound, then it 2564 * keeps mempolicies cpuset relative after its cpuset moves. See 2565 * further kernel/cpuset.c update_nodemask(). 2568 * cpuset's mems), so we needn't do rebind work for current task. 3253 * the mempolicy in a specific context [cpuset] at a later time.
|
H A D | migrate.c | 28 #include <linux/cpuset.h>
|
H A D | oom_kill.c | 34 #include <linux/cpuset.h> 85 * and whether or not it has the same set of allowed cpuset nodes. 102 * cpuset is irrelevant. Only return true if its 110 * check the mems of tsk's cpuset. 294 /* Check this allocation failure is caused by cpuset's wall function */ 420 * memcg, not in the same cpuset, or bound to a disjoint set of mempolicy nodes 1071 * does not panic for cpuset, mempolicy, or memcg allocation
|
H A D | page_alloc.c | 34 #include <linux/cpuset.h> 3188 * See also cpuset_node_allowed() comment in kernel/cgroup/cpuset.c. 3409 * fallback to ignore cpuset restriction if our nodes 3874 * Ignore cpuset mems for non-blocking __GFP_HIGH (probably 4016 * It's possible that cpuset's mems_allowed and the nodemask from 4018 * policy_nodemask(), but it's possible to race with cpuset update in 4023 * when it does not intersect with the cpuset restrictions) or the 4036 * to fail, check if the cpuset changed during allocation and if so, 4080 * there was a cpuset modification and we are retrying - otherwise we 4089 * Check for insane configurations where the cpuset does [all...] |
H A D | show_mem.c | 10 #include <linux/cpuset.h> 184 * cpuset.
|
H A D | slub.c | 27 #include <linux/cpuset.h> 2682 * between allocation and the cpuset
|
H A D | vmscan.c | 35 #include <linux/cpuset.h> 981 /* Demotion ignores all cpuset and mempolicy settings */
|
/linux-master/samples/bpf/ |
H A D | map_perf_test_user.c | 333 cpu_set_t cpuset; local 336 CPU_ZERO(&cpuset); 337 CPU_SET(cpu, &cpuset); 338 sched_setaffinity(0, sizeof(cpuset), &cpuset);
|
H A D | test_lru_dist.c | 220 cpu_set_t cpuset; local 226 CPU_ZERO(&cpuset); 227 CPU_SET(next_to_try++, &cpuset); 228 if (!sched_setaffinity(pid, sizeof(cpuset), &cpuset))
|
H A D | test_overhead_user.c | 96 cpu_set_t cpuset; local 98 CPU_ZERO(&cpuset); 99 CPU_SET(cpu, &cpuset); 100 sched_setaffinity(0, sizeof(cpuset), &cpuset);
|
/linux-master/tools/perf/bench/ |
H A D | bench.h | 66 cpu_set_t *cpuset __maybe_unused)
|
H A D | epoll-ctl.c | 226 cpu_set_t *cpuset; local 236 cpuset = CPU_ALLOC(nrcpus); 237 BUG_ON(!cpuset); 263 CPU_ZERO_S(size, cpuset); 265 size, cpuset); 267 ret = pthread_attr_setaffinity_np(&thread_attr, size, cpuset); 269 CPU_FREE(cpuset); 279 CPU_FREE(cpuset); 284 CPU_FREE(cpuset);
|
H A D | epoll-wait.c | 295 cpu_set_t *cpuset; local 313 cpuset = CPU_ALLOC(nrcpus); 314 BUG_ON(!cpuset); 352 CPU_ZERO_S(size, cpuset); 354 size, cpuset); 356 ret = pthread_attr_setaffinity_np(&thread_attr, size, cpuset); 358 CPU_FREE(cpuset); 368 CPU_FREE(cpuset); 373 CPU_FREE(cpuset);
|
H A D | futex-hash.c | 126 cpu_set_t *cpuset; local 178 cpuset = CPU_ALLOC(nrcpus); 179 BUG_ON(!cpuset); 188 CPU_ZERO_S(size, cpuset); 190 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); 191 ret = pthread_attr_setaffinity_np(&thread_attr, size, cpuset); 193 CPU_FREE(cpuset); 199 CPU_FREE(cpuset); 204 CPU_FREE(cpuset);
|
H A D | futex-lock-pi.c | 123 cpu_set_t *cpuset; local 130 cpuset = CPU_ALLOC(nrcpus); 131 BUG_ON(!cpuset); 147 CPU_ZERO_S(size, cpuset); 148 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); 150 if (pthread_attr_setaffinity_np(&thread_attr, size, cpuset)) { 151 CPU_FREE(cpuset); 156 CPU_FREE(cpuset); 161 CPU_FREE(cpuset);
|
H A D | futex-requeue.c | 126 cpu_set_t *cpuset; local 133 cpuset = CPU_ALLOC(nrcpus); 134 BUG_ON(!cpuset); 142 CPU_ZERO_S(size, cpuset); 143 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); 145 if (pthread_attr_setaffinity_np(&thread_attr, size, cpuset)) { 146 CPU_FREE(cpuset); 151 CPU_FREE(cpuset); 156 CPU_FREE(cpuset);
|
H A D | futex-wake-parallel.c | 150 cpu_set_t *cpuset; local 157 cpuset = CPU_ALLOC(nrcpus); 158 BUG_ON(!cpuset); 166 CPU_ZERO_S(size, cpuset); 167 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); 169 if (pthread_attr_setaffinity_np(&thread_attr, size, cpuset)) { 170 CPU_FREE(cpuset); 175 CPU_FREE(cpuset); 180 CPU_FREE(cpuset);
|
H A D | futex-wake.c | 100 cpu_set_t *cpuset; local 106 cpuset = CPU_ALLOC(nrcpus); 107 BUG_ON(!cpuset); 115 CPU_ZERO_S(size, cpuset); 116 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset); 118 if (pthread_attr_setaffinity_np(&thread_attr, size, cpuset)) { 119 CPU_FREE(cpuset); 124 CPU_FREE(cpuset); 129 CPU_FREE(cpuset);
|
/linux-master/tools/perf/ |
H A D | builtin-c2c.c | 65 unsigned long *cpuset; member in struct:c2c_hist_entry 146 c2c_he->cpuset = bitmap_zalloc(c2c.cpus_cnt); 147 if (!c2c_he->cpuset) 168 zfree(&c2c_he->cpuset); 183 zfree(&c2c_he->cpuset); 232 __set_bit(sample->cpu, c2c_he->cpuset); 1204 bitmap_and(set, c2c_he->cpuset, c2c.nodes[node], c2c.cpus_cnt); 1321 scnprintf(buf, 10, "%d", bitmap_weight(c2c_he->cpuset, c2c.cpus_cnt));
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | bench.c | 445 cpu_set_t cpuset; local 448 CPU_ZERO(&cpuset); 449 CPU_SET(cpu, &cpuset); 450 err = pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset);
|
H A D | test_lru_map.c | 123 cpu_set_t cpuset; local 128 CPU_ZERO(&cpuset); 129 CPU_SET(next++, &cpuset); 130 if (!sched_setaffinity(pid, sizeof(cpuset), &cpuset)) {
|
H A D | test_progs.c | 366 cpu_set_t cpuset; local 369 CPU_ZERO(&cpuset); 371 CPU_SET(i, &cpuset); 373 err = sched_setaffinity(0, sizeof(cpuset), &cpuset); 379 err = pthread_setaffinity_np(pthread_self(), sizeof(cpuset), &cpuset);
|
H A D | test_tcpnotify_user.c | 81 cpu_set_t cpuset; local 86 CPU_ZERO(&cpuset); 87 CPU_SET(0, &cpuset); 88 pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset); local
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | test_overhead.c | 49 cpu_set_t cpuset; local 52 CPU_ZERO(&cpuset); 53 CPU_SET(cpu, &cpuset); 54 sched_setaffinity(0, sizeof(cpuset), &cpuset);
|
/linux-master/tools/testing/selftests/cgroup/ |
H A D | test_cpuset_prs.sh | 4 # Test for cpuset v2 partition root state (PRS) 25 SUBPARTS_CPUS=$CGROUP2/.__DEBUG__.cpuset.cpus.subpartitions 26 CPULIST=$(cat $CGROUP2/cpuset.cpus.effective) 63 echo +cpuset > cgroup.subtree_control 66 # If cpuset has been set up and used in child cgroups, we may not be able to 71 echo 0-6 > test/cpuset.cpus 72 echo root > test/cpuset.cpus.partition 73 cat test/cpuset.cpus.partition | grep -q invalid 75 echo member > test/cpuset.cpus.partition 76 echo "" > test/cpuset [all...] |