diff options
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 2825ef2c0b15..911e9864e94a 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -378,6 +378,9 @@ void trace_function(struct trace_array *tr, | |||
378 | unsigned long ip, | 378 | unsigned long ip, |
379 | unsigned long parent_ip, | 379 | unsigned long parent_ip, |
380 | unsigned long flags, int pc); | 380 | unsigned long flags, int pc); |
381 | void trace_default_header(struct seq_file *m); | ||
382 | void print_trace_header(struct seq_file *m, struct trace_iterator *iter); | ||
383 | int trace_empty(struct trace_iterator *iter); | ||
381 | 384 | ||
382 | void trace_graph_return(struct ftrace_graph_ret *trace); | 385 | void trace_graph_return(struct ftrace_graph_ret *trace); |
383 | int trace_graph_entry(struct ftrace_graph_ent *trace); | 386 | int trace_graph_entry(struct ftrace_graph_ent *trace); |
@@ -491,9 +494,29 @@ extern int trace_clock_id; | |||
491 | 494 | ||
492 | /* Standard output formatting function used for function return traces */ | 495 | /* Standard output formatting function used for function return traces */ |
493 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER | 496 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER |
494 | extern enum print_line_t print_graph_function(struct trace_iterator *iter); | 497 | |
498 | /* Flag options */ | ||
499 | #define TRACE_GRAPH_PRINT_OVERRUN 0x1 | ||
500 | #define TRACE_GRAPH_PRINT_CPU 0x2 | ||
501 | #define TRACE_GRAPH_PRINT_OVERHEAD 0x4 | ||
502 | #define TRACE_GRAPH_PRINT_PROC 0x8 | ||
503 | #define TRACE_GRAPH_PRINT_DURATION 0x10 | ||
504 | #define TRACE_GRAPH_PRINT_ABS_TIME 0x20 | ||
505 | |||
506 | extern enum print_line_t | ||
507 | print_graph_function_flags(struct trace_iterator *iter, u32 flags); | ||
508 | extern void print_graph_headers_flags(struct seq_file *s, u32 flags); | ||
495 | extern enum print_line_t | 509 | extern enum print_line_t |
496 | trace_print_graph_duration(unsigned long long duration, struct trace_seq *s); | 510 | trace_print_graph_duration(unsigned long long duration, struct trace_seq *s); |
511 | extern void graph_trace_open(struct trace_iterator *iter); | ||
512 | extern void graph_trace_close(struct trace_iterator *iter); | ||
513 | extern int __trace_graph_entry(struct trace_array *tr, | ||
514 | struct ftrace_graph_ent *trace, | ||
515 | unsigned long flags, int pc); | ||
516 | extern void __trace_graph_return(struct trace_array *tr, | ||
517 | struct ftrace_graph_ret *trace, | ||
518 | unsigned long flags, int pc); | ||
519 | |||
497 | 520 | ||
498 | #ifdef CONFIG_DYNAMIC_FTRACE | 521 | #ifdef CONFIG_DYNAMIC_FTRACE |
499 | /* TODO: make this variable */ | 522 | /* TODO: make this variable */ |
@@ -524,7 +547,7 @@ static inline int ftrace_graph_addr(unsigned long addr) | |||
524 | #endif /* CONFIG_DYNAMIC_FTRACE */ | 547 | #endif /* CONFIG_DYNAMIC_FTRACE */ |
525 | #else /* CONFIG_FUNCTION_GRAPH_TRACER */ | 548 | #else /* CONFIG_FUNCTION_GRAPH_TRACER */ |
526 | static inline enum print_line_t | 549 | static inline enum print_line_t |
527 | print_graph_function(struct trace_iterator *iter) | 550 | print_graph_function_flags(struct trace_iterator *iter, u32 flags) |
528 | { | 551 | { |
529 | return TRACE_TYPE_UNHANDLED; | 552 | return TRACE_TYPE_UNHANDLED; |
530 | } | 553 | } |