HomeSort by: relevance | last modified time | path
    Searched refs:nthreads (Results 1 - 12 of 12) sorted by relevancy

  /src/usr.sbin/npf/npftest/libnpftest/
npf_perf_test.c 55 npf_test_conc(bool st, unsigned nthreads)
66 npackets = kmem_zalloc(sizeof(uint64_t) * nthreads, KM_SLEEP);
67 l = kmem_zalloc(sizeof(lwp_t *) * nthreads, KM_SLEEP);
69 for (unsigned i = 0; i < nthreads; i++) {
82 for (unsigned i = 0; i < nthreads; i++) {
86 kmem_free(npackets, sizeof(uint64_t) * nthreads);
87 kmem_free(l, sizeof(lwp_t *) * nthreads);
89 printf("%u\t%" PRIu64 "\n", nthreads, total / NSECS);
npf_perf_test.c 55 npf_test_conc(bool st, unsigned nthreads)
66 npackets = kmem_zalloc(sizeof(uint64_t) * nthreads, KM_SLEEP);
67 l = kmem_zalloc(sizeof(lwp_t *) * nthreads, KM_SLEEP);
69 for (unsigned i = 0; i < nthreads; i++) {
82 for (unsigned i = 0; i < nthreads; i++) {
86 kmem_free(npackets, sizeof(uint64_t) * nthreads);
87 kmem_free(l, sizeof(lwp_t *) * nthreads);
89 printf("%u\t%" PRIu64 "\n", nthreads, total / NSECS);
  /src/tests/lib/libpthread/
h_resolv.c 46 #define NTHREADS 10
67 "Usage: %s [-d] [-h <nhosts>] [-n <nthreads>] <file> ...\n",
145 int nthreads = NTHREADS; local in function:main
162 nthreads = atoi(optarg);
174 if ((nleft = malloc(nthreads * sizeof(int))) == NULL)
180 if ((threads = malloc(nthreads * sizeof(pthread_t))) == NULL)
184 for (i = 0; i < nthreads; i++) {
191 for (i = 0; i < nthreads; i++) {
207 for (i = 0; i < nthreads; i++
    [all...]
h_resolv.c 46 #define NTHREADS 10
67 "Usage: %s [-d] [-h <nhosts>] [-n <nthreads>] <file> ...\n",
145 int nthreads = NTHREADS; local in function:main
162 nthreads = atoi(optarg);
174 if ((nleft = malloc(nthreads * sizeof(int))) == NULL)
180 if ((threads = malloc(nthreads * sizeof(pthread_t))) == NULL)
184 for (i = 0; i < nthreads; i++) {
191 for (i = 0; i < nthreads; i++) {
207 for (i = 0; i < nthreads; i++
    [all...]
  /src/sys/arch/mips/rmi/
rmixl_cpucore.c 89 u_int nthreads; local in function:cpucore_rmixl_attach
132 nthreads = MIPS_CIDFL_RMI_NTHREADS(mips_options.mips_cpu->cpu_cidflags);
133 aprint_normal_dev(self, "%d %s on core\n", nthreads,
134 nthreads == 1 ? "thread" : "threads");
140 u_int thread_mask = (1 << nthreads) - 1;
141 u_int core_shft = sc->sc_core * nthreads;
rmixl_cpucore.c 89 u_int nthreads; local in function:cpucore_rmixl_attach
132 nthreads = MIPS_CIDFL_RMI_NTHREADS(mips_options.mips_cpu->cpu_cidflags);
133 aprint_normal_dev(self, "%d %s on core\n", nthreads,
134 nthreads == 1 ? "thread" : "threads");
140 u_int thread_mask = (1 << nthreads) - 1;
141 u_int core_shft = sc->sc_core * nthreads;
  /src/regress/sys/kern/allocfree/
allocfree.c 50 static int nthreads; variable in typeref:typename:int
147 while (barrier < nthreads) {
154 while (barrier2 < nthreads) {
198 nthreads = nt;
210 nthreads--;
219 if (nthreads == 0) {
222 printf("\t%d", (int)(total / nthreads / count));
allocfree.c 50 static int nthreads; variable in typeref:typename:int
147 while (barrier < nthreads) {
154 while (barrier2 < nthreads) {
198 nthreads = nt;
210 nthreads--;
219 if (nthreads == 0) {
222 printf("\t%d", (int)(total / nthreads / count));
  /src/usr.sbin/npf/npftest/
npftest.c 199 unsigned nthreads = 0; local in function:main
247 if ((nthreads = atoi(optarg)) > 0 &&
250 sprintf(nthr, "%u", nthreads + 1);
267 if (benchmark && (!config || !nthreads)) {
363 rumpns_npf_test_conc(false, nthreads);
366 rumpns_npf_test_conc(true, nthreads);
npftest.c 199 unsigned nthreads = 0; local in function:main
247 if ((nthreads = atoi(optarg)) > 0 &&
250 sprintf(nthr, "%u", nthreads + 1);
267 if (benchmark && (!config || !nthreads)) {
363 rumpns_npf_test_conc(false, nthreads);
366 rumpns_npf_test_conc(true, nthreads);
  /src/sys/arch/mips/include/
locore.h 897 # define MIPS_CIDFL_RMI_CPUS(ncores, nthreads) \
899 |(LOG2_ ## nthreads << MIPS_CIDFL_RMI_THREADS_SHIFT))
locore.h 897 # define MIPS_CIDFL_RMI_CPUS(ncores, nthreads) \
899 |(LOG2_ ## nthreads << MIPS_CIDFL_RMI_THREADS_SHIFT))

Completed in 30 milliseconds