Home
last modified time | relevance | path

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
160 for (i = g_start, j = 0; i < g_max_cpus; i++) { in print_header()
203 for (i = g_start, j = 0; i < g_max_cpus && j < g_cpus_per_line; i++) { in walk()
237 if (cpu < 0 || cpu >= g_max_cpus) in select_cpu()
255 if (low < 0 || low >= g_max_cpus) in select_cpus()
258 if (high < 0 || high >= g_max_cpus) in select_cpus()
287 for (i = 0; i < g_max_cpus; i++) in select_pset()
291 if (i != g_max_cpus) in select_pset()
295 g_pset_ncpus = g_max_cpus; in select_pset()
310 uint_t ncpus = g_max_cpus; in check_pset()
[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; in setup()
231 if ((g_selected = malloc(sizeof (int8_t) * g_max_cpus)) == NULL) in setup()
234 bzero(g_selected, sizeof (int8_t) * g_max_cpus); in setup()
236 g_pset_cpus = malloc(sizeof (processorid_t) * g_max_cpus); in setup()
240 bzero(g_pset_cpus, sizeof (processorid_t) * g_max_cpus); in setup()
271 if ((g_data[0] = malloc(g_datasize * g_max_cpus)) == NULL) in setup()
274 if ((g_data[1] = malloc(g_datasize * g_max_cpus)) == NULL) in setup()
404 if (cpu < 0 || cpu >= g_max_cpus) in select_cpu()
422 if (low < 0 || low >= g_max_cpus) in select_cpus()
[all …]