Commit affc6592 authored by Changbin Du's avatar Changbin Du Committed by Steven Rostedt (VMware)
Browse files

tracing: in_irq() cleanup

Replace the obsolete and ambiguos macro in_irq() with new
macro in_hardirq().

Link: https://lkml.kernel.org/r/20210930000342.6016-1-changbin.du@gmail.com



Reviewed-by: default avatarPetr Mladek <pmladek@suse.com>
Signed-off-by: default avatarChangbin Du <changbin.du@gmail.com>
Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
parent 43c9dd8d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -890,7 +890,7 @@ static inline int ftrace_graph_addr(struct ftrace_graph_ent *trace)
		 * is set, and called by an interrupt handler, we still
		 * want to trace it.
		 */
		if (in_irq())
		if (in_hardirq())
			trace_recursion_set(TRACE_IRQ_BIT);
		else
			trace_recursion_clear(TRACE_IRQ_BIT);
+1 −1
Original line number Diff line number Diff line
@@ -120,7 +120,7 @@ static inline int ftrace_graph_ignore_irqs(void)
	if (!ftrace_graph_skip_irqs || trace_recursion_test(TRACE_IRQ_BIT))
		return 0;

	return in_irq();
	return in_hardirq();
}

int trace_graph_entry(struct ftrace_graph_ent *trace)