Lines Matching defs:futex
5 * futex-hash: Stress the hell out of the Linux kernel futex uaddr hashing.
7 * This program is particularly useful for measuring the kernel's futex hash
30 #include "futex.h"
45 u_int32_t *futex;
66 "perf bench futex hash <options>",
87 * We want the futex calls to fail in order to stress
92 ret = futex_wait(&w->futex[i], 1234, NULL, futex_flag);
95 warn("Non-expected futex return call");
184 worker[i].futex = calloc(params.nfutexes, sizeof(*worker[i].futex));
185 if (!worker[i].futex)
233 printf("[thread %2d] futex: %p [ %ld ops/sec ]\n",
234 worker[i].tid, &worker[i].futex[0], t);
237 worker[i].tid, &worker[i].futex[0],
238 &worker[i].futex[params.nfutexes-1], t);
241 zfree(&worker[i].futex);