Lines Matching defs:fdmap
35 * referred to as fdmap. A writer thread will constantly be writing to
38 * is not what we want to stress. The size of the fdmap can be adjusted
123 int *fdmap;
323 w->fdmap = calloc(nfds, sizeof(int));
324 if (!w->fdmap)
331 w->fdmap[j] = eventfd(0, EFD_NONBLOCK);
332 if (w->fdmap[j] < 0)
335 ev.data.fd = w->fdmap[j];
339 w->fdmap[j], &ev);
388 shuffle((void *)w->fdmap, nfds, sizeof(int));
393 sz = write(w->fdmap[j], &val, sizeof(val));
495 * to each thread's fdmap.
528 printf("[thread %2d] fdmap: %p [ %04ld ops/sec ]\n",
529 worker[i].tid, &worker[i].fdmap[0], t);
531 printf("[thread %2d] fdmap: %p ... %p [ %04ld ops/sec ]\n",
532 worker[i].tid, &worker[i].fdmap[0],
533 &worker[i].fdmap[nfds-1], t);