function_graph: Do not expose the graph_time option when profiler is not configured
[sfrench/cifs-2.6.git] / kernel / trace / trace.h
index f67060a75f3814b1f6ae103584faa10cb81400f2..ab16eca76e59f6d49fb8ebce72650ef85dec3c6b 100644 (file)
@@ -862,7 +862,12 @@ static __always_inline bool ftrace_hash_empty(struct ftrace_hash *hash)
 #define TRACE_GRAPH_PRINT_FILL_MASK    (0x3 << TRACE_GRAPH_PRINT_FILL_SHIFT)
 
 extern void ftrace_graph_sleep_time_control(bool enable);
+
+#ifdef CONFIG_FUNCTION_PROFILER
 extern void ftrace_graph_graph_time_control(bool enable);
+#else
+static inline void ftrace_graph_graph_time_control(bool enable) { }
+#endif
 
 extern enum print_line_t
 print_graph_function_flags(struct trace_iterator *iter, u32 flags);