diff options
author | 2025-04-16 18:29:19 +0200 | |
---|---|---|
committer | 2025-05-03 12:02:10 +0200 | |
commit | 60035a3981a7f9d965df81a48a07b94e52ccd54f (patch) | |
tree | ba73a5f5e01b367a87b8208b851923908660a96a /tools/perf/bench/Build | |
parent | tools headers: Synchronize prctl.h ABI header (diff) | |
download | wireguard-linux-60035a3981a7f9d965df81a48a07b94e52ccd54f.tar.xz wireguard-linux-60035a3981a7f9d965df81a48a07b94e52ccd54f.zip |
tools/perf: Allow to select the number of hash buckets
Add the -b/ --buckets argument to specify the number of hash buckets for
the private futex hash. This is directly passed to
prctl(PR_FUTEX_HASH, PR_FUTEX_HASH_SET_SLOTS, buckets, immutable)
and must return without an error if specified. The `immutable' is 0 by
default and can be set to 1 via the -I/ --immutable argument.
The size of the private hash is verified with PR_FUTEX_HASH_GET_SLOTS.
If PR_FUTEX_HASH_GET_SLOTS failed then it is assumed that an older
kernel was used without the support and that the global hash is used.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250416162921.513656-20-bigeasy@linutronix.de
Diffstat (limited to 'tools/perf/bench/Build')
-rw-r--r-- | tools/perf/bench/Build | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/bench/Build b/tools/perf/bench/Build index 279ab2ab4abe..b558ab98719f 100644 --- a/tools/perf/bench/Build +++ b/tools/perf/bench/Build @@ -3,6 +3,7 @@ perf-bench-y += sched-pipe.o perf-bench-y += sched-seccomp-notify.o perf-bench-y += syscall.o perf-bench-y += mem-functions.o +perf-bench-y += futex.o perf-bench-y += futex-hash.o perf-bench-y += futex-wake.o perf-bench-y += futex-wake-parallel.o |