freebsd-skq/sys/dev/hwpmc
jkoshy a9cbfb55cd 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>
2008-09-15 06:47:52 +00:00
..
hwpmc_amd.c Sign-extend the 48-bit AMD PMC counter before treating it to a 64-bit 2008-03-18 08:39:11 +00:00
hwpmc_amd.h
hwpmc_arm.c Add stub functions to unbreak LINT. 2007-12-07 17:21:53 +00:00
hwpmc_ia64.c Add stub functions to unbreak LINT. 2007-12-07 17:21:53 +00:00
hwpmc_logging.c Kernel and hwpmc(4) support for callchain capture. 2007-12-07 08:20:17 +00:00
hwpmc_mod.c - Provide kernelname as the name for process with P_KTHREAD set as 2008-07-25 05:49:48 +00:00
hwpmc_pentium.c
hwpmc_pentium.h
hwpmc_piv.c Kernel and hwpmc(4) support for callchain capture. 2007-12-07 08:20:17 +00:00
hwpmc_piv.h
hwpmc_powerpc.c Add stub functions to unbreak LINT. 2007-12-07 17:21:53 +00:00
hwpmc_ppro.c Kernel and hwpmc(4) support for callchain capture. 2007-12-07 08:20:17 +00:00
hwpmc_ppro.h
hwpmc_sparc64.c Add stub functions to unbreak LINT. 2007-12-07 17:21:53 +00:00
hwpmc_x86.c Correct a callchain capture bug on the i386. 2008-09-15 06:47:52 +00:00
pmc_events.h Correct a typo. 2008-03-14 06:16:18 +00:00