Skip to content

Commit a0df483

Browse files
committed
Merge tag 'ftrace-v6.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace
Pull ftrace fix from Steven Rostedt: "Function graph fix of notrace functions. When the function graph tracer was restructured to use the global section of the meta data in the shadow stack, the bit logic was changed. There's a TRACE_GRAPH_NOTRACE_BIT that is the bit number in the mask that tells if the function graph tracer is currently in the "notrace" mode. The TRACE_GRAPH_NOTRACE is the mask with that bit set. But when the code we restructured, the TRACE_GRAPH_NOTRACE_BIT was used when it should have been the TRACE_GRAPH_NOTRACE mask. This made notrace not work properly" * tag 'ftrace-v6.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace: fgraph: Fix set_graph_notrace with setting TRACE_GRAPH_NOTRACE_BIT
2 parents a5057de + c8c9b1d commit a0df483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/trace/trace_functions_graph.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ int trace_graph_entry(struct ftrace_graph_ent *trace,
198198
* returning from the function.
199199
*/
200200
if (ftrace_graph_notrace_addr(trace->func)) {
201-
*task_var |= TRACE_GRAPH_NOTRACE_BIT;
201+
*task_var |= TRACE_GRAPH_NOTRACE;
202202
/*
203203
* Need to return 1 to have the return called
204204
* that will clear the NOTRACE bit.

0 commit comments

Comments
 (0)