lkml.org 
[lkml]   [2021]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 02/13] tracing: Fix selftest config check for function graph start up test
    Date
    CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS is required to test
    direct tramp.

    Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
    ---
    kernel/trace/trace_selftest.c | 6 ++----
    1 file changed, 2 insertions(+), 4 deletions(-)

    diff --git a/kernel/trace/trace_selftest.c b/kernel/trace/trace_selftest.c
    index afd937a46496..abcadbe933bb 100644
    --- a/kernel/trace/trace_selftest.c
    +++ b/kernel/trace/trace_selftest.c
    @@ -784,9 +784,7 @@ static struct fgraph_ops fgraph_ops __initdata = {
    .retfunc = &trace_graph_return,
    };

    -#if defined(CONFIG_DYNAMIC_FTRACE) && \
    - defined(CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS)
    -#define TEST_DIRECT_TRAMP
    +#ifdef CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS
    noinline __noclone static void trace_direct_tramp(void) { }
    #endif

    @@ -849,7 +847,7 @@ trace_selftest_startup_function_graph(struct tracer *trace,
    goto out;
    }

    -#ifdef TEST_DIRECT_TRAMP
    +#ifdef CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS
    tracing_reset_online_cpus(&tr->array_buffer);
    set_graph_array(tr);

    --
    2.33.1
    \
     
     \ /
      Last update: 2021-12-20 17:39    [W:6.547 / U:0.156 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site