Home
last modified time | relevance | path

Searched refs:cpumask (Results 1 – 15 of 15) sorted by relevance

/tools/testing/selftests/bpf/progs/
Dcpumask_common.h16 struct bpf_cpumask __kptr * cpumask; member
27 void bpf_cpumask_release(struct bpf_cpumask *cpumask) __ksym;
28 struct bpf_cpumask *bpf_cpumask_acquire(struct bpf_cpumask *cpumask) __ksym;
29 u32 bpf_cpumask_first(const struct cpumask *cpumask) __ksym;
30 u32 bpf_cpumask_first_zero(const struct cpumask *cpumask) __ksym;
31 u32 bpf_cpumask_first_and(const struct cpumask *src1,
32 const struct cpumask *src2) __ksym;
33 void bpf_cpumask_set_cpu(u32 cpu, struct bpf_cpumask *cpumask) __ksym;
34 void bpf_cpumask_clear_cpu(u32 cpu, struct bpf_cpumask *cpumask) __ksym;
35 bool bpf_cpumask_test_cpu(u32 cpu, const struct cpumask *cpumask) __ksym;
[all …]
Dcpumask_success.c68 struct bpf_cpumask *cpumask; in BPF_PROG() local
73 cpumask = create_cpumask(); in BPF_PROG()
74 if (!cpumask) in BPF_PROG()
77 bpf_cpumask_release(cpumask); in BPF_PROG()
84 struct bpf_cpumask *cpumask; in BPF_PROG() local
89 cpumask = create_cpumask(); in BPF_PROG()
90 if (!cpumask) in BPF_PROG()
93 bpf_cpumask_set_cpu(0, cpumask); in BPF_PROG()
94 if (!bpf_cpumask_test_cpu(0, cast(cpumask))) { in BPF_PROG()
99 bpf_cpumask_clear_cpu(0, cpumask); in BPF_PROG()
[all …]
Dcpumask_failure.c23 struct bpf_cpumask *cpumask; in BPF_PROG() local
25 cpumask = create_cpumask(); in BPF_PROG()
26 __sink(cpumask); in BPF_PROG()
36 struct bpf_cpumask *cpumask; in BPF_PROG() local
38 cpumask = create_cpumask(); in BPF_PROG()
41 bpf_cpumask_release(cpumask); in BPF_PROG()
42 bpf_cpumask_release(cpumask); in BPF_PROG()
51 struct bpf_cpumask *cpumask; in BPF_PROG() local
54 cpumask = bpf_cpumask_acquire((struct bpf_cpumask *)task->cpus_ptr); in BPF_PROG()
55 __sink(cpumask); in BPF_PROG()
[all …]
Dnested_trust_common.h9 bool bpf_cpumask_test_cpu(unsigned int cpu, const struct cpumask *cpumask) __ksym;
10 bool bpf_cpumask_first_zero(const struct cpumask *cpumask) __ksym;
/tools/accounting/
Dprocacct.c84 char cpumask[100+6*MAX_CPUS]; variable
299 strncpy(cpumask, optarg, sizeof(cpumask)); in main()
300 cpumask[sizeof(cpumask) - 1] = '\0'; in main()
314 strncpy(cpumask, "1", sizeof(cpumask)); in main()
315 cpumask[sizeof(cpumask) - 1] = '\0'; in main()
317 printf("cpumask %s maskset %d\n", cpumask, maskset); in main()
342 &cpumask, strlen(cpumask) + 1); in main()
400 &cpumask, strlen(cpumask) + 1); in main()
Dgetdelays.c72 char cpumask[100+6*MAX_CPUS]; variable
339 strncpy(cpumask, optarg, sizeof(cpumask)); in main()
340 cpumask[sizeof(cpumask) - 1] = '\0'; in main()
342 printf("cpumask %s maskset %d\n", cpumask, maskset); in main()
417 &cpumask, strlen(cpumask) + 1); in main()
559 &cpumask, strlen(cpumask) + 1); in main()
/tools/testing/selftests/rcutorture/bin/
Djitter.sh68 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/ktest/examples/bootconfigs/
Dboottrace.bconf37 cpumask = 1
46 cpumask = 2
/tools/workqueue/
Dwq_dump.py52 from drgn.helpers.linux.cpumask import for_each_cpu,for_each_possible_cpu
64 def cpumask_str(cpumask): argument
68 for cpu in for_each_cpu(cpumask[0]):
Dwq_monitor.py44 from drgn.helpers.linux.cpumask import for_each_possible_cpu
/tools/perf/
Dbuiltin-ftrace.c279 char *cpumask; in set_tracing_cpumask() local
288 cpumask = malloc(mask_size); in set_tracing_cpumask()
289 if (cpumask == NULL) { in set_tracing_cpumask()
294 cpu_map__snprint_mask(cpumap, cpumask, mask_size); in set_tracing_cpumask()
296 ret = write_tracing_file("tracing_cpumask", cpumask); in set_tracing_cpumask()
298 free(cpumask); in set_tracing_cpumask()
/tools/perf/bench/
Dnuma.c252 struct bitmask *cpumask = numa_allocate_cpumask(); in node_has_cpus() local
256 BUG_ON(!cpumask); in node_has_cpus()
257 if (!numa_node_to_cpus(node, cpumask)) { in node_has_cpus()
258 for (cpu = 0; cpu < (int)cpumask->size; cpu++) { in node_has_cpus()
259 if (numa_bitmask_isbitset(cpumask, cpu)) { in node_has_cpus()
265 numa_free_cpumask(cpumask); in node_has_cpus()
342 struct bitmask *cpumask = numa_allocate_cpumask(); in bind_to_node() local
344 if (!cpumask) in bind_to_node()
347 if (!numa_node_to_cpus(target_node, cpumask)) { in bind_to_node()
348 for (cpu = 0; cpu < (int)cpumask->size; cpu++) { in bind_to_node()
[all …]
/tools/cgroup/
Dmemcg_slabinfo.py12 from drgn.helpers.linux.cpumask import for_each_online_cpu
/tools/bootconfig/scripts/
Dbconf2ftrace.sh255 set_value_of ${instance}.cpumask ${instancedir}/tracing_cpumask
/tools/testing/kunit/test_data/
Dtest_output_isolated_correctly.log12 posix-timer cpumask == cpu_all_mask, using cpu_possible_mask instead