From owner-cvs-src@FreeBSD.ORG Mon Sep 15 06:48:40 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4EC611065673; Mon, 15 Sep 2008 06:48:40 +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 3FB998FC13; Mon, 15 Sep 2008 06:48:40 +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 m8F6meMe051666; Mon, 15 Sep 2008 06:48:40 GMT (envelope-from jkoshy@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id m8F6meYe051665; Mon, 15 Sep 2008 06:48:40 GMT (envelope-from jkoshy@repoman.freebsd.org) Message-Id: <200809150648.m8F6meYe051665@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jkoshy@repoman.freebsd.org using -f From: Joseph Koshy Date: Mon, 15 Sep 2008 06:47:52 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/amd64/include pmc_mdep.h src/sys/dev/hwpmc hwpmc_x86.c src/sys/i386/include pmc_mdep.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Sep 2008 06:48:40 -0000 jkoshy 2008-09-15 06:47:52 UTC FreeBSD src repository Modified files: sys/amd64/include pmc_mdep.h sys/dev/hwpmc hwpmc_x86.c sys/i386/include pmc_mdep.h Log: SVN rev 183033 on 2008-09-15 06:47:52Z by jkoshy Correct a callchain capture bug on the i386. On the i386 architecture, the processor only saves the current value of `%esp' on stack if a privilege switch is necessary when entering the interrupt handler. Thus, `frame->tf_esp' is only valid for an entry from user mode. For interrupts taken in kernel mode, we need to determine the top-of-stack for the interrupted kernel procedure by adding the appropriate offset to the current frame pointer. Reported by: kris, Fabien Thomas Tested by: Fabien Thomas Revision Changes Path 1.6 +3 -2 src/sys/amd64/include/pmc_mdep.h 1.8 +3 -3 src/sys/dev/hwpmc/hwpmc_x86.c 1.8 +20 -2 src/sys/i386/include/pmc_mdep.h