| /tools/perf/util/ |
| A D | mutex.h | 91 struct LOCKABLE mutex { struct 101 void mutex_init(struct mutex *mtx); 106 void mutex_init_pshared(struct mutex *mtx); 107 void mutex_destroy(struct mutex *mtx); 109 void mutex_lock(struct mutex *mtx) EXCLUSIVE_LOCK_FUNCTION(*mtx); 110 void mutex_unlock(struct mutex *mtx) UNLOCK_FUNCTION(*mtx); 112 bool mutex_trylock(struct mutex *mtx) EXCLUSIVE_TRYLOCK_FUNCTION(true, *mtx); 123 void cond_wait(struct cond *cnd, struct mutex *mtx) EXCLUSIVE_LOCKS_REQUIRED(mtx);
|
| A D | mutex.c | 20 static void __mutex_init(struct mutex *mtx, bool pshared) in __mutex_init() 37 void mutex_init(struct mutex *mtx) in mutex_init() 42 void mutex_init_pshared(struct mutex *mtx) in mutex_init_pshared() 47 void mutex_destroy(struct mutex *mtx) in mutex_destroy() 52 void mutex_lock(struct mutex *mtx) in mutex_lock() 58 void mutex_unlock(struct mutex *mtx) in mutex_unlock() 64 bool mutex_trylock(struct mutex *mtx) in mutex_trylock() 106 void cond_wait(struct cond *cnd, struct mutex *mtx) in cond_wait()
|
| A D | sharded_mutex.h | 18 struct mutex mutexes[]; 24 static inline struct mutex *sharded_mutex__get_mutex(struct sharded_mutex *sm, size_t hash) in sharded_mutex__get_mutex()
|
| A D | top.h | 57 struct mutex mutex; member
|
| A D | rwsem.h | 15 struct mutex mtx;
|
| A D | sharded_mutex.c | 15 size = sizeof(*result) + sizeof(struct mutex) * (1 << bits); in sharded_mutex__new()
|
| A D | annotate.c | 614 static struct mutex *annotation__get_mutex(const struct annotation *notes) in annotation__get_mutex() 628 struct mutex *mutex = annotation__get_mutex(notes); in annotation__lock() local 630 if (mutex) in annotation__lock() 631 mutex_lock(mutex); in annotation__lock() 637 struct mutex *mutex = annotation__get_mutex(notes); in annotation__unlock() local 639 if (mutex) in annotation__unlock() 640 mutex_unlock(mutex); in annotation__unlock() 645 struct mutex *mutex = annotation__get_mutex(notes); in annotation__trylock() local 647 if (!mutex) in annotation__trylock() 650 return mutex_trylock(mutex); in annotation__trylock()
|
| A D | dso.h | 251 struct mutex lock; in DECLARE_RC_STRUCT() 311 extern struct mutex _dso__data_open_lock; 540 static inline struct mutex *dso__lock(struct dso *dso) in dso__lock()
|
| A D | intel-tpebs.c | 39 static struct mutex tpebs_mtx; 60 static struct mutex *tpebs_mtx_get(void) in tpebs_mtx_get()
|
| /tools/include/linux/ |
| A D | spinlock.h | 26 static inline void arch_spin_lock(arch_spinlock_t *mutex) in arch_spin_lock() argument 28 pthread_mutex_lock(mutex); in arch_spin_lock() 31 static inline void arch_spin_unlock(arch_spinlock_t *mutex) in arch_spin_unlock() argument 33 pthread_mutex_unlock(mutex); in arch_spin_unlock() 36 static inline bool arch_spin_is_locked(arch_spinlock_t *mutex) in arch_spin_is_locked() argument
|
| /tools/testing/selftests/mm/ |
| A D | pkey_sighandler_tests.c | 115 pthread_mutex_lock(&mutex); in sigsegv_handler() 120 pthread_mutex_unlock(&mutex); in sigsegv_handler() 127 pthread_mutex_lock(&mutex); in sigusr1_handler() 132 pthread_mutex_unlock(&mutex); in sigusr1_handler() 227 pthread_mutex_lock(&mutex); in test_sigsegv_handler_with_pkey0_disabled() 230 pthread_mutex_unlock(&mutex); in test_sigsegv_handler_with_pkey0_disabled() 267 pthread_mutex_lock(&mutex); in test_sigsegv_handler_cannot_access_stack() 270 pthread_mutex_unlock(&mutex); in test_sigsegv_handler_cannot_access_stack() 342 pthread_mutex_lock(&mutex); in test_sigsegv_handler_with_different_pkey_for_stack() 345 pthread_mutex_unlock(&mutex); in test_sigsegv_handler_with_different_pkey_for_stack() [all …]
|
| /tools/testing/selftests/drivers/ntsync/ |
| A D | ntsync.c | 230 int fd, ret, mutex; in TEST() local 240 EXPECT_EQ(-1, mutex); in TEST() 246 EXPECT_EQ(-1, mutex); in TEST() 252 EXPECT_LE(0, mutex); in TEST() 272 check_mutex_state(mutex, 0, 0); in TEST() 349 close(mutex); in TEST() 354 EXPECT_LE(0, mutex); in TEST() 355 check_mutex_state(mutex, 0, 0); in TEST() 362 close(mutex); in TEST() 367 EXPECT_LE(0, mutex); in TEST() [all …]
|
| /tools/testing/memblock/linux/ |
| A D | mutex.h | 11 #define guard(mutex) \ argument 12 dummy_##mutex##_guard
|
| /tools/tracing/latency/ |
| A D | latency-collector.c | 181 pthread_mutex_t mutex; member 192 pthread_mutex_t mutex; member 214 pthread_mutex_t mutex; member 225 pthread_mutex_t mutex; member 607 mutex_lock(&save_state.mutex); in restore_ftrace() 775 mutex_lock(&sleeptable.mutex); in table_get_probability() 791 mutex_init(&q->mutex, NULL); in init_queue() 853 mutex_lock(&q->mutex); in queue_try_to_add_entry() 859 mutex_unlock(&q->mutex); in queue_try_to_add_entry() 867 mutex_lock(&q->mutex); in queue_wait_for_entry() [all …]
|
| /tools/testing/selftests/x86/ |
| A D | xstate.c | 55 pthread_mutex_t mutex; member 128 pthread_mutex_lock(&finfo->mutex); in check_xstate() 148 pthread_mutex_unlock(&finfo->next->mutex); in check_xstate() 169 pthread_mutex_init(&finfo[i].mutex, NULL); in create_threads() 170 pthread_mutex_lock(&finfo[i].mutex); in create_threads() 239 pthread_mutex_unlock(&finfo[0].mutex); in test_context_switch()
|
| /tools/perf/ui/ |
| A D | ui.h | 9 extern struct mutex ui__lock;
|
| A D | setup.c | 11 struct mutex ui__lock;
|
| /tools/testing/selftests/seccomp/ |
| A D | seccomp_bpf.c | 2523 pthread_mutex_t *mutex; member 2552 pthread_mutex_t mutex; in FIXTURE() local 2589 self->sibling[0].mutex = &self->mutex; in FIXTURE_SETUP() 2597 self->sibling[1].mutex = &self->mutex; in FIXTURE_SETUP() 2636 pthread_mutex_lock(me->mutex); in tsync_sibling() 2645 pthread_mutex_unlock(me->mutex); in tsync_sibling() 2652 pthread_mutex_unlock(me->mutex); in tsync_sibling() 2705 pthread_mutex_lock(&self->mutex); in TEST_F() 2748 pthread_mutex_lock(&self->mutex); in TEST_F() 2773 pthread_mutex_lock(&self->mutex); in TEST_F() [all …]
|
| /tools/testing/vma/ |
| A D | vma_internal.h | 248 struct mutex {}; struct 250 struct mutex mutexname = {} 1119 static inline void mutex_lock(struct mutex *) in mutex_lock() argument 1123 static inline void mutex_unlock(struct mutex *) in mutex_unlock() argument 1127 static inline bool mutex_is_locked(struct mutex *) in mutex_is_locked() argument
|
| /tools/perf/util/bpf_skel/vmlinux/ |
| A D | vmlinux.h | 74 struct mutex { struct
|
| /tools/testing/selftests/media_tests/ |
| A D | regression_test.txt | 43 Run dmesg looking for any use-after-free errors or mutex lock errors.
|
| /tools/perf/ |
| A D | builtin-top.c | 903 mutex_lock(&top->qe.mutex); in perf_top__mmap_read_idx() 906 mutex_unlock(&top->qe.mutex); in perf_top__mmap_read_idx() 1117 mutex_lock(&top->qe.mutex); in process_thread() 1119 cond_wait(&top->qe.cond, &top->qe.mutex); in process_thread() 1120 mutex_unlock(&top->qe.mutex); in process_thread() 1238 mutex_init(&top->qe.mutex); in init_process_thread() 1246 mutex_destroy(&top->qe.mutex); in exit_process_thread()
|
| /tools/perf/bench/ |
| A D | futex-wake.c | 38 static struct mutex thread_lock;
|
| A D | futex-hash.c | 39 static struct mutex thread_lock;
|
| /tools/perf/util/bpf_skel/ |
| A D | lock_contention.bpf.c | 332 struct mutex *mutex = (void *)lock; in get_lock_owner() local 333 owner = BPF_CORE_READ(mutex, owner.counter); in get_lock_owner()
|