Home
last modified time | relevance | path

Searched refs:spinlock (Results 1 – 25 of 50) sorted by relevance

12

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_unlock/
D1-1.c32 static pthread_spinlock_t spinlock; variable
47 rc = pthread_spin_trylock(&spinlock); in fn_chld()
56 if (pthread_spin_unlock(&spinlock)) { in fn_chld()
72 if (pthread_spin_init(&spinlock, PTHREAD_PROCESS_PRIVATE) != 0) { in main()
80 if (pthread_spin_lock(&spinlock) != 0) { in main()
88 rc = pthread_spin_unlock(&spinlock); in main()
108 if (pthread_spin_trylock(&spinlock) != 0) { in main()
115 if (pthread_spin_unlock(&spinlock) != 0) { in main()
120 if (pthread_spin_destroy(&spinlock) != 0) { in main()
D1-2.c34 static pthread_spinlock_t spinlock; variable
49 rc = pthread_spin_lock(&spinlock); in fn_chld()
61 if (pthread_spin_unlock(&spinlock)) { in fn_chld()
77 if (pthread_spin_init(&spinlock, PTHREAD_PROCESS_PRIVATE) != 0) { in main()
85 if (pthread_spin_lock(&spinlock) != 0) { in main()
115 if (pthread_spin_unlock(&spinlock) != 0) { in main()
139 if (pthread_spin_destroy(&spinlock) != 0) { in main()
D3-1.c32 static pthread_spinlock_t spinlock; variable
45 if (pthread_spin_init(&spinlock, PTHREAD_PROCESS_PRIVATE) != 0) { in fn_chld()
52 rc = pthread_spin_lock(&spinlock); in fn_chld()
66 pthread_spin_unlock(&spinlock); in fn_chld()
68 if (pthread_spin_destroy(&spinlock) != 0) { in fn_chld()
96 rc = pthread_spin_unlock(&spinlock); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/
D2-1.c36 pthread_spinlock_t spinlock; member
83 if ((pthread_spin_init(&(spinlock_data->spinlock), pshared)) != 0) { in main()
89 if ((pthread_spin_lock(&(spinlock_data->spinlock))) != 0) { in main()
110 if (pthread_spin_unlock(&(spinlock_data->spinlock)) != 0) { in main()
141 if ((pthread_spin_trylock(&(spinlock_data->spinlock))) != EBUSY) { in main()
157 if ((pthread_spin_trylock(&(spinlock_data->spinlock))) != 0) { in main()
164 if (pthread_spin_unlock(&(spinlock_data->spinlock)) != 0) { in main()
169 if (pthread_spin_destroy(&(spinlock_data->spinlock)) != 0) { in main()
D2-2.c43 pthread_spinlock_t spinlock; member
90 if ((pthread_spin_init(&(spinlock_data->spinlock), pshared)) != 0) { in main()
96 if ((pthread_spin_lock(&(spinlock_data->spinlock))) != 0) { in main()
116 if (pthread_spin_unlock(&(spinlock_data->spinlock)) != 0) { in main()
147 rc = pthread_spin_trylock(&(spinlock_data->spinlock)); in main()
161 rc = pthread_spin_trylock(&(spinlock_data->spinlock)); in main()
169 if (pthread_spin_unlock(&(spinlock_data->spinlock)) != 0) { in main()
174 if (pthread_spin_destroy(&(spinlock_data->spinlock)) != 0) { in main()
D1-1.c29 static pthread_spinlock_t spinlock; variable
42 rc = pthread_spin_init(&spinlock, pshared); in main()
51 if (pthread_spin_lock(&spinlock) != 0) { in main()
59 if (pthread_spin_unlock(&spinlock) != 0) { in main()
64 rc = pthread_spin_destroy(&spinlock); in main()
D4-1.c33 static pthread_spinlock_t spinlock; variable
41 rc = pthread_spin_init(&spinlock, pshared); in fn_chld()
65 rc = pthread_spin_init(&spinlock, pshared); in main()
74 if (pthread_spin_lock(&spinlock) != 0) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_lock/
D1-2.c30 static pthread_spinlock_t spinlock; variable
46 rc = pthread_spin_lock(&spinlock); in fn_chld()
60 if (pthread_spin_unlock(&spinlock)) { in fn_chld()
77 if (pthread_spin_init(&spinlock, PTHREAD_PROCESS_PRIVATE) != 0) { in main()
85 if (pthread_spin_lock(&spinlock) != 0) { in main()
118 if (pthread_spin_unlock(&spinlock) != 0) { in main()
144 if (pthread_spin_destroy(&spinlock) != 0) { in main()
D3-1.c37 pthread_spinlock_t spinlock; in main() local
46 if (pthread_spin_init(&spinlock, PTHREAD_PROCESS_PRIVATE) != 0) { in main()
54 if (pthread_spin_lock(&spinlock) != 0) { in main()
65 rc = pthread_spin_lock(&spinlock); in main()
78 pthread_spin_unlock(&spinlock); in main()
81 pthread_spin_destroy(&spinlock); in main()
D3-2.c44 pthread_spinlock_t spinlock; in main() local
59 rc = pthread_spin_lock(&spinlock); in main()
66 pthread_spin_unlock(&spinlock); in main()
69 pthread_spin_destroy(&spinlock); in main()
D1-1.c30 static pthread_spinlock_t spinlock; variable
74 rc = pthread_spin_lock(&spinlock); in fn_chld()
113 if (pthread_spin_init(&spinlock, PTHREAD_PROCESS_PRIVATE) != 0) { in main()
121 if (pthread_spin_lock(&spinlock) != 0) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_destroy/
D1-1.c27 static pthread_spinlock_t spinlock; variable
34 if (pthread_spin_init(&spinlock, PTHREAD_PROCESS_PRIVATE) != 0) { in main()
42 if (pthread_spin_lock(&spinlock) != 0) { in main()
51 if (pthread_spin_unlock(&spinlock) != 0) { in main()
57 rc = pthread_spin_destroy(&spinlock); in main()
D3-1.c32 static pthread_spinlock_t spinlock; variable
39 rc = pthread_spin_destroy(&spinlock); in fn_chld()
55 if (pthread_spin_init(&spinlock, PTHREAD_PROCESS_PRIVATE) != 0) { in main()
63 if (pthread_spin_lock(&spinlock) != 0) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_trylock/
D1-1.c31 static pthread_spinlock_t spinlock; variable
70 rc = pthread_spin_trylock(&spinlock); in fn_chld()
80 if (pthread_spin_init(&spinlock, PTHREAD_PROCESS_PRIVATE) != 0) { in main()
88 if (pthread_spin_trylock(&spinlock) != 0) { in main()
D4-1.c28 pthread_spinlock_t spinlock; in main() local
33 rc = pthread_spin_trylock(&spinlock); in main()
/external/perfetto/src/profiling/memory/
Dshared_ring_buffer.cc172 const ScopedSpinlock& spinlock, in BeginWrite() argument
174 PERFETTO_DCHECK(spinlock.locked()); in BeginWrite()
177 base::Optional<PointerPositions> opt_pos = GetPointerPositions(spinlock); in BeginWrite()
224 ScopedSpinlock spinlock(&meta_->spinlock, ScopedSpinlock::Mode::Blocking); in BeginRead() local
226 base::Optional<PointerPositions> opt_pos = GetPointerPositions(spinlock); in BeginRead()
271 ScopedSpinlock spinlock(&meta_->spinlock, ScopedSpinlock::Mode::Blocking); in EndRead() local
Dshared_ring_buffer.h100 Buffer BeginWrite(const ScopedSpinlock& spinlock, size_t size);
106 Stats GetStats(ScopedSpinlock& spinlock) { in GetStats() argument
107 PERFETTO_DCHECK(spinlock.locked()); in GetStats()
118 auto lock = ScopedSpinlock(&meta_->spinlock, mode); in AcquireLock()
126 alignas(uint64_t) std::atomic<bool> spinlock; member
/external/syzkaller/pkg/report/testdata/linux/report/
D641 TITLE: BUG: spinlock lockup suspected in corrupted
4 [ 72.159680] BUG: spinlock lockup suspected on CPU#2, syz-executor/12636
D661 TITLE: BUG: spinlock lockup suspected in corrupted
4 [ 72.159680] BUG: spinlock lockup suspected on CPU#2, syz-executor/12636
D681 TITLE: BUG: spinlock recursion in __task_rq_lock
3 [ 213.269287] BUG: spinlock recursion on CPU#0, syz-executor7/5032
D781 TITLE: BUG: spinlock bad magic in tcp_nuke_addr
3 [ 82.818367] BUG: spinlock bad magic on CPU#0, ^keyring*�vmnet/20513
D951 TITLE: BUG: spinlock already unlocked in __wake_up
3 [ 108.620932] BUG: spinlock already unlocked on CPU#1, migration/1/12
/external/ppp/pppd/
DMakefile.linux172 PPPDSRCS += tdb.c spinlock.c
173 PPPDOBJS += tdb.o spinlock.o
174 HEADERS += tdb.h spinlock.h
DREADME.google2 Removed multilink.c, spinlock.[ch], tdb.[ch] as they are unused.
/external/syzkaller/pkg/report/testdata/linux/guilty/
D1026 _raw_spin_lock+0x32/0x40 kernel/locking/spinlock.c:151
27 spin_lock include/linux/spinlock.h:299 [inline]

12