Commit d2eee9fc authored by Linus Torvalds's avatar Linus Torvalds
Browse files
Pull tracing fixes from Steven Rostedt:
 "Two minor fixes:

   - Fix trace event header include guards, as several did not match the
     #define to the #ifdef

   - Remove a redundant test to ftrace_graph_notrace_addr() that was
     accidentally added"

* tag 'trace-v5.3-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
  fgraph: Remove redundant ftrace_graph_notrace_addr() test
  tracing: Fix header include guards in trace event headers
parents 52fde434 6c77221d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2,7 +2,7 @@
#undef TRACE_SYSTEM
#undef TRACE_SYSTEM
#define TRACE_SYSTEM dma_fence
#define TRACE_SYSTEM dma_fence


#if !defined(_TRACE_FENCE_H) || defined(TRACE_HEADER_MULTI_READ)
#if !defined(_TRACE_DMA_FENCE_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_DMA_FENCE_H
#define _TRACE_DMA_FENCE_H


#include <linux/tracepoint.h>
#include <linux/tracepoint.h>
+2 −2
Original line number Original line Diff line number Diff line
@@ -3,7 +3,7 @@
#define TRACE_SYSTEM napi
#define TRACE_SYSTEM napi


#if !defined(_TRACE_NAPI_H) || defined(TRACE_HEADER_MULTI_READ)
#if !defined(_TRACE_NAPI_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_NAPI_H_
#define _TRACE_NAPI_H


#include <linux/netdevice.h>
#include <linux/netdevice.h>
#include <linux/tracepoint.h>
#include <linux/tracepoint.h>
@@ -38,7 +38,7 @@ TRACE_EVENT(napi_poll,


#undef NO_DEV
#undef NO_DEV


#endif /* _TRACE_NAPI_H_ */
#endif /* _TRACE_NAPI_H */


/* This part must be outside protection */
/* This part must be outside protection */
#include <trace/define_trace.h>
#include <trace/define_trace.h>
+2 −2
Original line number Original line Diff line number Diff line
@@ -2,7 +2,7 @@
#define TRACE_SYSTEM qdisc
#define TRACE_SYSTEM qdisc


#if !defined(_TRACE_QDISC_H) || defined(TRACE_HEADER_MULTI_READ)
#if !defined(_TRACE_QDISC_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_QDISC_H_
#define _TRACE_QDISC_H


#include <linux/skbuff.h>
#include <linux/skbuff.h>
#include <linux/netdevice.h>
#include <linux/netdevice.h>
@@ -44,7 +44,7 @@ TRACE_EVENT(qdisc_dequeue,
		  __entry->txq_state, __entry->packets, __entry->skbaddr )
		  __entry->txq_state, __entry->packets, __entry->skbaddr )
);
);


#endif /* _TRACE_QDISC_H_ */
#endif /* _TRACE_QDISC_H */


/* This part must be outside protection */
/* This part must be outside protection */
#include <trace/define_trace.h>
#include <trace/define_trace.h>
+2 −2
Original line number Original line Diff line number Diff line
#if !defined(_TRACE_TEGRA_APB_DMA_H) || defined(TRACE_HEADER_MULTI_READ)
#if !defined(_TRACE_TEGRA_APB_DMA_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_TEGRA_APM_DMA_H
#define _TRACE_TEGRA_APB_DMA_H


#include <linux/tracepoint.h>
#include <linux/tracepoint.h>
#include <linux/dmaengine.h>
#include <linux/dmaengine.h>
@@ -55,7 +55,7 @@ TRACE_EVENT(tegra_dma_isr,
	TP_printk("%s: irq %d\n",  __get_str(chan), __entry->irq)
	TP_printk("%s: irq %d\n",  __get_str(chan), __entry->irq)
);
);


#endif /*  _TRACE_TEGRADMA_H */
#endif /* _TRACE_TEGRA_APB_DMA_H */


/* This part must be outside protection */
/* This part must be outside protection */
#include <trace/define_trace.h>
#include <trace/define_trace.h>
+7 −10
Original line number Original line Diff line number Diff line
@@ -137,6 +137,13 @@ int trace_graph_entry(struct ftrace_graph_ent *trace)
	if (trace_recursion_test(TRACE_GRAPH_NOTRACE_BIT))
	if (trace_recursion_test(TRACE_GRAPH_NOTRACE_BIT))
		return 0;
		return 0;


	/*
	 * Do not trace a function if it's filtered by set_graph_notrace.
	 * Make the index of ret stack negative to indicate that it should
	 * ignore further functions.  But it needs its own ret stack entry
	 * to recover the original index in order to continue tracing after
	 * returning from the function.
	 */
	if (ftrace_graph_notrace_addr(trace->func)) {
	if (ftrace_graph_notrace_addr(trace->func)) {
		trace_recursion_set(TRACE_GRAPH_NOTRACE_BIT);
		trace_recursion_set(TRACE_GRAPH_NOTRACE_BIT);
		/*
		/*
@@ -155,16 +162,6 @@ int trace_graph_entry(struct ftrace_graph_ent *trace)
	if (ftrace_graph_ignore_irqs())
	if (ftrace_graph_ignore_irqs())
		return 0;
		return 0;


	/*
	 * Do not trace a function if it's filtered by set_graph_notrace.
	 * Make the index of ret stack negative to indicate that it should
	 * ignore further functions.  But it needs its own ret stack entry
	 * to recover the original index in order to continue tracing after
	 * returning from the function.
	 */
	if (ftrace_graph_notrace_addr(trace->func))
		return 1;

	/*
	/*
	 * Stop here if tracing_threshold is set. We only write function return
	 * Stop here if tracing_threshold is set. We only write function return
	 * events to the ring buffer.
	 * events to the ring buffer.