diff options
Diffstat (limited to 'kernel/trace/trace_functions_graph.c')
-rw-r--r-- | kernel/trace/trace_functions_graph.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/trace/trace_functions_graph.c b/kernel/trace/trace_functions_graph.c index 2c944e6c4a9d..74d98820497c 100644 --- a/kernel/trace/trace_functions_graph.c +++ b/kernel/trace/trace_functions_graph.c | |||
@@ -475,6 +475,12 @@ static void graph_trace_reset(struct trace_array *tr) | |||
475 | unregister_ftrace_graph(); | 475 | unregister_ftrace_graph(); |
476 | } | 476 | } |
477 | 477 | ||
478 | int graph_trace_update_thresh(struct trace_array *tr) | ||
479 | { | ||
480 | graph_trace_reset(tr); | ||
481 | return graph_trace_init(tr); | ||
482 | } | ||
483 | |||
478 | static int max_bytes_for_cpu; | 484 | static int max_bytes_for_cpu; |
479 | 485 | ||
480 | static enum print_line_t | 486 | static enum print_line_t |
@@ -1525,6 +1531,7 @@ static struct trace_event graph_trace_ret_event = { | |||
1525 | 1531 | ||
1526 | static struct tracer graph_trace __tracer_data = { | 1532 | static struct tracer graph_trace __tracer_data = { |
1527 | .name = "function_graph", | 1533 | .name = "function_graph", |
1534 | .update_thresh = graph_trace_update_thresh, | ||
1528 | .open = graph_trace_open, | 1535 | .open = graph_trace_open, |
1529 | .pipe_open = graph_trace_open, | 1536 | .pipe_open = graph_trace_open, |
1530 | .close = graph_trace_close, | 1537 | .close = graph_trace_close, |