Searched refs:bpf_cpumask (Results 1 – 9 of 9) sorted by relevance
/linux-6.12.1/tools/testing/selftests/bpf/progs/ |
D | cpumask_common.h | 18 private(MASK) static struct bpf_cpumask __kptr * global_mask; 21 struct bpf_cpumask __kptr * cpumask; 31 struct bpf_cpumask *bpf_cpumask_create(void) __ksym __weak; 32 void bpf_cpumask_release(struct bpf_cpumask *cpumask) __ksym __weak; 33 struct bpf_cpumask *bpf_cpumask_acquire(struct bpf_cpumask *cpumask) __ksym __weak; 38 void bpf_cpumask_set_cpu(u32 cpu, struct bpf_cpumask *cpumask) __ksym __weak; 39 void bpf_cpumask_clear_cpu(u32 cpu, struct bpf_cpumask *cpumask) __ksym __weak; 41 bool bpf_cpumask_test_and_set_cpu(u32 cpu, struct bpf_cpumask *cpumask) __ksym __weak; 42 bool bpf_cpumask_test_and_clear_cpu(u32 cpu, struct bpf_cpumask *cpumask) __ksym __weak; 43 void bpf_cpumask_setall(struct bpf_cpumask *cpumask) __ksym __weak; [all …]
|
D | cpumask_success.c | 16 struct bpf_cpumask __kptr * mask; 20 struct bpf_cpumask __kptr * mask_1; 21 struct bpf_cpumask __kptr * mask_2; 36 struct bpf_cpumask __kptr * mask[CPUMASK_KPTR_FIELDS_MAX]; 51 struct bpf_cpumask __kptr * mask; 66 struct bpf_cpumask __kptr * mask; 79 private(MASK) static struct bpf_cpumask __kptr * global_mask_array[2]; 80 private(MASK) static struct bpf_cpumask __kptr * global_mask_array_l2[2][1]; 81 private(MASK) static struct bpf_cpumask __kptr * global_mask_array_one[1]; 95 static bool create_cpumask_set(struct bpf_cpumask **out1, in create_cpumask_set() [all …]
|
D | cpumask_failure.c | 14 struct bpf_cpumask __kptr * mask; 38 struct bpf_cpumask *cpumask; in BPF_PROG() 51 struct bpf_cpumask *cpumask; in BPF_PROG() 66 struct bpf_cpumask *cpumask; in BPF_PROG() 69 cpumask = bpf_cpumask_acquire((struct bpf_cpumask *)task->cpus_ptr); in BPF_PROG() 80 bpf_cpumask_set_cpu(0, (struct bpf_cpumask *)task->cpus_ptr); in BPF_PROG() 89 struct bpf_cpumask *cpumask; in BPF_PROG() 123 struct bpf_cpumask *local, *prev; in BPF_PROG() 157 struct bpf_cpumask *local, *prev; in BPF_PROG() 185 struct bpf_cpumask *prev, *curr; in BPF_PROG() [all …]
|
D | verifier_kfunc_prog_types.c | 126 struct bpf_cpumask *alloc, *ref; in cpumask_kfunc_load_test()
|
/linux-6.12.1/kernel/bpf/ |
D | cpumask.c | 25 struct bpf_cpumask { struct 49 __bpf_kfunc struct bpf_cpumask *bpf_cpumask_create(void) in bpf_cpumask_create() argument 51 struct bpf_cpumask *cpumask; in bpf_cpumask_create() 54 BUILD_BUG_ON(offsetof(struct bpf_cpumask, cpumask) != 0); in bpf_cpumask_create() 75 __bpf_kfunc struct bpf_cpumask *bpf_cpumask_acquire(struct bpf_cpumask *cpumask) in bpf_cpumask_acquire() 89 __bpf_kfunc void bpf_cpumask_release(struct bpf_cpumask *cpumask) in bpf_cpumask_release() 150 __bpf_kfunc void bpf_cpumask_set_cpu(u32 cpu, struct bpf_cpumask *cpumask) in bpf_cpumask_set_cpu() 163 __bpf_kfunc void bpf_cpumask_clear_cpu(u32 cpu, struct bpf_cpumask *cpumask) in bpf_cpumask_clear_cpu() 197 __bpf_kfunc bool bpf_cpumask_test_and_set_cpu(u32 cpu, struct bpf_cpumask *cpumask) in bpf_cpumask_test_and_set_cpu() 215 __bpf_kfunc bool bpf_cpumask_test_and_clear_cpu(u32 cpu, struct bpf_cpumask *cpumask) in bpf_cpumask_test_and_clear_cpu() [all …]
|
D | verifier.c | 5437 BTF_ID(struct, bpf_cpumask) in BTF_ID()
|
/linux-6.12.1/Documentation/bpf/ |
D | cpumasks.rst | 26 2.1 ``struct bpf_cpumask *`` 29 ``struct bpf_cpumask *`` is a cpumask that is allocated by BPF, on behalf of a 34 2.1.1 ``struct bpf_cpumask *`` lifecycle 37 A ``struct bpf_cpumask *`` is allocated, acquired, and released, using the 54 struct bpf_cpumask __kptr * cpumask; 64 static int cpumask_map_insert(struct bpf_cpumask *mask, u32 pid) 68 struct bpf_cpumask *old; 98 struct bpf_cpumask *cpumask; 114 2.1.1 ``struct bpf_cpumask *`` as kptrs 117 As mentioned and illustrated above, these ``struct bpf_cpumask *`` objects can [all …]
|
D | kfuncs.rst | 379 struct bpf_cpumask { 384 The verifier would allow a ``struct bpf_cpumask *`` to be passed to a kfunc
|
/linux-6.12.1/tools/sched_ext/include/scx/ |
D | common.bpf.h | 291 struct bpf_cpumask *bpf_cpumask_create(void) __ksym; 292 struct bpf_cpumask *bpf_cpumask_acquire(struct bpf_cpumask *cpumask) __ksym; 293 void bpf_cpumask_release(struct bpf_cpumask *cpumask) __ksym; 296 void bpf_cpumask_set_cpu(u32 cpu, struct bpf_cpumask *cpumask) __ksym; 297 void bpf_cpumask_clear_cpu(u32 cpu, struct bpf_cpumask *cpumask) __ksym; 299 bool bpf_cpumask_test_and_set_cpu(u32 cpu, struct bpf_cpumask *cpumask) __ksym; 300 bool bpf_cpumask_test_and_clear_cpu(u32 cpu, struct bpf_cpumask *cpumask) __ksym; 301 void bpf_cpumask_setall(struct bpf_cpumask *cpumask) __ksym; 302 void bpf_cpumask_clear(struct bpf_cpumask *cpumask) __ksym; 303 bool bpf_cpumask_and(struct bpf_cpumask *dst, const struct cpumask *src1, [all …]
|