Home
last modified time | relevance | path

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

/titanic_50/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++) { in print_header()
202 for (i = g_start, j = 0; i < g_max_cpus && j < g_cpus_per_line; i++) { in walk()
236 if (cpu < 0 || cpu >= g_max_cpus) in select_cpu()
254 if (low < 0 || low >= g_max_cpus) in select_cpus()
257 if (high < 0 || high >= g_max_cpus) in select_cpus()
286 for (i = 0; i < g_max_cpus; i++) in select_pset()
290 if (i != g_max_cpus) in select_pset()
294 g_pset_ncpus = g_max_cpus; in select_pset()
309 uint_t ncpus = g_max_cpus; in check_pset()
[all …]
/titanic_50/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 …]