| /onnv/onnv-gate/usr/src/lib/libmtmalloc/tests/ |
| 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]);
|
| dirtymem.c | 51 int ncpus = sysconf(_SC_NPROCESSORS_CONF); local 64 while (ncpus-- > 1)
|
| /onnv/onnv-gate/usr/src/cmd/powertop/common/ |
| util.c | 89 uint_t ncpus = 0; local 104 g_cpu_table[ncpus] = cpuid; 105 ncpus++; 108 return (ncpus);
|
| /onnv/onnv-gate/usr/src/lib/liblgrp/common/ |
| 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, cpus) == -1) 769 int ncpus; local 840 int ncpus; local 1136 int ncpus; local [all...] |
| /onnv/onnv-gate/usr/src/uts/common/sys/ |
| mac_flow.h | 189 int ncpus; \ 197 for (ncpus = 0; ncpus < (fmrp)->mrp_ncpus; ncpus++) \ 198 (fmrp)->mrp_cpu[ncpus] = (mrp)->mrp_cpu[ncpus];\
|
| t_lock.h | 65 extern int ncpus;
|
| taskq_impl.h | 146 #define TASKQ_THREADS_PCT(ncpus, pct) MAX(((ncpus) * (pct)) / 100, 1)
|
| /onnv/onnv-gate/usr/src/lib/libumem/common/ |
| 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++)
|
| /onnv/onnv-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Lgrp/ |
| 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);
|
| /onnv/onnv-gate/usr/src/cmd/pools/poold/libjlgrp/ |
| 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);
|
| /onnv/onnv-gate/usr/src/cmd/psrinfo/ |
| psrinfo.pl | 372 my $ncpus = scalar @cpus; # Number of CPUs 373 my $cpuname = pluralize('processor', $ncpus); 379 $id_name, $ncpus, $cpuname; 391 $id_name, $nvals, $child_id_name, $ncpus, 570 my $ncpus = scalar @cpus; 575 # Get list of properties which have more than ncpus and less than nchips 584 (($nids > $nchips) && ($nids > 1) && ($nids < $ncpus)); 681 my $ncpus = scalar @chip_cpus; 695 my $cpu_name = pluralize('processor', $ncpus); 701 $cname, $ncpus, $cpu_name [all...] |
| /onnv/onnv-gate/usr/src/cmd/sa/ |
| sadc.c | 73 static int ncpus; variable 286 ncpus = ncaches = 0; 289 ncpus++; 294 safe_zalloc((void **)&cpu_stat_list, ncpus * sizeof (kstat_t *), 1); 297 ncpus = ncaches = 0; 301 cpu_stat_list[ncpus++] = ksp; 307 if (ncpus == 0) 362 for (i = 0; i < ncpus; i++) { 427 d.csi.cpu[i] = (cpu_tick[i] + cpu_stat_adj[i]) / ncpus; 675 int max_cpus = MAX(ncpus, oncpus) [all...] |
| /onnv/onnv-gate/usr/src/lib/fm/topo/modules/sun4v/platform-cpu/ |
| 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++) { 209 chip->ncpus = ncpu; 322 topo_mod_free(mod, list2p, sizeof (mde_cookie_t) * 2*chip->ncpus); 393 chip->ncpus * sizeof (md_cpumap_t));
|
| cpu_mdesc.h | 82 uint32_t ncpus; /* size */ member in struct:md_info
|
| /onnv/onnv-gate/usr/src/lib/cfgadm_plugins/sbd/common/ |
| ap_rcm.c | 65 int ncpus; /* # of CPUs in cpuids list */ member in struct:__anon2744 442 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)) 940 int ncpus; local 957 ncpus = npages = 0; 1001 rcm->cpuids[ncpus++] 1041 int ncpus = 0; local 1151 int ncpus; local [all...] |
| /onnv/onnv-gate/usr/src/cmd/cpc/common/ |
| 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) 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; i++ [all...] |
| /onnv/onnv-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/ |
| 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++) {
|
| /onnv/onnv-gate/usr/src/cmd/power/ |
| 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++) {
|
| /onnv/onnv-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Lgrp/t/ |
| 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');
|
| /onnv/onnv-gate/usr/src/uts/sun4/os/ |
| mp_states.c | 93 if (ncpus == 1) 143 if (ncpus == 1) 203 if (ncpus > 1)
|
| /onnv/onnv-gate/usr/src/cmd/intrstat/ |
| 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;
|
| /onnv/onnv-gate/usr/src/uts/i86xpv/os/ |
| 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) 1190 cpi->ncpus = *ncpus; 1197 *ncpus = cpi->ncpus [all...] |
| /onnv/onnv-gate/usr/src/uts/i86pc/os/ |
| cpr_impl.c | 113 if (ncpus > 1) { 340 for (who = 0; who < ncpus; who++) { 478 if (ncpus == 1) { 484 for (who = 0; who < ncpus; who++) { 542 PMD(PMD_SX, ("ncpus=%d\n", ncpus)) 1012 wc_other_cpus = kmem_zalloc(ncpus * sizeof (wc_cpu_t), 1022 kmem_free((void *) wc_other_cpus, ncpus * sizeof (wc_cpu_t));
|
| /onnv/onnv-gate/usr/src/cmd/rpcsvc/ |
| 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; i++) [all...] |
| /onnv/onnv-gate/usr/src/lib/libmtmalloc/common/ |
| mtmalloc.c | 57 * For requests up to 2^^16, the allocator initializes itself into NCPUS 59 * is vectored into one of NCPUS worth of caches. The LWP id gives us a cheap, 189 static int ncpus = 0; variable 792 if ((ncpus = 2 * sysconf(_SC_NPROCESSORS_CONF)) <= 0) 793 ncpus = 4; /* decent default value */ 795 /* round ncpus up to a power of 2 */ 796 while (ncpus & (ncpus - 1)) 797 ncpus++; 799 new_cpu_mask = ncpus - 1; /* create the cpu mask * [all...] |