/tools/testing/selftests/futex/include/ |
D | futextest.h | 74 #define futex(uaddr, op, val, timeout, uaddr2, val3, opflags) \ macro 84 return futex(uaddr, FUTEX_WAIT, val, timeout, NULL, 0, opflags); in futex_wait() 94 return futex(uaddr, FUTEX_WAKE, nr_wake, NULL, NULL, 0, opflags); in futex_wake() 105 return futex(uaddr, FUTEX_WAIT_BITSET, val, timeout, NULL, bitset, in futex_wait_bitset() 116 return futex(uaddr, FUTEX_WAKE_BITSET, nr_wake, NULL, NULL, bitset, in futex_wake_bitset() 128 return futex(uaddr, FUTEX_LOCK_PI, detect, timeout, NULL, 0, opflags); in futex_lock_pi() 137 return futex(uaddr, FUTEX_UNLOCK_PI, 0, NULL, NULL, 0, opflags); in futex_unlock_pi() 147 return futex(uaddr, FUTEX_WAKE_OP, nr_wake, nr_wake2, uaddr2, wake_op, in futex_wake_op() 163 return futex(uaddr, FUTEX_REQUEUE, nr_wake, nr_requeue, uaddr2, 0, in futex_requeue() 176 return futex(uaddr, FUTEX_CMP_REQUEUE, nr_wake, nr_requeue, uaddr2, in futex_cmp_requeue() [all …]
|
/tools/perf/bench/ |
D | Build | 4 perf-y += futex-hash.o 5 perf-y += futex-wake.o 6 perf-y += futex-wake-parallel.o 7 perf-y += futex-requeue.o 8 perf-y += futex-lock-pi.o
|
D | futex.h | 35 #define futex(uaddr, op, val, timeout, uaddr2, val3, opflags) \ macro 45 return futex(uaddr, FUTEX_WAIT, val, timeout, NULL, 0, opflags); in futex_wait() 55 return futex(uaddr, FUTEX_WAKE, nr_wake, NULL, NULL, 0, opflags); in futex_wake() 64 return futex(uaddr, FUTEX_LOCK_PI, 0, timeout, NULL, 0, opflags); in futex_lock_pi() 73 return futex(uaddr, FUTEX_UNLOCK_PI, 0, NULL, NULL, 0, opflags); in futex_unlock_pi() 85 return futex(uaddr, FUTEX_CMP_REQUEUE, nr_wake, nr_requeue, uaddr2, in futex_cmp_requeue()
|
D | futex-lock-pi.c | 23 u_int32_t *futex; member 89 ret = futex_lock_pi(w->futex, NULL, futex_flag); in workerfn() 94 w->tid, w->futex, ret); in workerfn() 102 ret = futex_unlock_pi(w->futex, futex_flag); in workerfn() 105 w->tid, w->futex, ret); in workerfn() 123 worker[i].futex = calloc(1, sizeof(u_int32_t)); in create_threads() 124 if (!worker[i].futex) in create_threads() 127 worker[i].futex = &global_futex; in create_threads() 209 worker[i].tid, worker[i].futex, t); in bench_futex_lock_pi() 212 free(worker[i].futex); in bench_futex_lock_pi()
|
D | futex-hash.c | 44 u_int32_t *futex; member 84 ret = futex_wait(&w->futex[i], 1234, NULL, futex_flag); in workerfn() 159 worker[i].futex = calloc(nfutexes, sizeof(*worker[i].futex)); in bench_futex_hash() 160 if (!worker[i].futex) in bench_futex_hash() 204 worker[i].tid, &worker[i].futex[0], t); in bench_futex_hash() 207 worker[i].tid, &worker[i].futex[0], in bench_futex_hash() 208 &worker[i].futex[nfutexes-1], t); in bench_futex_hash() 211 free(worker[i].futex); in bench_futex_hash()
|
D | futex-wake-parallel.c | 36 static u_int32_t futex = 0; variable 67 waker->nwoken = futex_wake(&futex, nwakes, futex_flag); in waking_workerfn() 112 if (futex_wait(&futex, 0, NULL, futex_flag) != EINTR) in blocked_workerfn() 245 &futex, nwaking_threads, nwakes); in bench_futex_wake_parallel()
|
/tools/testing/selftests/powerpc/benchmarks/ |
D | futex_bench.c | 18 #define futex(A, B, C, D, E, F) syscall(__NR_futex, A, B, C, D, E, F) macro 29 futex(&addr, FUTEX_WAKE, 1, NULL, NULL, 0); in test_futex()
|
/tools/perf/scripts/python/bin/ |
D | futex-contention-report | 4 perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/futex-contention.py
|
/tools/testing/selftests/futex/ |
D | README | 3 Futex Test is intended to thoroughly test the Linux kernel futex system call 6 Functional tests shall test the documented behavior of the futex operation 54 based on the primary futex operation they test. Eventually this will become a
|
/tools/perf/Documentation/ |
D | perf-bench.txt | 58 'futex':: 189 SUITES FOR 'futex' 204 Suite for evaluating futex lock_pi calls.
|
/tools/testing/selftests/ |
D | Makefile | 8 TARGETS += futex
|
/tools/perf/arch/x86/entry/syscalls/ |
D | syscall_64.tbl | 211 202 common futex sys_futex
|