Searched refs:bpf_res_spin_lock (Results 1 – 7 of 7) sorted by relevance
12 struct bpf_res_spin_lock lock;22 struct bpf_res_spin_lock lockA __hidden SEC(".data.A");23 struct bpf_res_spin_lock lockB __hidden SEC(".data.B");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()[all …]
11 struct bpf_res_spin_lock lock;95 struct bpf_res_spin_lock *lock, *nlock; in stream_deadlock()103 if (bpf_res_spin_lock(lock)) in stream_deadlock()105 if (bpf_res_spin_lock(nlock)) { in stream_deadlock()
694 __bpf_kfunc int bpf_res_spin_lock(struct bpf_res_spin_lock *lock) in bpf_res_spin_lock() function698 BUILD_BUG_ON(sizeof(rqspinlock_t) != sizeof(struct bpf_res_spin_lock)); in bpf_res_spin_lock()710 __bpf_kfunc void bpf_res_spin_unlock(struct bpf_res_spin_lock *lock) in bpf_res_spin_unlock()716 __bpf_kfunc int bpf_res_spin_lock_irqsave(struct bpf_res_spin_lock *lock, unsigned long *flags__irq… in bpf_res_spin_lock_irqsave()735 __bpf_kfunc void bpf_res_spin_unlock_irqrestore(struct bpf_res_spin_lock *lock, unsigned long *flag… in bpf_res_spin_unlock_irqrestore()748 BTF_ID_FLAGS(func, bpf_res_spin_lock, KF_RET_NULL | KF_SPINLOCK_SAFE)
11399 BTF_ID(struct, bpf_res_spin_lock) in BTF_ID()11729 BTF_ID(func, bpf_res_spin_lock) in BTF_ID()
112 __hidden struct bpf_res_spin_lock qa_q_lock0 SEC(".data.qa_q_lock0");113 __hidden struct bpf_res_spin_lock qa_q_lock1 SEC(".data.qa_q_lock1");114 __hidden struct bpf_res_spin_lock qa_q_lock2 SEC(".data.qa_q_lock2");115 __hidden struct bpf_res_spin_lock qa_q_lock3 SEC(".data.qa_q_lock3");116 __hidden struct bpf_res_spin_lock qa_q_lock4 SEC(".data.qa_q_lock4");118 static struct bpf_res_spin_lock *qa_q_lock(s32 qid) in qa_q_lock()199 __hidden struct bpf_res_spin_lock qa_task_lock SEC(".data.qa_task_lock");201 static int qmap_spin_lock(struct bpf_res_spin_lock *lock) in qmap_spin_lock()203 if (bpf_res_spin_lock(lock)) { in qmap_spin_lock()267 struct bpf_res_spin_lock *lock = qa_q_lock(fifo->idx); in qmap_fifo_enqueue()[all …]
638 int bpf_res_spin_lock(struct bpf_res_spin_lock *lock) __ksym __weak;639 void bpf_res_spin_unlock(struct bpf_res_spin_lock *lock) __ksym __weak;
394 return sizeof(struct bpf_res_spin_lock); in btf_field_type_size()428 return __alignof__(struct bpf_res_spin_lock); in btf_field_type_align()