aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ftrace.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-03-24 23:17:58 -0400
committerSteven Rostedt <srostedt@redhat.com>2009-03-24 23:41:11 -0400
commita2a16d6a3156ef7309ca7328a20c35df9418e670 (patch)
tree8f21d9c56eb34f9bd1057929661c96d04329dd69 /include/linux/ftrace.h
parentcafb168a1c92e4c9e1731fe3d666c39611762c49 (diff)
function-graph: add option to calculate graph time or not
graph time is the time that a function is executing another function. Thus if function A calls B, if graph-time is set, then the time for A includes B. This is the default behavior. But if graph-time is off, then the time spent executing B is subtracted from A. Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r--include/linux/ftrace.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index 015a3d22cf74..9e0a8d245e55 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -365,6 +365,7 @@ struct ftrace_ret_stack {
365 unsigned long ret; 365 unsigned long ret;
366 unsigned long func; 366 unsigned long func;
367 unsigned long long calltime; 367 unsigned long long calltime;
368 unsigned long long subtime;
368}; 369};
369 370
370/* 371/*
@@ -376,8 +377,6 @@ extern void return_to_handler(void);
376 377
377extern int 378extern int
378ftrace_push_return_trace(unsigned long ret, unsigned long func, int *depth); 379ftrace_push_return_trace(unsigned long ret, unsigned long func, int *depth);
379extern void
380ftrace_pop_return_trace(struct ftrace_graph_ret *trace, unsigned long *ret);
381 380
382/* 381/*
383 * Sometimes we don't want to trace a function with the function 382 * Sometimes we don't want to trace a function with the function