diff options
| author | Joseph Koshy <jkoshy@FreeBSD.org> | 2008-11-16 04:26:38 +0000 |
|---|---|---|
| committer | Joseph Koshy <jkoshy@FreeBSD.org> | 2008-11-16 04:26:38 +0000 |
| commit | 5d09484b2aba0a034a81f168becefb9ea4e1b674 (patch) | |
| tree | 1cb779b233ea5d45c2ec209d329ebe584fa9fac7 | |
| parent | 7dada2640106d7a0277427fde68a9b9f3bb643cc (diff) | |
Notes
| -rw-r--r-- | usr.sbin/pmccontrol/pmccontrol.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/pmccontrol/pmccontrol.c b/usr.sbin/pmccontrol/pmccontrol.c index 2a147dd7cb9d..84c4f17e01fe 100644 --- a/usr.sbin/pmccontrol/pmccontrol.c +++ b/usr.sbin/pmccontrol/pmccontrol.c @@ -256,9 +256,12 @@ pmcc_do_list_state(void) (logical_cpus_mask & (1 << cpu))) continue; /* skip P4-style 'logical' cpus */ #endif - if (pmc_pmcinfo(cpu, &pi) < 0) + if (pmc_pmcinfo(cpu, &pi) < 0) { + if (errno == ENXIO) + continue; err(EX_OSERR, "Unable to get PMC status for CPU %d", cpu); + } printf("#CPU %d:\n", c++); npmc = pmc_npmc(cpu); |
