Home
last modified time | relevance | path

Searched refs:nthreads (Results 1 – 25 of 35) sorted by path

12

/illumos-gate/usr/src/cmd/ctfconvert/
H A Dctfconvert.c250 uint_t nthreads = CTF_CONVERT_DEFAULT_NTHREADS; in main() local
293 nthreads = (uint_t)argno; in main()
362 if ((err = ctf_convert_set_nthreads(cch, nthreads)) != 0) in main()
/illumos-gate/usr/src/cmd/ctfmerge/
H A Dctfmerge.c317 uint_t nthreads = CTFMERGE_DEFAULT_NTHREADS; in main() local
351 nthreads = (uint_t)argj; in main()
406 if ((err = ctf_merge_set_nthreads(cmh, nthreads)) != 0) in main()
408 nthreads, ctf_errmsg(err)); in main()
/illumos-gate/usr/src/cmd/keyserv/
H A Dkeyserv.c142 static int nthreads = 32; variable
245 nthreads = atoi(optarg); in main()
366 if (nthreads > 0) { in main()
368 (void) rpc_control(RPC_SVC_THRMAX_SET, &nthreads); in main()
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dtaskq.c400 size_t nthreads; in taskq_thread_walk_init() local
409 nthreads = tq.tq_nthreads; in taskq_thread_walk_init()
410 tlist = mdb_alloc(nthreads * sizeof (*tlist), UM_SLEEP); in taskq_thread_walk_init()
414 } else if (mdb_vread(tlist, nthreads * sizeof (*tlist), in taskq_thread_walk_init()
418 mdb_free(tlist, nthreads * sizeof (*tlist)); in taskq_thread_walk_init()
423 tti->tti_nthreads = nthreads; in taskq_thread_walk_init()
/illumos-gate/usr/src/cmd/mdb/common/modules/libc/
H A Dlibc.c855 OFFSET(nthreads), in d_uberdata()
856 uberdata.nthreads, in d_uberdata()
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Kstat/
H A DKstat.xs239 SAVE_UINT32(self, sysinfop, nthreads); in save_cpu_stat()
/illumos-gate/usr/src/cmd/ptools/plgrp/
H A Dplgrp.c136 int nthreads; /* threads processed */ member
1228 plgrp_args->nthreads++; in Plwp_iter_handler()
1593 if (plgrp_todo.nthreads == 0) { in main()
/illumos-gate/usr/src/cmd/ptools/pstack/
H A Dpstack.c155 static int nthreads; variable
280 nthreads = 0; in main()
337 nthreads++; in thr_stack()
454 !(dothreads && nthreads > 1)) { in all_call_stacks()
/illumos-gate/usr/src/cmd/sa/
H A Dsa.h133 uint64_t nthreads; member
/illumos-gate/usr/src/cmd/savecore/
H A Dsavecore.c760 int nthreads; in initstreams() local
766 nthreads = sysconf(_SC_NPROCESSORS_ONLN); in initstreams()
767 if (nstreams < nthreads) in initstreams()
768 nthreads = nstreams; in initstreams()
769 if (nthreads < 1) in initstreams()
770 nthreads = 1; in initstreams()
771 nblocks = nthreads * 2; in initstreams()
773 tinfo = Zalloc(nthreads * sizeof (tinfo_t)); in initstreams()
774 endtinfo = &tinfo[nthreads]; in initstreams()
794 nthreads = t - tinfo; in initstreams()
/illumos-gate/usr/src/cmd/stat/kstat/
H A Dkstat.c1073 SAVE_UINT32(ksi, sysinfo, nthreads); in save_cpu_stat()
/illumos-gate/usr/src/head/
H A Dthread_db.h237 int nthreads; /* total number of threads in use */ member
/illumos-gate/usr/src/lib/libc/inc/
H A Dthr_uberdata.h970 int nthreads; /* total number of live threads/lwps */ member
1186 int nthreads; member
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dalloc.c214 ASSERT(udp->nthreads == 0); in lmalloc()
H A Dthr.c282 ASSERT(udp->nthreads <= 1 || MUTEX_OWNED(&udp->link_lock, self)); in trim_stack_cache()
471 ASSERT(udp->nthreads <= 1 || MUTEX_OWNED(&udp->link_lock, curthread)); in ulwp_free()
702 udp->nthreads++; in _thrp_create()
768 udp->nthreads--; in _thrp_exit()
773 else if (udp->nthreads == udp->ndaemons) { in _thrp_exit()
1392 ASSERT(udp->nthreads == 1 && !udp->uberflags.uf_mt); in libc_init()
1401 udp->nthreads = 1; in libc_init()
1661 udp->nthreads = 1; in postfork1_child()
2398 return (curthread->ul_uberdata->nthreads); in __nthreads()
/illumos-gate/usr/src/lib/libc_db/common/
H A Dthread_db.c611 int nthreads; in __td_ta_get_nthreads() local
618 offsetof(uberdata_t, nthreads); in __td_ta_get_nthreads()
624 offsetof(uberdata32_t, nthreads); in __td_ta_get_nthreads()
637 if (ps_pdread(ph_p, nthreads_addr, &nthreads, sizeof (int)) != PS_OK) in __td_ta_get_nthreads()
643 *nthread_p = nthreads + nzombies; in __td_ta_get_nthreads()
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dtaskq.c308 ASSERT3S(nthreads, >=, 0); in taskq_create_proc()
309 ASSERT3S(nthreads, <=, 100); in taskq_create_proc()
310 pct = MIN(nthreads, 100); in taskq_create_proc()
313 nthreads = (sysconf(_SC_NPROCESSORS_ONLN) * pct) / 100; in taskq_create_proc()
314 nthreads = MAX(nthreads, 1); /* need at least 1 thread */ in taskq_create_proc()
316 ASSERT3S(nthreads, >=, 1); in taskq_create_proc()
325 tq->tq_active = nthreads; in taskq_create_proc()
326 tq->tq_nthreads = nthreads; in taskq_create_proc()
340 for (t = 0; t < nthreads; t++) in taskq_create_proc()
351 int nthreads = tq->tq_nthreads; in taskq_destroy() local
[all …]
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_taskq.c217 zfs_taskq_create(const char *name, int nthreads, pri_t pri, int minalloc, in zfs_taskq_create() argument
223 ASSERT3S(nthreads, >=, 1); in zfs_taskq_create()
235 ztq->ztq_active = nthreads; in zfs_taskq_create()
236 ztq->ztq_nthreads = nthreads; in zfs_taskq_create()
242 umem_alloc(nthreads * sizeof (thread_t), UMEM_NOFAIL); in zfs_taskq_create()
251 for (t = 0; t < nthreads; t++) { in zfs_taskq_create()
263 int nthreads = ztq->ztq_nthreads; in zfs_taskq_destroy() local
285 for (t = 0; t < nthreads; t++) in zfs_taskq_destroy()
288 umem_free(ztq->ztq_threadlist, nthreads * sizeof (thread_t)); in zfs_taskq_destroy()
/illumos-gate/usr/src/test/smbclient-tests/config/
H A Dfileio.prof38 nthreads = 16;
45 nthreads = 16;
52 nthreads = 16;
59 nthreads = 16;
66 nthreads = 16;
73 nthreads = 16;
H A Dfilemacro.prof40 nthreads = 100;
50 nthreads = 16;
60 nthreads = 100;
70 nthreads = 100;
H A Dfilemicro.prof75 nthreads = 4;
121 nthreads = 1;
H A Drandomread.prof39 nthreads = 1;
H A Dseqread.prof39 nthreads = 1;
/illumos-gate/usr/src/test/util-tests/tests/mergeq/
H A Dmqt.c199 int nthreads[] = { 1, 2, 4, 8, 16, 32, 64, 128, 256, -1 }; in main() local
201 for (t = 0; nthreads[t] != -1; t++) { in main()
202 printf("Beginning tests with %d threads\n", nthreads[t]); in main()
203 if ((ret = mergeq_init(&mqp, nthreads[t])) != 0) { in main()
/illumos-gate/usr/src/test/util-tests/tests/workq/
H A Dwqt.c177 int nthreads[] = { 1, 2, 4, 8, 16, 32, 64, 128, 256, -1 }; in main() local
179 for (t = 0; nthreads[t] != -1; t++) { in main()
180 printf("Beginning tests with %d threads\n", nthreads[t]); in main()
181 if ((ret = workq_init(&wqp, nthreads[t])) != 0) { in main()

12