Searched refs:g_max_cpus (Results 1 - 2 of 2) sorted by relevance

/illumos-gate/usr/src/cmd/intrstat/
H A Dintrstat.c55 static int g_max_cpus; variable
159 for (i = g_start, j = 0; i < g_max_cpus; i++) {
202 for (i = g_start, j = 0; i < g_max_cpus && j < g_cpus_per_line; i++) {
236 if (cpu < 0 || cpu >= g_max_cpus)
254 if (low < 0 || low >= g_max_cpus)
257 if (high < 0 || high >= g_max_cpus)
286 for (i = 0; i < g_max_cpus; i++)
290 if (i != g_max_cpus)
294 g_pset_ncpus = g_max_cpus;
309 uint_t ncpus = g_max_cpus;
[all...]
/illumos-gate/usr/src/cmd/trapstat/sun4/
H A Dtrapstat.c61 static processorid_t g_max_cpus; variable
229 g_max_cpus = (processorid_t)sysconf(_SC_CPUID_MAX) + 1;
231 if ((g_selected = malloc(sizeof (int8_t) * g_max_cpus)) == NULL)
234 bzero(g_selected, sizeof (int8_t) * g_max_cpus);
236 g_pset_cpus = malloc(sizeof (processorid_t) * g_max_cpus);
240 bzero(g_pset_cpus, sizeof (processorid_t) * g_max_cpus);
271 if ((g_data[0] = malloc(g_datasize * g_max_cpus)) == NULL)
274 if ((g_data[1] = malloc(g_datasize * g_max_cpus)) == NULL)
404 if (cpu < 0 || cpu >= g_max_cpus)
422 if (low < 0 || low >= g_max_cpus)
[all...]

Completed in 45 milliseconds