/illumos-gate/usr/src/lib/libmtmalloc/tests/ |
H A D | dirtymem.c | 51 int ncpus = sysconf(_SC_NPROCESSORS_CONF); local 64 while (ncpus-- > 1)
|
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]);
|
/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/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/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/fm/topo/modules/sun4v/platform-cpu/ |
H A D | cpu_mdesc.h | 82 uint32_t ncpus; /* size */ member in struct:md_info
|
/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/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/uts/common/os/ |
H A D | pghw.c | 122 { "ncpus", KSTAT_DATA_UINT32 }, 182 { "ncpus", KSTAT_DATA_UINT32 }, 199 #define CPUSTR_LEN(ncpus) ((ncpus) * 6) 673 uint_t ncpus = GROUP_SIZE(&((pg_t *)pg)->pg_cpus); local 674 size_t len = CPUSTR_LEN(ncpus);
|
H A D | kstat_fr.c | 155 kstat_named_t ncpus; member in struct:__anon369 167 { "ncpus", KSTAT_DATA_UINT32 }, 810 int myncpus = ncpus; 850 system_misc_kstat.ncpus.value.ui32 = (uint32_t)myncpus;
|
/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/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/uts/common/disp/ |
H A D | cpupart.c | 197 kstat_named_init(&cpksp->cpk_ncpus, "ncpus", 1087 uint_t ncpus; local 1098 ncpus = pp->cp_ncpus; 1100 if (ncpus > *numcpus) { 1105 uint_t t = ncpus; 1106 ncpus = *numcpus; 1109 *numcpus = ncpus; 1113 for (i = 0; i < ncpus; i++) {
|
/illumos-gate/usr/src/lib/fm/libldom/sparc/ |
H A D | ldom.c | 252 int num_nodes, ncpus, i; local 272 ncpus = md_scan_dag(mdp, MDE_INVAL_ELEM_COOKIE, 276 for (i = 0; i < ncpus; i++) {
|
/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/mdb/common/modules/nca/ |
H A D | nca.c | 943 int ncpus; local 955 if (mdb_readvar(&ncpus, "ncpus") == -1) { 956 mdb_warn("cannot read symbol ncpus"); 959 wsp->walk_data = (void *)(uintptr_t)ncpus;
|
/illumos-gate/usr/src/cmd/drd/ |
H A D | drd_rcm.c | 287 int ncpus; local 304 ncpus = nrsrc; 333 if (!is_cpu_in_list(newcpus[idx], cpus, ncpus)) 340 dump_cpu_list("delta: ", cpus, ncpus); 367 int ncpus; local 384 ncpus = nrsrc; 415 if (!is_cpu_in_list(oldcpus[idx], cpus, ncpus)) 422 dump_cpu_list("delta: ", cpus, ncpus); 671 drd_dbg(" ncpus = %d", cidx);
|
/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...] |
/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/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/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/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/common/xen/public/arch-x86/ |
H A D | xen-mca.h | 381 uint32_t ncpus; member in struct:xen_mc_physcpuinfo
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | dr_cpu.c | 776 int ncpus; member in struct:__anon10278 813 psrset[set_idx].ncpus = cpp->cp_ncpus; 827 * to remove an offline cpu without testing ncpus. 832 if (--psrset[set_idx].ncpus == 0) {
|
/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...] |