Skip to content

Commit 421d106

Browse files
committed
arm64: function_graph: Remove use of FTRACE_NOTRACE_DEPTH
Functions in the set_graph_notrace no longer subtract FTRACE_NOTRACE_DEPTH from curr_ret_stack, as that is now implemented via the trace_recursion flags. Access to curr_ret_stack no longer needs to worry about checking for this. curr_ret_stack is still initialized to -1, when there's not a shadow stack allocated. Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: linux-arm-kernel@lists.infradead.org Acked-by: Will Deacon <will.deacon@arm.com> Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
1 parent 9cd2992 commit 421d106

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎arch/arm64/kernel/stacktrace.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ int notrace unwind_frame(struct task_struct *tsk, struct stackframe *frame)
6161
(frame->pc == (unsigned long)return_to_handler)) {
6262
if (WARN_ON_ONCE(frame->graph == -1))
6363
return -EINVAL;
64-
if (frame->graph < -1)
65-
frame->graph += FTRACE_NOTRACE_DEPTH;
66-
6764
/*
6865
* This is a case where function graph tracer has
6966
* modified a return address (LR) in a stack frame

0 commit comments

Comments
 (0)