cvs commit: src/sys/amd64/include pmc_mdep.h src/sys/dev/hwpmc
hwpmc_x86.c src/sys/i386/include pmc_mdep.h
Joseph Koshy
jkoshy at FreeBSD.org
Mon Sep 15 06:48:40 UTC 2008
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 <fabien.thomas at netasq dot com>
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
More information about the cvs-src
mailing list