Home
last modified time | relevance | path

Searched refs:bpf_cpumask (Results 1 – 9 of 9) sorted by relevance

/linux-6.15/tools/testing/selftests/bpf/progs/
H A Dcpumask_common.h18 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;
33 struct bpf_cpumask *bpf_cpumask_acquire(struct bpf_cpumask *cpumask) __ksym __weak;
45 bool bpf_cpumask_and(struct bpf_cpumask *cpumask,
48 void bpf_cpumask_or(struct bpf_cpumask *cpumask,
51 void bpf_cpumask_xor(struct bpf_cpumask *cpumask,
74 static inline struct bpf_cpumask *create_cpumask(void) in create_cpumask()
76 struct bpf_cpumask *cpumask; in create_cpumask()
100 static inline int cpumask_map_insert(struct bpf_cpumask *mask) in cpumask_map_insert()
[all …]
H A Dcpumask_success.c16 struct bpf_cpumask __kptr * mask;
141 struct bpf_cpumask *cpumask; in BPF_PROG()
157 struct bpf_cpumask *cpumask; in BPF_PROG()
186 struct bpf_cpumask *cpumask; in BPF_PROG()
215 struct bpf_cpumask *cpumask; in BPF_PROG()
286 struct bpf_cpumask *cpumask; in BPF_PROG()
575 struct bpf_cpumask *local; in _global_mask_array_rcu()
711 struct bpf_cpumask *local; in BPF_PROG()
776 struct bpf_cpumask *local; in BPF_PROG()
807 struct bpf_cpumask *mask; in BPF_PROG()
[all …]
H A Dcpumask_failure.c14 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()
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()
210 struct bpf_cpumask *local, *prev; in BPF_PROG()
230 struct bpf_cpumask *invalid = (struct bpf_cpumask *)0x123456; in BPF_PROG()
[all …]
H A Dverifier_kfunc_prog_types.c126 struct bpf_cpumask *alloc, *ref; in cpumask_kfunc_load_test()
/linux-6.15/kernel/bpf/
H A Dcpumask.c25 struct bpf_cpumask { struct
53 __bpf_kfunc struct bpf_cpumask *bpf_cpumask_create(void) in bpf_cpumask_create()
55 struct bpf_cpumask *cpumask; in bpf_cpumask_create()
58 BUILD_BUG_ON(offsetof(struct bpf_cpumask, cpumask) != 0); in bpf_cpumask_create()
83 __bpf_kfunc struct bpf_cpumask *bpf_cpumask_acquire(struct bpf_cpumask *cpumask) in bpf_cpumask_acquire()
97 __bpf_kfunc void bpf_cpumask_release(struct bpf_cpumask *cpumask) in bpf_cpumask_release()
251 __bpf_kfunc void bpf_cpumask_clear(struct bpf_cpumask *cpumask) in bpf_cpumask_clear()
268 __bpf_kfunc bool bpf_cpumask_and(struct bpf_cpumask *dst, in bpf_cpumask_and()
283 __bpf_kfunc void bpf_cpumask_or(struct bpf_cpumask *dst, in bpf_cpumask_or()
298 __bpf_kfunc void bpf_cpumask_xor(struct bpf_cpumask *dst, in bpf_cpumask_xor()
[all …]
H A Dverifier.c5822 BTF_ID(struct, bpf_cpumask) in BTF_ID()
/linux-6.15/Documentation/bpf/
H A Dcpumasks.rst26 2.1 ``struct bpf_cpumask *``
34 2.1.1 ``struct bpf_cpumask *`` lifecycle
54 struct bpf_cpumask __kptr * cpumask;
68 struct bpf_cpumask *old;
98 struct bpf_cpumask *cpumask;
114 2.1.1 ``struct bpf_cpumask *`` as kptrs
126 struct bpf_cpumask __kptr * bpf_cpumask;
141 * struct bpf_cpumask * kptr that is stored in a map can
147 struct bpf_cpumask *kptr;
211 a CPU in a ``struct bpf_cpumask`` respectively:
[all …]
H A Dkfuncs.rst379 struct bpf_cpumask {
384 The verifier would allow a ``struct bpf_cpumask *`` to be passed to a kfunc
/linux-6.15/tools/sched_ext/include/scx/
H A Dcommon.bpf.h336 struct bpf_cpumask *bpf_cpumask_create(void) __ksym;
337 struct bpf_cpumask *bpf_cpumask_acquire(struct bpf_cpumask *cpumask) __ksym;
338 void bpf_cpumask_release(struct bpf_cpumask *cpumask) __ksym;
341 void bpf_cpumask_set_cpu(u32 cpu, struct bpf_cpumask *cpumask) __ksym;
342 void bpf_cpumask_clear_cpu(u32 cpu, struct bpf_cpumask *cpumask) __ksym;
344 bool bpf_cpumask_test_and_set_cpu(u32 cpu, struct bpf_cpumask *cpumask) __ksym;
346 void bpf_cpumask_setall(struct bpf_cpumask *cpumask) __ksym;
347 void bpf_cpumask_clear(struct bpf_cpumask *cpumask) __ksym;
348 bool bpf_cpumask_and(struct bpf_cpumask *dst, const struct cpumask *src1,
350 void bpf_cpumask_or(struct bpf_cpumask *dst, const struct cpumask *src1,
[all …]