From owner-cvs-src-old@FreeBSD.ORG Sun Nov 9 17:40:12 2008 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54C79106564A for ; Sun, 9 Nov 2008 17:40:12 +0000 (UTC) (envelope-from jkoshy@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 419498FC0C for ; Sun, 9 Nov 2008 17:40:12 +0000 (UTC) (envelope-from jkoshy@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id mA9HeC9R015814 for ; Sun, 9 Nov 2008 17:40:12 GMT (envelope-from jkoshy@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id mA9HeCxB015813 for cvs-src-old@freebsd.org; Sun, 9 Nov 2008 17:40:12 GMT (envelope-from jkoshy@repoman.freebsd.org) Message-Id: <200811091740.mA9HeCxB015813@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jkoshy@repoman.freebsd.org using -f From: Joseph Koshy Date: Sun, 9 Nov 2008 17:37:54 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/amd64/include pmc_mdep.h src/sys/conf files.amd64 files.i386 files.pc98 src/sys/dev/hwpmc hwpmc_amd.c hwpmc_amd.h hwpmc_intel.c hwpmc_mod.c hwpmc_pentium.c hwpmc_pentium.h hwpmc_piv.c hwpmc_piv.h hwpmc_ppro.c hwpmc_ppro.h ... X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Nov 2008 17:40:12 -0000 jkoshy 2008-11-09 17:37:54 UTC FreeBSD src repository Modified files: sys/amd64/include pmc_mdep.h sys/conf files.amd64 files.i386 files.pc98 sys/dev/hwpmc hwpmc_amd.c hwpmc_amd.h hwpmc_mod.c hwpmc_pentium.c hwpmc_pentium.h hwpmc_piv.c hwpmc_piv.h hwpmc_ppro.c hwpmc_ppro.h hwpmc_x86.c sys/i386/include pmc_mdep.h sys/modules/hwpmc Makefile sys/sys pmc.h Added files: sys/dev/hwpmc hwpmc_intel.c hwpmc_tsc.c hwpmc_tsc.h Log: SVN rev 184802 on 2008-11-09 17:37:54Z by jkoshy - Separate PMC class dependent code from other kinds of machine dependencies. A 'struct pmc_classdep' structure describes operations on PMCs; 'struct pmc_mdep' contains one or more 'struct pmc_classdep' structures depending on the CPU in question. Inside PMC class dependent code, row indices are relative to the PMCs supported by the PMC class; MI code in "hwpmc_mod.c" translates global row indices before invoking class dependent operations. - Augment the OP_GETCPUINFO request with the number of PMCs present in a PMC class. - Move code common to Intel CPUs to file "hwpmc_intel.c". - Move TSC handling to file "hwpmc_tsc.c". Revision Changes Path 1.7 +32 -3 src/sys/amd64/include/pmc_mdep.h 1.124 +2 -0 src/sys/conf/files.amd64 1.609 +2 -0 src/sys/conf/files.i386 1.368 +2 -0 src/sys/conf/files.pc98 1.19 +190 -162 src/sys/dev/hwpmc/hwpmc_amd.c 1.2 +1 -7 src/sys/dev/hwpmc/hwpmc_amd.h 1.6 +227 -0 src/sys/dev/hwpmc/hwpmc_intel.c (new) 1.38 +230 -122 src/sys/dev/hwpmc/hwpmc_mod.c 1.5 +8 -2 src/sys/dev/hwpmc/hwpmc_pentium.c 1.2 +3 -2 src/sys/dev/hwpmc/hwpmc_pentium.h 1.19 +181 -315 src/sys/dev/hwpmc/hwpmc_piv.c 1.2 +4 -3 src/sys/dev/hwpmc/hwpmc_piv.h 1.14 +161 -180 src/sys/dev/hwpmc/hwpmc_ppro.c 1.2 +3 -2 src/sys/dev/hwpmc/hwpmc_ppro.h 1.1 +388 -0 src/sys/dev/hwpmc/hwpmc_tsc.c (new) 1.1 +43 -0 src/sys/dev/hwpmc/hwpmc_tsc.h (new) 1.10 +15 -116 src/sys/dev/hwpmc/hwpmc_x86.c 1.9 +28 -0 src/sys/i386/include/pmc_mdep.h 1.6 +3 -2 src/sys/modules/hwpmc/Makefile 1.18 +61 -35 src/sys/sys/pmc.h