Home
last modified time | relevance | path

Searched refs:bpf_res_spin_lock (Results 1 – 7 of 7) sorted by relevance

/linux-6.15/tools/testing/selftests/bpf/progs/
H A Dres_spin_lock_fail.c11 struct bpf_res_spin_lock lock;
35 bpf_res_spin_lock((struct bpf_res_spin_lock *)bpf_core_cast(&elem->lock, struct __sk_buff)); in res_spin_lock_arg()
36 bpf_res_spin_lock(&elem->lock); in res_spin_lock_arg()
49 bpf_res_spin_lock(&elem->lock); in res_spin_lock_AA()
50 bpf_res_spin_lock(&elem->lock); in res_spin_lock_AA()
65 bpf_res_spin_lock(&elem->lock); in res_spin_lock_cond_AA()
93 if (bpf_res_spin_lock(&res_lock)) in res_spin_lock_mismatch_2()
110 if (bpf_res_spin_lock(&res_lock)) in res_spin_lock_irq_mismatch_1()
181 if (bpf_res_spin_lock(&lock1)) in res_spin_lock_ooo_unlock()
183 if (bpf_res_spin_lock(&lock2)) { in res_spin_lock_ooo_unlock()
[all …]
H A Dres_spin_lock.c12 struct bpf_res_spin_lock lock;
22 struct bpf_res_spin_lock lockA __hidden SEC(".data.A");
38 r = bpf_res_spin_lock(&elem1->lock); in res_spin_lock_test()
41 r = bpf_res_spin_lock(&elem2->lock); in res_spin_lock_test()
56 r = bpf_res_spin_lock(&lockA); in res_spin_lock_test_AB()
60 if (!bpf_res_spin_lock(&lockB)) in res_spin_lock_test_AB()
73 r = bpf_res_spin_lock(&lockB); in res_spin_lock_test_BA()
76 if (!bpf_res_spin_lock(&lockA)) in res_spin_lock_test_BA()
87 struct bpf_res_spin_lock *locks[48] = {}; in res_spin_lock_test_held_lock_max()
121 if (bpf_res_spin_lock(locks[i])) in res_spin_lock_test_held_lock_max()
[all …]
H A Dirq.c14 struct bpf_res_spin_lock lockA __hidden SEC(".data.A");
15 struct bpf_res_spin_lock lockB __hidden SEC(".data.B");
/linux-6.15/kernel/bpf/
H A Drqspinlock.c669 __bpf_kfunc int bpf_res_spin_lock(struct bpf_res_spin_lock *lock) in bpf_res_spin_lock() function
673 BUILD_BUG_ON(sizeof(rqspinlock_t) != sizeof(struct bpf_res_spin_lock)); in bpf_res_spin_lock()
674 BUILD_BUG_ON(__alignof__(rqspinlock_t) != __alignof__(struct bpf_res_spin_lock)); in bpf_res_spin_lock()
685 __bpf_kfunc void bpf_res_spin_unlock(struct bpf_res_spin_lock *lock) in bpf_res_spin_unlock()
691 __bpf_kfunc int bpf_res_spin_lock_irqsave(struct bpf_res_spin_lock *lock, unsigned long *flags__irq… in bpf_res_spin_lock_irqsave()
709 __bpf_kfunc void bpf_res_spin_unlock_irqrestore(struct bpf_res_spin_lock *lock, unsigned long *flag… in bpf_res_spin_unlock_irqrestore()
722 BTF_ID_FLAGS(func, bpf_res_spin_lock, KF_RET_NULL)
H A Dverifier.c11936 BTF_ID(struct, bpf_res_spin_lock) in BTF_ID()
12193 BTF_ID(func, bpf_res_spin_lock) in BTF_ID()
/linux-6.15/include/asm-generic/
H A Drqspinlock.h29 struct bpf_res_spin_lock { struct
/linux-6.15/include/linux/
H A Dbpf.h355 return sizeof(struct bpf_res_spin_lock); in btf_field_type_size()
387 return __alignof__(struct bpf_res_spin_lock); in btf_field_type_align()