]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ftrace: Mark get_lock_parent_ip() __always_inline
authorJohn Keeping <john@metanate.com>
Mon, 27 Mar 2023 17:36:46 +0000 (18:36 +0100)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Wed, 17 May 2023 11:34:00 +0000 (13:34 +0200)
commit511a810581ccfac67e6f93a0291265d2a45a52b3
tree5614c4daaaecb95555e1b3afba9e78f33616c7ba
parent9e107594c13ded4f09afb5819ca36d8a2eddefcf
ftrace: Mark get_lock_parent_ip() __always_inline

BugLink: https://bugs.launchpad.net/bugs/2016879
commit ea65b41807a26495ff2a73dd8b1bab2751940887 upstream.

If the compiler decides not to inline this function then preemption
tracing will always show an IP inside the preemption disabling path and
never the function actually calling preempt_{enable,disable}.

Link: https://lore.kernel.org/linux-trace-kernel/20230327173647.1690849-1-john@metanate.com
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: stable@vger.kernel.org
Fixes: f904f58263e1d ("sched/debug: Fix preempt_disable_ip recording for preempt_disable()")
Signed-off-by: John Keeping <john@metanate.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
include/linux/ftrace.h