Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/pmc The most likely failure of i386_pmc_info() is th...



details:   https://anonhg.NetBSD.org/src/rev/caa41f510c5b
branches:  trunk
changeset: 532403:caa41f510c5b
user:      gmcgarry <gmcgarry%NetBSD.org@localhost>
date:      Thu Jun 06 21:20:42 2002 +0000

description:
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.

diffstat:

 usr.bin/pmc/pmc.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r eec5be9be217 -r caa41f510c5b usr.bin/pmc/pmc.c
--- a/usr.bin/pmc/pmc.c Thu Jun 06 21:16:47 2002 +0000
+++ b/usr.bin/pmc/pmc.c Thu Jun 06 21:20:42 2002 +0000
@@ -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 @@
                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");
 



Home | Main Index | Thread Index | Old Index