aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r--kernel/trace/trace.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index 447bd96ee658..08900828d282 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -247,6 +247,7 @@ struct trace_array {
247 int clock_id; 247 int clock_id;
248 int nr_topts; 248 int nr_topts;
249 bool clear_trace; 249 bool clear_trace;
250 int buffer_percent;
250 struct tracer *current_trace; 251 struct tracer *current_trace;
251 unsigned int trace_flags; 252 unsigned int trace_flags;
252 unsigned char trace_flags_index[TRACE_FLAGS_MAX_SIZE]; 253 unsigned char trace_flags_index[TRACE_FLAGS_MAX_SIZE];
@@ -534,6 +535,13 @@ enum {
534 535
535 TRACE_GRAPH_DEPTH_START_BIT, 536 TRACE_GRAPH_DEPTH_START_BIT,
536 TRACE_GRAPH_DEPTH_END_BIT, 537 TRACE_GRAPH_DEPTH_END_BIT,
538
539 /*
540 * To implement set_graph_notrace, if this bit is set, we ignore
541 * function graph tracing of called functions, until the return
542 * function is called to clear it.
543 */
544 TRACE_GRAPH_NOTRACE_BIT,
537}; 545};
538 546
539#define trace_recursion_set(bit) do { (current)->trace_recursion |= (1<<(bit)); } while (0) 547#define trace_recursion_set(bit) do { (current)->trace_recursion |= (1<<(bit)); } while (0)
@@ -855,7 +863,12 @@ static __always_inline bool ftrace_hash_empty(struct ftrace_hash *hash)
855#define TRACE_GRAPH_PRINT_FILL_MASK (0x3 << TRACE_GRAPH_PRINT_FILL_SHIFT) 863#define TRACE_GRAPH_PRINT_FILL_MASK (0x3 << TRACE_GRAPH_PRINT_FILL_SHIFT)
856 864
857extern void ftrace_graph_sleep_time_control(bool enable); 865extern void ftrace_graph_sleep_time_control(bool enable);
866
867#ifdef CONFIG_FUNCTION_PROFILER
858extern void ftrace_graph_graph_time_control(bool enable); 868extern void ftrace_graph_graph_time_control(bool enable);
869#else
870static inline void ftrace_graph_graph_time_control(bool enable) { }
871#endif
859 872
860extern enum print_line_t 873extern enum print_line_t
861print_graph_function_flags(struct trace_iterator *iter, u32 flags); 874print_graph_function_flags(struct trace_iterator *iter, u32 flags);