lkml.org 
[lkml]   [2009]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 7/7][RFC] powerpc32, ftrace: dynamic function graph tracer
    From: Steven Rostedt <rostedt@gollum.(none)>

    This patch gets function graph tracing working with dynamic function
    tracer on PowerPC32.

    Signed-off-by: Steven Rostedt <rostedt@gollum.(none)>
    ---
    arch/powerpc/Kconfig | 2 +-
    arch/powerpc/kernel/entry_32.S | 8 ++++++--
    2 files changed, 7 insertions(+), 3 deletions(-)

    diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
    index 9e4bd20..40b7981 100644
    --- a/arch/powerpc/Kconfig
    +++ b/arch/powerpc/Kconfig
    @@ -111,7 +111,7 @@ config PPC
    select HAVE_FTRACE_MCOUNT_RECORD
    select HAVE_DYNAMIC_FTRACE
    select HAVE_FUNCTION_TRACER
    - select HAVE_FUNCTION_GRAPH_TRACER if PPC64 || !DYNAMIC_FTRACE
    + select HAVE_FUNCTION_GRAPH_TRACER
    select ARCH_WANT_OPTIONAL_GPIOLIB
    select HAVE_IDE
    select HAVE_IOREMAP_PROT
    diff --git a/arch/powerpc/kernel/entry_32.S b/arch/powerpc/kernel/entry_32.S
    index 9cf7083..529bfbb 100644
    --- a/arch/powerpc/kernel/entry_32.S
    +++ b/arch/powerpc/kernel/entry_32.S
    @@ -1183,7 +1183,12 @@ _GLOBAL(ftrace_caller)
    ftrace_call:
    bl ftrace_stub
    nop
    -
    +#ifdef CONFIG_FUNCTION_GRAPH_TRACER
    +.globl ftrace_graph_call
    +ftrace_graph_call:
    + b ftrace_graph_stub
    +_GLOBAL(ftrace_graph_stub)
    +#endif
    MCOUNT_RESTORE_FRAME
    /* old link register ends up in ctr reg */
    bctr
    @@ -1205,7 +1210,6 @@ _GLOBAL(_mcount)
    b ftrace_graph_caller
    #endif
    MCOUNT_RESTORE_FRAME
    -
    bctr
    #endif

    --
    1.5.6.5
    --


    \
     
     \ /
      Last update: 2009-02-12 02:17    [W:0.020 / U:0.032 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site