]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ftrace: Access ret_stack->subtime only in the function profiler
authorNamhyung Kim <namhyung@kernel.org>
Wed, 31 Aug 2016 02:55:29 +0000 (11:55 +0900)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 1 Sep 2016 16:19:40 +0000 (12:19 -0400)
commit8861dd303cba879bae9a9dcee74042fb642bf03b
tree9395c7c589d846cc94cbed3a960131fa15c72db4
parent613dccdf681aed9f9d1243bb2b8cd864a887802f
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>
Documentation/trace/ftrace.txt
include/linux/ftrace.h
kernel/trace/ftrace.c
kernel/trace/trace_functions_graph.c