| /tools/testing/selftests/futex/functional/ |
| A D | futex_wait.c | 20 void *futex; variable 42 if (futex_wait(futex, 0, &to, flags)) in waiterfn() 56 futex = &f_private; in main() 80 info("Calling private futex_wait on futex: %p\n", futex); in main() 86 info("Calling private futex_wake on futex: %p\n", futex); in main() 87 res = futex_wake(futex, 1, FUTEX_PRIVATE_FLAG); in main() 106 futex = shared_data; in main() 108 info("Calling shared (page anon) futex_wait on futex: %p\n", futex); in main() 114 info("Calling shared (page anon) futex_wake on futex: %p\n", futex); in main() 115 res = futex_wake(futex, 1, 0); in main() [all …]
|
| A D | futex_numa_mpol.c | 178 futex_numa->futex = 0; in main() 218 futex_numa->futex = 0; in main()
|
| /tools/testing/selftests/futex/include/ |
| A D | futextest.h | 81 #define futex(uaddr, op, val, timeout, uaddr2, val3, opflags) \ macro 91 return futex(uaddr, FUTEX_WAIT, val, timeout, NULL, 0, opflags); in futex_wait() 101 return futex(uaddr, FUTEX_WAKE, nr_wake, NULL, NULL, 0, opflags); in futex_wake() 112 return futex(uaddr, FUTEX_WAIT_BITSET, val, timeout, NULL, bitset, in futex_wait_bitset() 123 return futex(uaddr, FUTEX_WAKE_BITSET, nr_wake, NULL, NULL, bitset, in futex_wake_bitset() 135 return futex(uaddr, FUTEX_LOCK_PI, detect, timeout, NULL, 0, opflags); in futex_lock_pi() 144 return futex(uaddr, FUTEX_UNLOCK_PI, 0, NULL, NULL, 0, opflags); in futex_unlock_pi() 154 return futex(uaddr, FUTEX_WAKE_OP, nr_wake, nr_wake2, uaddr2, wake_op, in futex_wake_op() 170 return futex(uaddr, FUTEX_REQUEUE, nr_wake, nr_requeue, uaddr2, 0, in futex_requeue() 183 return futex(uaddr, FUTEX_CMP_REQUEUE, nr_wake, nr_requeue, uaddr2, in futex_cmp_requeue() [all …]
|
| A D | futex2test.h | 55 futex_t futex; member
|
| /tools/perf/bench/ |
| A D | Build | 6 perf-bench-y += futex.o 7 perf-bench-y += futex-hash.o 8 perf-bench-y += futex-wake.o 9 perf-bench-y += futex-wake-parallel.o 10 perf-bench-y += futex-requeue.o 11 perf-bench-y += futex-lock-pi.o
|
| A D | futex-lock-pi.c | 29 u_int32_t *futex; member 100 ret = futex_lock_pi(w->futex, NULL, futex_flag); in workerfn() 105 w->tid, w->futex, ret); in workerfn() 113 ret = futex_unlock_pi(w->futex, futex_flag); in workerfn() 116 w->tid, w->futex, ret); in workerfn() 144 worker[i].futex = calloc(1, sizeof(u_int32_t)); in create_threads() 145 if (!worker[i].futex) in create_threads() 148 worker[i].futex = &global_futex; in create_threads() 243 worker[i].tid, worker[i].futex, t); in bench_futex_lock_pi() 246 zfree(&worker[i].futex); in bench_futex_lock_pi()
|
| A D | futex-hash.c | 46 u_int32_t *futex; member 95 ret = futex_wait(&w->futex[i], 1234, NULL, futex_flag); in workerfn() 189 worker[i].futex = calloc(params.nfutexes, sizeof(*worker[i].futex)); in bench_futex_hash() 190 if (!worker[i].futex) in bench_futex_hash() 239 worker[i].tid, &worker[i].futex[0], t); in bench_futex_hash() 242 worker[i].tid, &worker[i].futex[0], in bench_futex_hash() 243 &worker[i].futex[params.nfutexes-1], t); in bench_futex_hash() 246 zfree(&worker[i].futex); in bench_futex_hash()
|
| A D | futex-wake-parallel.c | 49 static u_int32_t futex = 0; variable 89 waker->nwoken = futex_wake(&futex, nwakes, futex_flag); in waking_workerfn() 143 if (futex_wait(&futex, 0, NULL, futex_flag) != EINTR) in blocked_workerfn() 303 &futex, params.nwakes, nwakes); in bench_futex_wake_parallel()
|
| /tools/testing/selftests/powerpc/benchmarks/ |
| A 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/ |
| A D | futex-contention-report | 4 perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/futex-contention.py
|
| /tools/testing/selftests/timens/ |
| A D | .gitignore | 4 futex
|
| A D | Makefile | 1 TEST_GEN_PROGS := timens timerfd timer clock_nanosleep procfs exec futex vfork_exec
|
| /tools/testing/selftests/futex/ |
| A 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/ |
| A D | perf-bench.txt | 61 'futex':: 228 SUITES FOR 'futex' 243 Suite for evaluating futex lock_pi calls.
|
| A D | perf-lock.txt | 102 futex-default-S 1609 0 0
|
| /tools/perf/arch/powerpc/entry/syscalls/ |
| A D | syscall.tbl | 281 221 32 futex sys_futex_time32 282 221 64 futex sys_futex 283 221 spu futex sys_futex
|
| /tools/testing/kunit/test_data/ |
| A D | test_is_test_passed-no_tests_run_no_header.log | 26 futex hash table entries: 256 (order: 0, 6144 bytes)
|
| A D | test_output_isolated_correctly.log | 51 futex hash table entries: 256 (order: 0, 6144 bytes)
|
| /tools/scripts/ |
| A D | syscall.tbl | 125 98 time32 futex sys_futex_time32 126 98 64 futex sys_futex
|
| /tools/perf/arch/parisc/entry/syscalls/ |
| A D | syscall.tbl | 233 210 32 futex sys_futex_time32 234 210 64 futex sys_futex
|
| /tools/testing/selftests/ |
| A D | Makefile | 42 TARGETS += futex
|
| /tools/perf/arch/sparc/entry/syscalls/ |
| A D | syscall.tbl | 178 142 32 futex sys_futex_time32 179 142 64 futex sys_futex
|
| /tools/perf/arch/mips/entry/syscalls/ |
| A D | syscall_n64.tbl | 205 194 n64 futex sys_futex
|
| /tools/perf/arch/sh/entry/syscalls/ |
| A D | syscall.tbl | 250 240 common futex sys_futex_time32
|
| /tools/perf/arch/x86/entry/syscalls/ |
| A D | syscall_64.tbl | 214 202 common futex sys_futex
|