linux-next: build failure after merge of the ftrace tree
Hi all,
After merging the ftrace tree, today's linux-next build (x86_64 allmodconfig) failed like this:
kernel/trace/trace_functions_graph.c: In function '__trace_graph_retaddr_entry':kernel/trace/trace_functions_graph.c:151:14: error: implicit declaration of function 'call_filter_check_discard' [-Wimplicit-function-declaration]
151 | if (!call_filter_check_discard(call, entry, buffer, event))
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Caused by commit
21e92806d39c ("function_graph: Support recording and printing the function return address")
interacting with commit
49e4154f4b16 ("tracing: Remove TRACE_EVENT_FL_FILTERED logic")
I have used the ftrace tree from next-20241009 for today.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 13 lines · Stephen Rothwell
Hi all,
After merging the ftrace tree, today's linux-next build (
x86_64allmodconfig) failed like this:
kernel/trace/trace_functions_graph.c: In function '__trace_graph_retaddr_entry':kernel/trace/trace_functions_graph.c:151:14: error: implicit declaration of function 'call_filter_check_discard' [-Wimplicit-function-declaration]
151 | if (!call_filter_check_discard(call, entry, buffer, event))| ^~~~~~~~~~~~~~~~~~~~~~~~~Caused by commit
Quoted 8 lines
21e92806d39c("function_graph: Support recording and printing the function return address")interacting with commit
49e4154f4b16("tracing: RemoveTRACE_EVENT_FL_FILTEREDlogic")I have used the ftrace tree from next-20241009 for today.
The function call_filter_check_discard was removed in commit 49e4154f4b16 ("tracing: Remove TRACE_EVENT_FL_FILTERED logic"), but the function __trace_graph_retaddr_entry still invoke it. I will submit a patch to address this issue.
Quoted 3 lines
--
Cheers,
Stephen Rothwell
Quoted 12 lines · On Thu, 10 Oct 2024 13:46:49 +1100 Stephen Rothwell <[email protected]>…
Hi all,
After merging the ftrace tree, today's linux-next build (
x86_64allmodconfig) failed like this:
kernel/trace/trace_functions_graph.c: In function '__trace_graph_retaddr_entry':kernel/trace/trace_functions_graph.c:151:14: error: implicit declaration of function 'call_filter_check_discard' [-Wimplicit-function-declaration]
151 | if (!call_filter_check_discard(call, entry, buffer, event))| ^~~~~~~~~~~~~~~~~~~~~~~~~Caused by commit
Quoted 8 lines
21e92806d39c("function_graph: Support recording and printing the function return address")interacting with commit
49e4154f4b16("tracing: RemoveTRACE_EVENT_FL_FILTEREDlogic")I have used the ftrace tree from next-20241009 for today.
Hmm, strange. This went through my tests that also does an allmodconfig build.
I'll go investigate. Thanks for the report.
-- Steve
Quoted 20 lines · Steven Rostedt
Quoted 16 lines · On Thu, 10 Oct 2024 13:46:49 +1100 Stephen Rothwell <[email protected]>…
Hi all,
After merging the ftrace tree, today's linux-next build (
x86_64allmodconfig) failed like this:
kernel/trace/trace_functions_graph.c: In function '__trace_graph_retaddr_entry':kernel/trace/trace_functions_graph.c:151:14: error: implicit declaration of function 'call_filter_check_discard' [-Wimplicit-function-declaration]
151 | if (!call_filter_check_discard(call, entry, buffer, event))| ^~~~~~~~~~~~~~~~~~~~~~~~~Caused by commit
21e92806d39c("function_graph: Support recording and printing the function return address")interacting with commit
Quoted 8 lines
Quoted 4 lines
49e4154f4b16("tracing: RemoveTRACE_EVENT_FL_FILTEREDlogic")I have used the ftrace tree from next-20241009 for today.
Hmm, strange. This went through my tests that also does an allmodconfig build.
I'll go investigate. Thanks for the report.
I suspect that the configuration CONFIG_FUNCTION_GRAPH_RETADDR may be
disabled during testing. If this configuration is indeed disabled,
the function__trace_graph_retaddr_entry will not invoke call_filter_check_discard.
Quoted 2 lines
-- Steve
Quoted 8 lines · On Thu, 10 Oct 2024 22:08:04 +0800 Donglin Peng <[email protected]> wrote:
Quoted 3 lines
Hmm, strange. This went through my tests that also does an allmodconfig build.
I'll go investigate. Thanks for the report.
I suspect that the configuration
CONFIG_FUNCTION_GRAPH_RETADDRmay be
disabled during testing. If this configuration is indeed disabled,
the function__trace_graph_retaddr_entrywill not invokecall_filter_check_discard.
allmodconfig should enable it. Unless it's a tristate.
I'll look at my tests to see if something else caused it to be disabled.
-- Steve
Quoted 8 lines · On Thu, 10 Oct 2024 22:08:04 +0800 Donglin Peng <[email protected]> wrote:
Quoted 3 lines
Hmm, strange. This went through my tests that also does an allmodconfig build.
I'll go investigate. Thanks for the report.
I suspect that the configuration
CONFIG_FUNCTION_GRAPH_RETADDRmay be
disabled during testing. If this configuration is indeed disabled,
the function__trace_graph_retaddr_entrywill not invokecall_filter_check_discard.
I see what happened. The removal of the call_filter_check_discard() happened in my "trace" topic branch. This was added to my "ftrace" topic branch. The two topic branches build fine separately, but merging them together breaks the build.
Luckily, that function is unused and I can apply your fix for it in the "ftrace" topic branch. It's not really a fix, because your commit still works in that topic branch, but that function is not needed and can safely be removed.
I'll apply your fix, test it, and hopefully if nothing goes wrong, will push it up to linux-next by tonight.
-- Steve