diff options
author | Namhyung Kim <namhyung@kernel.org> | 2016-08-31 11:55:29 +0900 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2016-09-01 12:19:40 -0400 |
commit | 8861dd303cba879bae9a9dcee74042fb642bf03b (patch) | |
tree | 9395c7c589d846cc94cbed3a960131fa15c72db4 /include/linux/ftrace.h | |
parent | 613dccdf681aed9f9d1243bb2b8cd864a887802f (diff) | |
download | linux-8861dd303cba879bae9a9dcee74042fb642bf03b.tar.gz linux-8861dd303cba879bae9a9dcee74042fb642bf03b.tar.bz2 linux-8861dd303cba879bae9a9dcee74042fb642bf03b.zip |
ftrace: Access ret_stack->subtime only in the function profiler
The subtime is used only for function profiler with function graph
tracer enabled. Move the definition of subtime under
CONFIG_FUNCTION_PROFILER to reduce the memory usage. Also move the
initialization of subtime into the graph entry callback.
Link: http://lkml.kernel.org/r/20160831025529.24018-1-namhyung@kernel.org
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r-- | include/linux/ftrace.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 7d565afe35d2..1e2b316d6693 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h @@ -794,7 +794,9 @@ struct ftrace_ret_stack { unsigned long ret; unsigned long func; unsigned long long calltime; +#ifdef CONFIG_FUNCTION_PROFILER unsigned long long subtime; +#endif unsigned long fp; }; |