From owner-cvs-all Wed Feb 20 23:13: 2 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D407837B41B; Wed, 20 Feb 2002 23:12:57 -0800 (PST) Received: (from bde@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1L7Cvr07303; Wed, 20 Feb 2002 23:12:57 -0800 (PST) (envelope-from bde) Message-Id: <200202210712.g1L7Cvr07303@freefall.freebsd.org> From: Bruce Evans Date: Wed, 20 Feb 2002 23:12:57 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/gprof alpha.h gprof.c gprof.h hp300.h i386.h ia64.h mips.h sparc.h tahoe.h vax.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG bde 2002/02/20 23:12:57 PST Modified files: usr.bin/gprof alpha.h gprof.c gprof.h hp300.h i386.h ia64.h mips.h sparc.h tahoe.h vax.h Log: Moved the definition of the machine-independent macro UNITS_TO_CODE from machine-dependent headers to the one non-header here it is used so that it is easier to fix. This macro just divides the machine-dependent offset OFFSET_OF_CODE by the machine-independent scale factor sizeof(UNIT), as required for bug for bug compatibility with the scaling of pc's in gprof.c. UNIT is the type of a profiling counter, and its size has nothing to do with the correct scale factor except both are usually 2. Revision Changes Path 1.2 +1 -1 src/usr.bin/gprof/alpha.h 1.13 +2 -0 src/usr.bin/gprof/gprof.c 1.12 +2 -0 src/usr.bin/gprof/gprof.h 1.2 +1 -1 src/usr.bin/gprof/hp300.h 1.2 +1 -1 src/usr.bin/gprof/i386.h 1.2 +0 -1 src/usr.bin/gprof/ia64.h 1.2 +1 -1 src/usr.bin/gprof/mips.h 1.2 +1 -1 src/usr.bin/gprof/sparc.h 1.3 +1 -1 src/usr.bin/gprof/tahoe.h 1.3 +1 -1 src/usr.bin/gprof/vax.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message