ftrace: Mark get_lock_parent_ip() __always_inline
authorJohn Keeping <john@metanate.com>
Mon, 27 Mar 2023 17:36:46 +0000 (18:36 +0100)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 3 Apr 2023 15:52:04 +0000 (11:52 -0400)
commitea65b41807a26495ff2a73dd8b1bab2751940887
treeea25cfc7a422eaaf0236539d035f75d72f3e0c37
parent6455b6163d8c680366663cdb8c679514d55fc30c
ftrace: Mark get_lock_parent_ip() __always_inline

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>
include/linux/ftrace.h