All of
 help / color / mirror / Atom feed
From: Steven Rostedt <>
To: Mark Rutland <>
Cc: LKML <>,
	Linux Trace Kernel <>,
	Masami Hiramatsu <>,
	Andrew Morton <>,
	Thomas Gleixner <>,
	Peter Zijlstra <>, Song Liu <>,, Kees Cook <>,
	Miguel Ojeda <>,
	Nick Desaulniers <>,
	Ingo Molnar <>
Subject: Re: [PATCH] ftrace: Allow inline functions not inlined to be traced
Date: Fri, 9 Jun 2023 17:29:02 -0400	[thread overview]
Message-ID: <20230609172902.1d386ed7@gandalf.local.home> (raw)
In-Reply-To: <ZIGkezEx87zehzJr@FVFF77S0Q05N>

On Thu, 8 Jun 2023 10:50:51 +0100
Mark Rutland <> wrote:

> Unfortunately, from a quick build-test of arm64 there are a bunch of places
> that are currently inline that need to be __always_inline for this to be safe.
> Notably we have a few low-level helpers like is_kernel_in_hyp_mode() that are
> only inlines, and those get used in the bowels of our entry code before we've
> restored some HW state (e.g. in arch_nmi_enter()).

Sounds like you also need to add noinstr ;-)

> I'm happy to go audit and fixup arm64, but that will take some work.
> Maybe it's worth having something like:
> #define __notrace_inline
> #else
> #define __notrace_inline	notrace
> #endif
> ... so that we can opt-in where this is safe, (e.g. on x86)?

I guess I can do that.

-- Steve

      reply	other threads:[~2023-06-09 21:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-02 20:41 [PATCH] ftrace: Allow inline functions not inlined to be traced Steven Rostedt
2023-05-02 22:25 ` Song Liu
2023-05-31 21:50 ` Josh Poimboeuf
2023-06-08  9:50 ` Mark Rutland
2023-06-09 21:29   ` Steven Rostedt [this message]

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230609172902.1d386ed7@gandalf.local.home \ \ \ \ \ \ \ \ \ \ \ \ \ \ \

* 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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.