android_kernel_motorola_sm6225/arch/i386/oprofile
Tong Li 23332c2e9d [PATCH] OProfile: fixed x86_64 incorrect kernel call graphs
Fix the problem in kernel 2.6.15.1 (and early versions) that OProfile on
x86_64 does not correctly collect the stack traces for kernel functions.

The original code in valid_kernel_stack() in arch/i386/oprofile/backtrace.c
assumes that the frame pointer (headaddr) should be greater than stack
(i.e., regs).

This assumption is wrong for x86_64 because NMIs in x86_64 use a seperate
stack different from the kernel stack.  Therefore, the variable stack now
points to some location on the NMI stack, which turns out to be at a higher
address than the frame pointer (headaddr) on the kernel stack.  The correct
comparison here should be between headaddr and regs->rsp for x86_64.

Signed-off-by: Tong Li <tong.n.li@intel.com>
Cc: John Levon <levon@movementarian.org>
Cc: Philippe Elie <phil.el@wanadoo.fr>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-02-03 08:32:04 -08:00
..
backtrace.c [PATCH] OProfile: fixed x86_64 incorrect kernel call graphs 2006-02-03 08:32:04 -08:00
init.c [PATCH] Fix function/macro name collision on i386 oprofile 2005-09-07 16:57:29 -07:00
Kconfig [PATCH] Move Kprobes and Oprofile to "Instrumentation Support" menu 2005-11-07 07:53:35 -08:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
nmi_int.c [PATCH] Fix function/macro name collision on i386 oprofile 2005-09-07 16:57:29 -07:00
nmi_timer_int.c [PATCH] useless includes of linux/irq.h in arch/i386 2005-09-26 18:29:50 -07:00
op_counter.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
op_model_athlon.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
op_model_p4.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
op_model_ppro.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
op_x86_model.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00