The most likely failure of i386_pmc_info() is that the kernel doesn't
include PMC support. Report this to the user to give a clue as to why pmc(1) doesn't work.
This commit is contained in:
parent
4db43b2db0
commit
616df6150d
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pmc.c,v 1.4 2002/01/03 05:04:52 briggs Exp $ */
|
||||
/* $NetBSD: pmc.c,v 1.5 2002/06/06 21:20:42 gmcgarry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 2000 Wasabi Systems, Inc.
|
||||
|
@ -280,7 +280,7 @@ main(int argc, char **argv)
|
|||
usage();
|
||||
|
||||
if (i386_pmc_info(&pi) < 0)
|
||||
err(2, "pmc_info");
|
||||
errx(2, "PMC support is not compiled into the kernel");
|
||||
if (pi.type != PMC_TYPE_I686)
|
||||
errx(3, "only 686 counters are supported");
|
||||
|
||||
|
|
Loading…
Reference in New Issue