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
29 #include "futex.h"
48 u_int32_t *futex;
63 "perf bench futex hash <options>",
84 * We want the futex calls to fail in order to stress
89 ret = futex_wait(&w->futex[i], 1234, NULL, futex_flag);
92 warn("Non-expected futex return call");
168 worker[i].futex = calloc(nfutexes, sizeof(*worker[i].futex));
169 if (!worker[i].futex)
213 printf("[thread %2d] futex: %p [ %ld ops/sec ]\n",
214 worker[i].tid, &worker[i].futex[0], t);
217 worker[i].tid, &worker[i].futex[0],
218 &worker[i].futex[nfutexes-1], t);
221 zfree(&worker[i].futex);