/illumos-gate/usr/src/lib/libmtmalloc/tests/ |
H A D | exhaust.c | 49 int ncpus; local 55 ncpus = sysconf(_SC_NPROCESSORS_CONF); 64 while (ncpus--) 65 stacks[ncpus] = mmap(0, 1<<23, PROT_READ|PROT_WRITE, 72 ncpus = sysconf(_SC_NPROCESSORS_CONF); 73 while (ncpus--) 74 thr_create(stacks[ncpus], 1<<23, be_thread, NULL, THR_BOUND, 75 &tid[ncpus]);
|
H A D | dirtymem.c | 51 int ncpus = sysconf(_SC_NPROCESSORS_CONF); local 64 while (ncpus-- > 1)
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/threadsappend/ |
H A D | threadsappend.c | 88 long ncpus = 0; local 95 ncpus = sysconf(_SC_NPROCESSORS_ONLN); 96 if (ncpus < 0) { 102 if (ncpus < 2) {
|
/illumos-gate/usr/src/cmd/powertop/common/ |
H A D | util.c | 89 uint_t ncpus = 0; local 104 g_cpu_table[ncpus] = cpuid; 105 ncpus++; 108 return (ncpus);
|
/illumos-gate/usr/src/lib/liblgrp/common/ |
H A D | lgrp.c | 244 int ncpus) 262 if (ncpus == 0 || lgrp_info->info_ncpus == 0) 268 if (cpus == NULL && ncpus == -1) { 283 for (j = 0; j < ncpus; j++) 290 if (j < ncpus) { 317 uint_t ncpus; local 326 if (pset_info(PS_MYID, NULL, &ncpus, NULL) == -1) 330 if (ncpus > 0) { 331 cpus = malloc(ncpus * sizeof (processorid_t)); 332 if (pset_info(PS_MYID, NULL, &ncpus, cpu 243 prune_cpus(lgrp_snapshot_header_t *snap, lgrp_id_t lgrp, processorid_t *cpus, int ncpus) argument 769 int ncpus; local 840 int ncpus; local 1136 int ncpus; local [all...] |
/illumos-gate/usr/src/uts/common/sys/ |
H A D | mac_flow.h | 239 int ncpus; \ 248 for (ncpus = 0; ncpus < (fmrp)->mrp_ncpus; ncpus++) \ 249 (fmrp)->mrp_cpu[ncpus] = (mrp)->mrp_cpu[ncpus];\
|
H A D | t_lock.h | 65 extern int ncpus;
|
H A D | taskq_impl.h | 160 #define TASKQ_THREADS_PCT(ncpus, pct) MAX(((ncpus) * (pct)) / 100, 1)
|
/illumos-gate/usr/src/lib/libumem/common/ |
H A D | umem_fork.c | 43 int ncpus = cp->cache_cpu_mask + 1; local 45 for (idx = 0; idx < ncpus; idx++) 56 int ncpus = cp->cache_cpu_mask + 1; local 61 for (idx = 0; idx < ncpus; idx++)
|
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Lgrp/ |
H A D | Lgrp.xs | 370 int ncpus; 374 if ((ncpus = lgrp_cpus(cookie, lgrp, NULL, 0, content)) < 0) 378 XSRETURN_IV(ncpus); 380 if (ncpus > 0) { 381 if (New(0, cpus, ncpus, processorid_t) == NULL) { 385 ncpus = lgrp_cpus(cookie, lgrp, cpus, ncpus, content); 386 PUSHARRAY(cpus, ncpus);
|
/illumos-gate/usr/src/cmd/pools/poold/libjlgrp/ |
H A D | jlgrp.c | 194 jsize ncpus0, ncpus; local 219 ncpus = (jsize)lgrp_cpus((lgrp_cookie_t)cookie, (lgrp_id_t)id, 221 if (ncpus != ncpus0) { 226 if ((java_cpus = calloc(ncpus, sizeof (jint))) == NULL) { 233 for (i = 0; i < ncpus; i++) 235 (*env)->SetIntArrayRegion(env, cpus, 0, ncpus, java_cpus);
|
/illumos-gate/usr/src/cmd/sa/ |
H A D | sadc.c | 69 static int ncpus; variable 368 ncpus = ncaches = 0; 371 ncpus++; 376 safe_zalloc((void **)&cpu_stat_list, ncpus * sizeof (kstat_t *), 1); 379 ncpus = ncaches = 0; 383 cpu_stat_list[ncpus++] = ksp; 389 if (ncpus == 0) 444 for (i = 0; i < ncpus; i++) { 509 d.csi.cpu[i] = (cpu_tick[i] + cpu_stat_adj[i]) / ncpus; 757 int max_cpus = MAX(ncpus, oncpu [all...] |
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/platform-cpu/ |
H A D | cpu_mdesc.c | 66 for (i = 0, mcmp = chip->cpus; i < chip->ncpus; i++, mcmp++) { 96 chip->ncpus = md_scan_dag(mdp, 101 topo_mod_dprintf(mod, "Found %d cpus\n", chip->ncpus); 103 chip->cpus = topo_mod_zalloc(mod, chip->ncpus * sizeof (md_cpumap_t)); 104 chip->nprocs = chip->ncpus; 107 for (idx = 0, mcmp = chip->cpus; idx < chip->ncpus; idx++, mcmp++) { 210 chip->ncpus = ncpu; 335 topo_mod_free(mod, list2p, sizeof (mde_cookie_t) * 2*chip->ncpus); 406 chip->ncpus * sizeof (md_cpumap_t));
|
H A D | cpu_mdesc.h | 82 uint32_t ncpus; /* size */ member in struct:md_info
|
/illumos-gate/usr/src/lib/cfgadm_plugins/sbd/common/ |
H A D | ap_rcm.c | 63 int ncpus; /* # of CPUs in cpuids list */ member in struct:__anon65 441 rcm->ncpus = ncpu; 885 int ncpus; local 897 ncpus = npages = 0; 919 rcm->cpuids[ncpus++] = capinfo[i].type.cpuid[j]; 925 if (ncpus && ((*rv = ap_rcm_cap_cpu(a, rcm, hd, flags, rinfo, 926 CMD_RCM_CAP_DEL, ncpus)) != RCM_SUCCESS)) { 942 int ncpus; local 959 ncpus = npages = 0; 1003 rcm->cpuids[ncpus 1045 int ncpus = 0; local 1155 int ncpus; local [all...] |
/illumos-gate/usr/src/cmd/cpc/common/ |
H A D | cpustat.c | 89 static int ncpus; variable 377 for (i = 0; i < ncpus; i++) { 386 print_total(int ncpus, cpc_buf_t *buf, int nreq, const char *setname) argument 392 ncpus, "total"); 619 ncpus = (int)sysconf(_SC_NPROCESSORS_CONF); 620 if ((gstate = calloc(ncpus, sizeof (*gstate))) == NULL) { 655 for (c = 0, i = 0; i < ncpus; c++) { 695 for (i = 0; i < ncpus; i++) { 719 for (i = 0; i < ncpus; i++) { 741 for (i = 0; i < ncpus; [all...] |
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/ |
H A D | cpu_prop_update.c | 282 int ncpus, ncaches, ntlbs; local 322 ncpus = md_scan_dag(mdp, rootnode, md_find_name(mdp, "cpu"), 325 if (ncpus < 0) { 333 for (x = 0; x < ncpus; x++) {
|
/illumos-gate/usr/src/cmd/power/ |
H A D | sysstat.c | 50 static int ncpus; variable 302 ncpus = 0; 306 ncpus++; 309 safe_zalloc((void **)&cpu_stats_list, ncpus * sizeof (*cpu_stats_list), 312 ncpus = 0; 317 cpu_stats_list[ncpus++] = ksp; 320 if (ncpus == 0) 336 for (i = 0; i < ncpus; i++) {
|
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Lgrp/t/ |
H A D | Lgrp_api.t | 181 my $ncpus = @rcpus; 182 ok($ncpus, 'there are CPUs in the system'); 327 is($nc, $ncpus, 'Number of CPUs should match');
|
/illumos-gate/usr/src/uts/sun4/os/ |
H A D | mp_states.c | 90 if (ncpus == 1) 140 if (ncpus == 1) 200 if (ncpus > 1)
|
/illumos-gate/usr/src/cmd/intrstat/ |
H A D | intrstat.c | 309 uint_t ncpus = g_max_cpus; local 315 if (pset_info(g_pset, NULL, &ncpus, g_pset_cpus) == -1) { 322 if (ncpus == 0) 325 if (ncpus == g_pset_ncpus) { 346 g_pset_ncpus = ncpus;
|
/illumos-gate/usr/src/cmd/trapstat/sun4/ |
H A D | trapstat.c | 480 uint_t ncpus = g_max_cpus; local 486 if (pset_info(g_pset, NULL, &ncpus, g_pset_cpus) == -1) { 493 if (ncpus == 0) 496 if (ncpus == g_pset_ncpus) { 517 g_pset_ncpus = ncpus; 689 int i, cpu, ncpus = 0; local 727 ncpus++; 733 print_sum(sum, ncpus); 806 int i, cpu, ncpus = 0; local 840 ncpus [all...] |
/illumos-gate/usr/src/uts/i86xpv/os/ |
H A D | xen_machdep.c | 388 for (i = 1; i < ncpus; i++) { 403 for (i = 1; i < ncpus; i++) { 482 if (ncpus > 1) 509 for (i = 1; i < ncpus; i++) { 579 if (ncpus > 1) 662 for (i = 0; i < ncpus; i++) { 1185 xen_get_mc_physcpuinfo(xen_mc_logical_cpu_t *log_cpus, uint_t *ncpus) argument 1190 cpi->ncpus = *ncpus; 1197 *ncpus [all...] |
/illumos-gate/usr/src/cmd/rpcsvc/ |
H A D | rstat_proc.c | 69 static int ncpus; variable 733 ncpus = 0; 737 ncpus++; 739 safe_zalloc((void **)&cpu_stats_list, ncpus * sizeof (*cpu_stats_list), 742 ncpus = 0; 747 kstat_copy(ksp, &cpu_stats_list[ncpus].sys, 751 kstat_copy(ksp, &cpu_stats_list[ncpus].vm, 1); 754 ncpus++; 757 if (ncpus == 0) 782 for (i = 0; i < ncpus; [all...] |
/illumos-gate/usr/src/lib/libmtmalloc/common/ |
H A D | mtmalloc.c | 189 static int ncpus = 0; variable 804 if ((ncpus = 2 * sysconf(_SC_NPROCESSORS_CONF)) <= 0) 805 ncpus = 4; /* decent default value */ 807 /* round ncpus up to a power of 2 */ 808 while (ncpus & (ncpus - 1)) 809 ncpus++; 811 new_cpu_mask = ncpus - 1; /* create the cpu mask */ 840 cache_space_needed = ncpus * (sizeof (percpu_t) + CACHELIST_SIZE); 860 list_addr = ((uintptr_t)new_cpu_list + (sizeof (percpu_t) * ncpus)); [all...] |