Home
last modified time | relevance | path

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

/tools/lib/lockdep/include/liblockdep/
Dmutex.h9 pthread_mutex_t mutex; member
18 .mutex = PTHREAD_MUTEX_INITIALIZER, \
28 return pthread_mutex_init(&lock->mutex, __mutexattr); in __mutex_init()
31 #define liblockdep_pthread_mutex_init(mutex, mutexattr) \ argument
33 lockdep_register_key(&(mutex)->key); \
34 __mutex_init((mutex), #mutex, &(mutex)->key, (mutexattr)); \
40 return pthread_mutex_lock(&lock->mutex); in liblockdep_pthread_mutex_lock()
46 return pthread_mutex_unlock(&lock->mutex); in liblockdep_pthread_mutex_unlock()
52 return pthread_mutex_trylock(&lock->mutex) == 0 ? 1 : 0; in liblockdep_pthread_mutex_trylock()
59 return pthread_mutex_destroy(&lock->mutex); in liblockdep_pthread_mutex_destroy()
/tools/lib/lockdep/
Dpreload.c45 extern int __pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *attr);
46 extern int __pthread_mutex_lock(pthread_mutex_t *mutex);
47 extern int __pthread_mutex_trylock(pthread_mutex_t *mutex);
48 extern int __pthread_mutex_unlock(pthread_mutex_t *mutex);
49 extern int __pthread_mutex_destroy(pthread_mutex_t *mutex);
57 static int (*ll_pthread_mutex_init)(pthread_mutex_t *mutex,
59 static int (*ll_pthread_mutex_lock)(pthread_mutex_t *mutex) = __pthread_mutex_lock;
60 static int (*ll_pthread_mutex_trylock)(pthread_mutex_t *mutex) = __pthread_mutex_trylock;
61 static int (*ll_pthread_mutex_unlock)(pthread_mutex_t *mutex) = __pthread_mutex_unlock;
62 static int (*ll_pthread_mutex_destroy)(pthread_mutex_t *mutex) = __pthread_mutex_destroy;
[all …]
/tools/include/linux/
Dspinlock.h25 static inline void arch_spin_lock(arch_spinlock_t *mutex) in arch_spin_lock() argument
27 pthread_mutex_lock(mutex); in arch_spin_lock()
30 static inline void arch_spin_unlock(arch_spinlock_t *mutex) in arch_spin_unlock() argument
32 pthread_mutex_unlock(mutex); in arch_spin_unlock()
35 static inline bool arch_spin_is_locked(arch_spinlock_t *mutex) in arch_spin_is_locked() argument
/tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/
Dlocks.h23 pthread_mutex_t mutex; member
28 BUG_ON(pthread_mutex_lock(&lock->mutex)); in lock_impl_lock()
33 BUG_ON(pthread_mutex_unlock(&lock->mutex)); in lock_impl_unlock()
38 int err = pthread_mutex_trylock(&lock->mutex); in lock_impl_trylock()
49 pthread_mutex_init(&lock->mutex, NULL); in lock_impl_init()
52 #define LOCK_IMPL_INITIALIZER {.mutex = PTHREAD_MUTEX_INITIALIZER}
/tools/perf/util/
Dtop.h52 pthread_mutex_t mutex; member
/tools/testing/selftests/seccomp/
Dseccomp_bpf.c2289 pthread_mutex_t *mutex; member
2318 pthread_mutex_t mutex; in FIXTURE_DATA() local
2349 pthread_mutex_init(&self->mutex, NULL); in FIXTURE_SETUP()
2355 self->sibling[0].mutex = &self->mutex; in FIXTURE_SETUP()
2363 self->sibling[1].mutex = &self->mutex; in FIXTURE_SETUP()
2390 pthread_mutex_destroy(&self->mutex); in FIXTURE_TEARDOWN()
2402 pthread_mutex_lock(me->mutex); in tsync_sibling()
2411 pthread_mutex_unlock(me->mutex); in tsync_sibling()
2415 pthread_cond_wait(me->cond, me->mutex); in tsync_sibling()
2418 pthread_mutex_unlock(me->mutex); in tsync_sibling()
[all …]
/tools/testing/selftests/media_tests/
Dregression_test.txt43 Run dmesg looking for any user-after free errors or mutex lock errors.
/tools/perf/
Dbuiltin-top.c891 pthread_mutex_lock(&top->qe.mutex); in perf_top__mmap_read_idx()
894 pthread_mutex_unlock(&top->qe.mutex); in perf_top__mmap_read_idx()
1099 pthread_mutex_lock(&top->qe.mutex); in process_thread()
1101 pthread_cond_wait(&top->qe.cond, &top->qe.mutex); in process_thread()
1102 pthread_mutex_unlock(&top->qe.mutex); in process_thread()
1216 pthread_mutex_init(&top->qe.mutex, NULL); in init_process_thread()
/tools/perf/bench/
Dnuma.c473 static void init_global_mutex(pthread_mutex_t *mutex) in init_global_mutex() argument
479 pthread_mutex_init(mutex, &attr); in init_global_mutex()
/tools/power/pm-graph/
DREADME149 The tool sets kprobes on all delay and mutex calls to see which devices