/tools/virtio/linux/ |
A D | spinlock.h | 8 static inline void spin_lock_init(spinlock_t *lock) in spin_lock_init() 14 static inline void spin_lock(spinlock_t *lock) in spin_lock() 20 static inline void spin_unlock(spinlock_t *lock) in spin_unlock() 26 static inline void spin_lock_bh(spinlock_t *lock) in spin_lock_bh() 31 static inline void spin_unlock_bh(spinlock_t *lock) in spin_unlock_bh() 36 static inline void spin_lock_irq(spinlock_t *lock) in spin_lock_irq() 41 static inline void spin_unlock_irq(spinlock_t *lock) in spin_unlock_irq() 46 static inline void spin_lock_irqsave(spinlock_t *lock, unsigned long f) in spin_lock_irqsave() 51 static inline void spin_unlock_irqrestore(spinlock_t *lock, unsigned long f) in spin_unlock_irqrestore()
|
/tools/virtio/ringtest/ |
A D | ptr_ring.c | 64 static void spin_lock_init(spinlock_t *lock) in spin_lock_init() 70 static void spin_lock(spinlock_t *lock) in spin_lock() 76 static void spin_unlock(spinlock_t *lock) in spin_unlock() 82 static void spin_lock_bh(spinlock_t *lock) in spin_lock_bh() 87 static void spin_unlock_bh(spinlock_t *lock) in spin_unlock_bh() 92 static void spin_lock_irq(spinlock_t *lock) in spin_lock_irq() 97 static void spin_unlock_irq(spinlock_t *lock) in spin_unlock_irq() 102 static void spin_lock_irqsave(spinlock_t *lock, unsigned long f) in spin_lock_irqsave() 107 static void spin_unlock_irqrestore(spinlock_t *lock, unsigned long f) in spin_unlock_irqrestore()
|
/tools/testing/selftests/bpf/progs/ |
A D | bpf_arena_spin_lock.h | 148 static __always_inline u32 xchg_tail(arena_spinlock_t __arena *lock, u32 tail) in xchg_tail() 178 static __always_inline void clear_pending(arena_spinlock_t __arena *lock) in clear_pending() 191 static __always_inline void clear_pending_set_locked(arena_spinlock_t __arena *lock) in clear_pending_set_locked() 202 static __always_inline void set_locked(arena_spinlock_t __arena *lock) in set_locked() 208 u32 arena_fetch_set_pending_acquire(arena_spinlock_t __arena *lock) in arena_fetch_set_pending_acquire() 233 static __always_inline int arena_spin_trylock(arena_spinlock_t __arena *lock) in arena_spin_trylock() 244 int arena_spin_lock_slowpath(arena_spinlock_t __arena __arg_arena *lock, u32 val) in arena_spin_lock_slowpath() 493 static __always_inline int arena_spin_lock(arena_spinlock_t __arena *lock) in arena_spin_lock() 515 static __always_inline void arena_spin_unlock(arena_spinlock_t __arena *lock) in arena_spin_unlock() 524 #define arena_spin_lock_irqsave(lock, flags) \ argument [all …]
|
A D | linked_list.c | 12 struct bpf_spin_lock lock; member 28 int list_push_pop(struct bpf_spin_lock *lock, struct bpf_list_head *head, bool leave_in_map) in list_push_pop() 109 int list_push_pop_multiple(struct bpf_spin_lock *lock, struct bpf_list_head *head, bool leave_in_ma… in list_push_pop_multiple() 191 int list_in_list(struct bpf_spin_lock *lock, struct bpf_list_head *head, bool leave_in_map) in list_in_list() 261 int test_list_push_pop(struct bpf_spin_lock *lock, struct bpf_list_head *head) in test_list_push_pop() 272 int test_list_push_pop_multiple(struct bpf_spin_lock *lock, struct bpf_list_head *head) in test_list_push_pop_multiple() 283 int test_list_in_list(struct bpf_spin_lock *lock, struct bpf_list_head *head) in test_list_in_list()
|
A D | test_helper_restricted.c | 10 struct lock { struct 11 struct bpf_spin_lock l; argument 50 struct lock *lock; in spin_lock_work() local
|
A D | tracing_failure.c | 11 int BPF_PROG(test_spin_lock, struct bpf_spin_lock *lock) in BPF_PROG() 17 int BPF_PROG(test_spin_unlock, struct bpf_spin_lock *lock) in BPF_PROG()
|
A D | stream.c | 10 struct bpf_res_spin_lock lock; member 52 struct bpf_res_spin_lock *lock, *nlock; in stream_deadlock() local
|
A D | test_map_lock.c | 10 struct bpf_spin_lock lock; member 22 struct bpf_spin_lock lock; member
|
A D | test_spin_lock.c | 10 struct bpf_spin_lock lock; member 22 struct bpf_spin_lock lock; member 33 struct bpf_spin_lock lock; member
|
A D | linked_list.h | 17 struct bpf_spin_lock lock; member 23 struct bpf_spin_lock lock; member
|
A D | refcounted_kptr.c | 41 private(A) struct bpf_spin_lock lock; variable 75 struct bpf_spin_lock *lock) in __insert_in_tree_and_list() 107 struct bpf_spin_lock *lock) in __stash_map_insert_tree() 141 struct bpf_spin_lock *lock, in __read_from_tree() 174 struct bpf_spin_lock *lock, in __read_from_list()
|
A D | bpf_qdisc_fq.c | 84 struct bpf_spin_lock lock; member 167 fq_flows_add_head(struct bpf_list_head *head, struct bpf_spin_lock *lock, in fq_flows_add_head() 177 fq_flows_add_tail(struct bpf_list_head *head, struct bpf_spin_lock *lock, in fq_flows_add_tail() 187 fq_flows_remove_front(struct bpf_list_head *head, struct bpf_spin_lock *lock, in fq_flows_remove_front() 197 fq_flows_is_empty(struct bpf_list_head *head, struct bpf_spin_lock *lock) in fq_flows_is_empty() 466 struct bpf_spin_lock *lock; in fq_dequeue_nonprio_flows() local
|
A D | htab_reuse.c | 9 struct bpf_spin_lock lock; member
|
A D | arena_spin_lock.c | 23 arena_spinlock_t __arena lock; variable
|
A D | freplace_attach_probe.c | 12 struct bpf_spin_lock lock; member
|
A D | timer_crash.c | 9 struct bpf_spin_lock lock; member
|
/tools/testing/selftests/kvm/lib/arm64/ |
A D | spinlock.c | 9 void spin_lock(struct spinlock *lock) in spin_lock() 24 void spin_unlock(struct spinlock *lock) in spin_unlock()
|
/tools/testing/shared/linux/ |
A D | local_lock.h | 5 static inline void local_lock(local_lock_t *lock) { } in local_lock() 6 static inline void local_unlock(local_lock_t *lock) { } in local_unlock()
|
A D | lockdep.h | 10 static inline void lockdep_set_class(spinlock_t *lock, in lockdep_set_class()
|
/tools/testing/selftests/futex/functional/ |
A D | futex_numa.c | 36 void futex_numa_32_lock(struct futex_numa_32 *lock) in futex_numa_32_lock() 82 void futex_numa_32_unlock(struct futex_numa_32 *lock) in futex_numa_32_unlock() 102 struct futex_numa_32 *lock; member 158 static struct futex_numa_32 lock = { .val = 0, }; variable
|
/tools/testing/selftests/timens/ |
A D | clock_nanosleep.c | 27 pthread_mutex_t *lock; member 46 pthread_mutex_t lock; in run_test() local
|
/tools/testing/selftests/rseq/ |
A D | basic_percpu_ops_test.c | 64 struct percpu_lock lock; member 83 int rseq_this_cpu_lock(struct percpu_lock *lock) in rseq_this_cpu_lock() 105 void rseq_percpu_unlock(struct percpu_lock *lock, int cpu) in rseq_percpu_unlock()
|
/tools/testing/selftests/bpf/map_tests/ |
A D | sk_storage_map.c | 164 int lock; in insert_close_thread() member 281 int lock; in update_thread() member 460 int lock; in test_sk_storage_map_basic() member
|
/tools/perf/util/ |
A D | dsos.h | 21 struct rw_semaphore lock; member
|
A D | threads.h | 16 struct rw_semaphore lock; member
|