diff options
| author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2019-08-12 15:14:03 +0200 | 
|---|---|---|
| committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2019-08-12 15:14:03 +0200 | 
| commit | 181ae8844578d0a80f188c1d195fd6bb91bcec81 (patch) | |
| tree | bd6ebfb8eb390ea6927603ca4e33c263c82b2cd7 /kernel/trace/trace_functions_graph.c | |
| parent | 8f1c748b9a7751ee1297b4880788a09f7c802eb4 (diff) | |
| parent | d45331b00ddb179e291766617259261c112db872 (diff) | |
Merge remote-tracking branch 'drm/drm-fixes' into drm-misc-fixes
Backport requested for omap dma mask fix. I'm not sure it still
requires it, but just in case. :)
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Diffstat (limited to 'kernel/trace/trace_functions_graph.c')
| -rw-r--r-- | kernel/trace/trace_functions_graph.c | 17 | 
1 files changed, 7 insertions, 10 deletions
diff --git a/kernel/trace/trace_functions_graph.c b/kernel/trace/trace_functions_graph.c index 69ebf3c2f1b5..78af97163147 100644 --- a/kernel/trace/trace_functions_graph.c +++ b/kernel/trace/trace_functions_graph.c @@ -137,6 +137,13 @@ int trace_graph_entry(struct ftrace_graph_ent *trace)  	if (trace_recursion_test(TRACE_GRAPH_NOTRACE_BIT))  		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)) {  		trace_recursion_set(TRACE_GRAPH_NOTRACE_BIT);  		/* @@ -156,16 +163,6 @@ int trace_graph_entry(struct ftrace_graph_ent *trace)  		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  	 * events to the ring buffer.  	 */  | 
