From: Steven Rostedt <rostedt@goodmis.org>
To: Mark Rutland <mark.rutland@arm.com>
Cc: kernel test robot <lkp@intel.com>,
oe-kbuild-all@lists.linux.dev,
Linux Memory Management List <linux-mm@kvack.org>,
Will Deacon <will@kernel.org>,
Florent Revest <revest@chromium.org>,
"Masami Hiramatsu (Google)" <mhiramat@kernel.org>
Subject: Re: [linux-next:master 8539/9537] include/linux/ftrace.h:126:16: error: implicit declaration of function 'arch_ftrace_get_regs'; did you mean 'ftrace_get_regs'?
Date: Mon, 21 Nov 2022 12:40:15 -0500 [thread overview]
Message-ID: <20221121124015.31d34642@gandalf.local.home> (raw)
In-Reply-To: <Y3u0t6eHjMbMdyUq@FVFF77S0Q05N.cambridge.arm.com>
On Mon, 21 Nov 2022 17:26:15 +0000
Mark Rutland <mark.rutland@arm.com> wrote:
> ... and since arm64 can be built with DYNAMIC_FTRACE=n we end up with:
>
> CONFIG_DYNAMIC_FTRACE=n
Is there any reason to have CONFIG_DYNAMIC_FTRACE=n and
CONFIG_FUNCTION_TRACE=y?
The only reason I keep the option to turn off DYNAMIC_FTRACE is for
debugging purposes.
That is, if you have HAVE_DYNAMIC_FTRACE, then DYNAMIC_FTRACE should be
enabled whenever it is needed by something else.
The reason for static ftrace is simply to help new architectures work their
way to having DYNAMIC_FTRACE enabled. Perhaps the solution is to get rid of
the DYNAMIC_FRACE prompt, and have it set whenever FUNCTION_TRACER is set
and HAVE_DYNAMIC_FTRACE is set.
For debugging purposes, I may add
HAVE_DEBUG_DYNAMIC_FTRACE
which brings back the prompt (for x86 only).
-- Steve
> CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS=y
> CONFIG_DYNAMIC_FTRACE_WITH_ARGS=n
>
> Looking at this some more, ftrace_regs_has_args() should check for
> CONFIG_DYNAMIC_FTRACE_WITH_ARGS rather than
> CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS, or it'll bogusly report we have args when
> CONFIG_DYNAMIC_FTRACE=n.
>
> I'd prefer to change the core ftrace code to check for
> CONFIG_DYNAMIC_FTRACE_WITH_ARGS for consistency with that, but I'll need to
> check how that affects other architectures.
next prev parent reply other threads:[~2022-11-21 17:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-21 14:55 kernel test robot
2022-11-21 17:26 ` Mark Rutland
2022-11-21 17:40 ` Steven Rostedt [this message]
2022-11-22 15:13 ` Mark Rutland
2022-11-22 15:30 ` Steven Rostedt
2022-11-22 16:41 ` Mark Rutland
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221121124015.31d34642@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=linux-mm@kvack.org \
--cc=lkp@intel.com \
--cc=mark.rutland@arm.com \
--cc=mhiramat@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=revest@chromium.org \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox