Home
last modified time | relevance | path

Searched refs:mutex (Results 1 – 25 of 38) sorted by relevance

12

/tools/perf/util/
A Dmutex.h91 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 Dmutex.c20 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 Dsharded_mutex.h18 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 Dtop.h57 struct mutex mutex; member
A Drwsem.h15 struct mutex mtx;
A Dsharded_mutex.c15 size = sizeof(*result) + sizeof(struct mutex) * (1 << bits); in sharded_mutex__new()
A Dannotate.c614 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 Ddso.h251 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 Dintel-tpebs.c39 static struct mutex tpebs_mtx;
60 static struct mutex *tpebs_mtx_get(void) in tpebs_mtx_get()
/tools/include/linux/
A Dspinlock.h26 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 Dpkey_sighandler_tests.c115 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 Dntsync.c230 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 Dmutex.h11 #define guard(mutex) \ argument
12 dummy_##mutex##_guard
/tools/tracing/latency/
A Dlatency-collector.c181 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 Dxstate.c55 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 Dui.h9 extern struct mutex ui__lock;
A Dsetup.c11 struct mutex ui__lock;
/tools/testing/selftests/seccomp/
A Dseccomp_bpf.c2523 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 Dvma_internal.h248 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 Dvmlinux.h74 struct mutex { struct
/tools/testing/selftests/media_tests/
A Dregression_test.txt43 Run dmesg looking for any use-after-free errors or mutex lock errors.
/tools/perf/
A Dbuiltin-top.c903 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 Dfutex-wake.c38 static struct mutex thread_lock;
A Dfutex-hash.c39 static struct mutex thread_lock;
/tools/perf/util/bpf_skel/
A Dlock_contention.bpf.c332 struct mutex *mutex = (void *)lock; in get_lock_owner() local
333 owner = BPF_CORE_READ(mutex, owner.counter); in get_lock_owner()

Completed in 54 milliseconds

12