| /tools/testing/selftests/bpf/progs/ |
| A D | cpumask_common.h | 34 u32 bpf_cpumask_first(const struct cpumask *cpumask) __ksym __weak; 35 u32 bpf_cpumask_first_zero(const struct cpumask *cpumask) __ksym __weak; 40 bool bpf_cpumask_test_cpu(u32 cpu, const struct cpumask *cpumask) __ksym __weak; 57 bool bpf_cpumask_empty(const struct cpumask *cpumask) __ksym __weak; 58 bool bpf_cpumask_full(const struct cpumask *cpumask) __ksym __weak; 63 u32 bpf_cpumask_weight(const struct cpumask *cpumask) __ksym __weak; 69 static inline const struct cpumask *cast(struct bpf_cpumask *cpumask) in cast() argument 71 return (const struct cpumask *)cpumask; in cast() 79 if (!cpumask) { in create_cpumask() 90 return cpumask; in create_cpumask() [all …]
|
| A D | cpumask_failure.c | 38 struct bpf_cpumask *cpumask; in BPF_PROG() local 40 cpumask = create_cpumask(); in BPF_PROG() 41 __sink(cpumask); in BPF_PROG() 51 struct bpf_cpumask *cpumask; in BPF_PROG() local 53 cpumask = create_cpumask(); in BPF_PROG() 56 bpf_cpumask_release(cpumask); in BPF_PROG() 66 struct bpf_cpumask *cpumask; in BPF_PROG() local 70 __sink(cpumask); in BPF_PROG() 92 cpumask = create_cpumask(); in BPF_PROG() 93 if (!cpumask) in BPF_PROG() [all …]
|
| A D | cpumask_success.c | 146 cpumask = create_cpumask(); in BPF_PROG() 147 if (!cpumask) in BPF_PROG() 162 cpumask = create_cpumask(); in BPF_PROG() 163 if (!cpumask) in BPF_PROG() 192 if (!cpumask) in BPF_PROG() 221 if (!cpumask) in BPF_PROG() 292 if (!cpumask) in BPF_PROG() 464 if (!cpumask) in BPF_PROG() 480 if (!cpumask) in BPF_PROG() 494 cpumask = bpf_kptr_xchg(&v->cpumask, NULL); in BPF_PROG() [all …]
|
| A D | nested_trust_common.h | 9 bool bpf_cpumask_test_cpu(unsigned int cpu, const struct cpumask *cpumask) __ksym; 10 __u32 bpf_cpumask_first_zero(const struct cpumask *cpumask) __ksym;
|
| A D | verifier_kfunc_prog_types.c | 134 bpf_cpumask_test_cpu(0, (const struct cpumask *)ref); in cpumask_kfunc_load_test()
|
| /tools/sched_ext/include/scx/ |
| A D | common.bpf.h | 80 void scx_bpf_put_cpumask(const struct cpumask *cpumask) __ksym __weak; 85 void scx_bpf_put_idle_cpumask(const struct cpumask *cpumask) __ksym; 341 u32 bpf_cpumask_first(const struct cpumask *cpumask) __ksym; 342 u32 bpf_cpumask_first_zero(const struct cpumask *cpumask) __ksym; 345 bool bpf_cpumask_test_cpu(u32 cpu, const struct cpumask *cpumask) __ksym; 356 bool bpf_cpumask_equal(const struct cpumask *src1, const struct cpumask *src2) __ksym; 358 bool bpf_cpumask_subset(const struct cpumask *src1, const struct cpumask *src2) __ksym; 359 bool bpf_cpumask_empty(const struct cpumask *cpumask) __ksym; 360 bool bpf_cpumask_full(const struct cpumask *cpumask) __ksym; 362 u32 bpf_cpumask_any_distribute(const struct cpumask *cpumask) __ksym; [all …]
|
| /tools/accounting/ |
| A D | procacct.c | 84 char cpumask[100+6*MAX_CPUS]; variable 298 strncpy(cpumask, optarg, sizeof(cpumask)); in main() 299 cpumask[sizeof(cpumask) - 1] = '\0'; in main() 313 strncpy(cpumask, "1", sizeof(cpumask)); in main() 314 cpumask[sizeof(cpumask) - 1] = '\0'; in main() 316 printf("cpumask %s maskset %d\n", cpumask, maskset); in main() 341 &cpumask, strlen(cpumask) + 1); in main() 399 &cpumask, strlen(cpumask) + 1); in main()
|
| A D | getdelays.c | 72 char cpumask[100+6*MAX_CPUS]; variable 389 strncpy(cpumask, optarg, sizeof(cpumask)); in main() 390 cpumask[sizeof(cpumask) - 1] = '\0'; in main() 392 printf("cpumask %s maskset %d\n", cpumask, maskset); in main() 467 &cpumask, strlen(cpumask) + 1); in main() 609 &cpumask, strlen(cpumask) + 1); in main()
|
| /tools/testing/selftests/rcutorture/bin/ |
| A D | jitter.sh | 68 cpumask=`awk -v cpus="$cpus" -v me=$me -v n=$n 'BEGIN { 74 if ! taskset -c -p $cpumask $$ > /dev/null 2>&1 76 echo taskset failure: '"taskset -c -p ' $cpumask $$ '"'
|
| /tools/testing/selftests/sched_ext/ |
| A D | allowed_cpus.bpf.c | 18 validate_idle_cpu(const struct task_struct *p, const struct cpumask *allowed, s32 cpu) in validate_idle_cpu() 32 const struct cpumask *allowed; in BPF_STRUCT_OPS() 57 const struct cpumask *allowed; in BPF_STRUCT_OPS() 98 const struct cpumask *online = scx_bpf_get_online_cpumask(); in BPF_STRUCT_OPS_SLEEPABLE()
|
| A D | select_cpu_dfl.bpf.c | 25 const struct cpumask *idle_mask = scx_bpf_get_idle_cpumask(); in BPF_STRUCT_OPS()
|
| A D | maximal.bpf.c | 64 const struct cpumask *cpumask) in BPF_STRUCT_OPS() argument
|
| A D | numa.bpf.c | 24 const struct cpumask *idle_cpumask; in is_cpu_idle()
|
| /tools/testing/ktest/examples/bootconfigs/ |
| A D | boottrace.bconf | 37 cpumask = 1 46 cpumask = 2
|
| /tools/workqueue/ |
| A D | wq_dump.py | 52 from drgn.helpers.linux.cpumask import for_each_cpu,for_each_possible_cpu 65 def cpumask_str(cpumask): argument 69 for cpu in for_each_cpu(cpumask[0]):
|
| /tools/testing/selftests/net/bench/page_pool/ |
| A D | time_bench.h | 206 const struct cpumask *mask, /* Support masking outsome CPUs*/ 211 const struct cpumask *mask);
|
| A D | time_bench.c | 293 const struct cpumask *mask) in time_bench_print_stats_cpumask() 330 const struct cpumask *mask, /* Support masking outsome CPUs*/ in time_bench_run_concurrent()
|
| /tools/testing/selftests/bpf/ |
| A D | bpf_arena_alloc.h | 14 #define NR_CPUS (sizeof(struct cpumask) * 8)
|
| /tools/perf/bench/ |
| A D | numa.c | 254 struct bitmask *cpumask = numa_allocate_cpumask(); in node_has_cpus() local 258 BUG_ON(!cpumask); in node_has_cpus() 259 if (!numa_node_to_cpus(node, cpumask)) { in node_has_cpus() 260 for (cpu = 0; cpu < (int)cpumask->size; cpu++) { in node_has_cpus() 261 if (numa_bitmask_isbitset(cpumask, cpu)) { in node_has_cpus() 267 numa_free_cpumask(cpumask); in node_has_cpus() 346 if (!cpumask) in bind_to_node() 349 if (!numa_node_to_cpus(target_node, cpumask)) { in bind_to_node() 350 for (cpu = 0; cpu < (int)cpumask->size; cpu++) { in bind_to_node() 351 if (numa_bitmask_isbitset(cpumask, cpu)) in bind_to_node() [all …]
|
| /tools/gpio/ |
| A D | gpio-sloppy-logic-analyzer.sh | 243 cpumask=$(printf '%x' $((1 << workcpu))) 246 do_capture "$cpumask" &
|
| /tools/perf/ |
| A D | builtin-ftrace.c | 389 char *cpumask; in set_tracing_cpumask() local 398 cpumask = malloc(mask_size); in set_tracing_cpumask() 399 if (cpumask == NULL) { in set_tracing_cpumask() 404 cpu_map__snprint_mask(cpumap, cpumask, mask_size); in set_tracing_cpumask() 406 ret = write_tracing_file("tracing_cpumask", cpumask); in set_tracing_cpumask() 408 free(cpumask); in set_tracing_cpumask()
|
| /tools/bootconfig/scripts/ |
| A D | bconf2ftrace.sh | 255 set_value_of ${instance}.cpumask ${instancedir}/tracing_cpumask
|
| /tools/cgroup/ |
| A D | memcg_slabinfo.py | 12 from drgn.helpers.linux.cpumask import for_each_online_cpu
|
| /tools/sched_ext/ |
| A D | scx_qmap.bpf.c | 644 const struct cpumask *possible, *online; in print_cpus() 711 const struct cpumask *online; in monitor_cpuperf()
|
| /tools/testing/kunit/test_data/ |
| A D | test_output_isolated_correctly.log | 12 posix-timer cpumask == cpu_all_mask, using cpu_possible_mask instead
|