From owner-cvs-sys Mon Nov 24 10:19:21 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA21392 for cvs-sys-outgoing; Mon, 24 Nov 1997 10:19:21 -0800 (PST) (envelope-from owner-cvs-sys) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id KAA21051; Mon, 24 Nov 1997 10:17:09 -0800 (PST) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id KAA22049; Mon, 24 Nov 1997 10:16:26 -0800 (PST) Date: Mon, 24 Nov 1997 10:16:26 -0800 (PST) Message-Id: <199711241816.KAA22049@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/i386/isa prof_machdep.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 1997/11/24 10:16:26 PST Modified files: sys/i386/isa prof_machdep.c Log: Added a sysctl (machdep.cputime_clock) to select the clock used by "high resolution" profiling. The available clocks are: - the i8254 clock - on non-SMP i586's and i686's: the TSC - on systems with I586_PMC_GUPROF configured, and PERFMON configured and available: all the performance counters. This is unfinshed (there are problems with locking out the PERFMON device driver, and with losing calibration after switching the clock), but better than static configuration or writing to kmem. Changed ifdefs to avoid generating code for non-working option combinations. Revision Changes Path 1.7 +55 -11 src/sys/i386/isa/prof_machdep.c