WSL2-Linux-Kernel/arch/powerpc
Steven Rostedt bb7253403f powerpc64, ftrace: save toc only on modules for function graph
The TOCS used by modules are different than the one used by
the core kernel code. The function graph tracer must save and
restore the TOC whenever it traces a module call. But this
is an added overhead to burden the majority of core kernel
code being traced.

Benjamin Herrenschmidt suggested in testing the entry of
the call to tell if it is a core kernel function or a module.
He recommended using the REGION_ID() macro to perform this test.

This patch implements Benjamin's idea, and uses a different
return_to_handler routine dependent on if the entry is a core
kernel function or not. The module version saves the TOC, where as
the core kernel version does not.

Geoff Lavand tested on PS3.

Tested-by: Geoff Levand <geoffrey.levand@am.sony.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2009-02-23 10:48:54 +11:00
..
boot Merge commit 'kumar/next' into next 2009-02-18 13:23:30 +11:00
configs powerpc/amigaone: Default config for AmigaOne boards 2009-02-11 16:00:10 +11:00
include/asm Merge commit 'kumar/next' into next 2009-02-18 13:23:30 +11:00
kernel powerpc64, ftrace: save toc only on modules for function graph 2009-02-23 10:48:54 +11:00
kvm KVM: Add kvm_arch_sync_events to sync with asynchronize events 2009-02-15 02:47:36 +02:00
lib powerpc: Don't emulate mr. instructions 2009-02-10 14:39:07 +11:00
math-emu powerpc: Add SPE/EFP math emulation for E500v1/v2 processors. 2008-12-03 08:19:16 -06:00
mm Merge commit 'kumar/next' into next 2009-02-18 13:23:30 +11:00
oprofile powerpc/cell: Add missing #include for oprofile 2009-02-10 14:39:08 +11:00
platforms Merge commit 'kumar/next' into next 2009-02-18 13:23:30 +11:00
sysdev Merge commit 'kumar/next' into next 2009-02-11 13:37:44 +11:00
xmon powerpc: Prepare xmon_save_regs for use with kdump 2008-12-23 15:13:28 +11:00
Kconfig powerpc64, tracing: add function graph tracer with dynamic tracing 2009-02-23 10:48:54 +11:00
Kconfig.debug powerpc: Allow the max stack trace depth to be configured 2008-12-03 20:46:35 +11:00
Makefile powerpc: Remove unncessary SPE related compiler flag 2008-12-03 08:19:10 -06:00