lkml.org 
[lkml]   [2015]   [Oct]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] trace_functions_graph: Remove __trace_graph_function
Date
__trace_graph_funciton is used in only one location, and is static.
As it's small function there is no need to keep it separated out.

Signed-off-by: Dmitry Safonov <0x7f454c46@gmail.com>
---
kernel/trace/trace_functions_graph.c | 14 +++-----------
1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/kernel/trace/trace_functions_graph.c b/kernel/trace/trace_functions_graph.c
index ca98445782acaa..dc45caefe4b1ac 100644
--- a/kernel/trace/trace_functions_graph.c
+++ b/kernel/trace/trace_functions_graph.c
@@ -360,9 +360,9 @@ static int trace_graph_thresh_entry(struct ftrace_graph_ent *trace)
return trace_graph_entry(trace);
}

-static void
-__trace_graph_function(struct trace_array *tr,
- unsigned long ip, unsigned long flags, int pc)
+void trace_graph_function(struct trace_array *tr,
+ unsigned long ip, unsigned long parent_ip,
+ unsigned long flags, int pc)
{
u64 time = trace_clock_local();
struct ftrace_graph_ent ent = {
@@ -380,14 +380,6 @@ __trace_graph_function(struct trace_array *tr,
__trace_graph_return(tr, &ret, flags, pc);
}

-void
-trace_graph_function(struct trace_array *tr,
- unsigned long ip, unsigned long parent_ip,
- unsigned long flags, int pc)
-{
- __trace_graph_function(tr, ip, flags, pc);
-}
-
void __trace_graph_return(struct trace_array *tr,
struct ftrace_graph_ret *trace,
unsigned long flags,
--
2.6.1


\
 
 \ /
  Last update: 2015-10-30 20:41    [W:0.039 / U:2.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site