Searched refs:bpf_cpumask (Results 1 – 7 of 7) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | cpumask_common.h | 13 private(MASK) static struct bpf_cpumask __kptr * global_mask; 16 struct bpf_cpumask __kptr * cpumask; 26 struct bpf_cpumask *bpf_cpumask_create(void) __ksym; 27 void bpf_cpumask_release(struct bpf_cpumask *cpumask) __ksym; 28 struct bpf_cpumask *bpf_cpumask_acquire(struct bpf_cpumask *cpumask) __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; 36 bool bpf_cpumask_test_and_set_cpu(u32 cpu, struct bpf_cpumask *cpumask) __ksym; 37 bool bpf_cpumask_test_and_clear_cpu(u32 cpu, struct bpf_cpumask *cpumask) __ksym; 38 void bpf_cpumask_setall(struct bpf_cpumask *cpumask) __ksym; [all …]
|
H A D | cpumask_success.c | 22 static bool create_cpumask_set(struct bpf_cpumask **out1, in create_cpumask_set() 23 struct bpf_cpumask **out2, in create_cpumask_set() 24 struct bpf_cpumask **out3, in create_cpumask_set() 25 struct bpf_cpumask **out4) in create_cpumask_set() 27 struct bpf_cpumask *mask1, *mask2, *mask3, *mask4; in create_cpumask_set() 68 struct bpf_cpumask *cpumask; in BPF_PROG() 84 struct bpf_cpumask *cpumask; in BPF_PROG() 113 struct bpf_cpumask *cpumask; in BPF_PROG() 142 struct bpf_cpumask *cpumask; in BPF_PROG() 181 struct bpf_cpumask *mask1, *mask2; in BPF_PROG() [all …]
|
H A D | cpumask_failure.c | 23 struct bpf_cpumask *cpumask; in BPF_PROG() 36 struct bpf_cpumask *cpumask; in BPF_PROG() 51 struct bpf_cpumask *cpumask; in BPF_PROG() 54 cpumask = bpf_cpumask_acquire((struct bpf_cpumask *)task->cpus_ptr); in BPF_PROG() 65 bpf_cpumask_set_cpu(0, (struct bpf_cpumask *)task->cpus_ptr); in BPF_PROG() 74 struct bpf_cpumask *cpumask; in BPF_PROG() 108 struct bpf_cpumask *local, *prev; in BPF_PROG() 142 struct bpf_cpumask *local, *prev; in BPF_PROG() 170 struct bpf_cpumask *prev, *curr; in BPF_PROG()
|
/openbmc/linux/kernel/bpf/ |
H A D | cpumask.c | 25 struct bpf_cpumask { struct 51 __bpf_kfunc struct bpf_cpumask *bpf_cpumask_create(void) in bpf_cpumask_create() 53 struct bpf_cpumask *cpumask; in bpf_cpumask_create() 56 BUILD_BUG_ON(offsetof(struct bpf_cpumask, cpumask) != 0); in bpf_cpumask_create() 77 __bpf_kfunc struct bpf_cpumask *bpf_cpumask_acquire(struct bpf_cpumask *cpumask) in bpf_cpumask_acquire() 91 __bpf_kfunc void bpf_cpumask_release(struct bpf_cpumask *cpumask) in bpf_cpumask_release() 146 __bpf_kfunc void bpf_cpumask_set_cpu(u32 cpu, struct bpf_cpumask *cpumask) in bpf_cpumask_set_cpu() 159 __bpf_kfunc void bpf_cpumask_clear_cpu(u32 cpu, struct bpf_cpumask *cpumask) in bpf_cpumask_clear_cpu() 193 __bpf_kfunc bool bpf_cpumask_test_and_set_cpu(u32 cpu, struct bpf_cpumask *cpumask) in bpf_cpumask_test_and_set_cpu() 211 __bpf_kfunc bool bpf_cpumask_test_and_clear_cpu(u32 cpu, struct bpf_cpumask *cpumask) in bpf_cpumask_test_and_clear_cpu() [all …]
|
H A D | verifier.c | 5331 BTF_ID(struct, bpf_cpumask) in BTF_ID()
|
/openbmc/linux/Documentation/bpf/ |
H A 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 …]
|
H A D | kfuncs.rst | 357 struct bpf_cpumask { 362 The verifier would allow a ``struct bpf_cpumask *`` to be passed to a kfunc
|