diff options
-rw-r--r-- | Documentation/admin-guide/kernel-parameters.txt | 6 | ||||
-rw-r--r-- | kernel/trace/ftrace.c | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index 21e2d8863705..1c9016b27ee9 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt | |||
@@ -1173,6 +1173,12 @@ | |||
1173 | functions that can be changed at run time by the | 1173 | functions that can be changed at run time by the |
1174 | set_graph_notrace file in the debugfs tracing directory. | 1174 | set_graph_notrace file in the debugfs tracing directory. |
1175 | 1175 | ||
1176 | ftrace_graph_max_depth=<uint> | ||
1177 | [FTRACE] Used with the function graph tracer. This is | ||
1178 | the max depth it will trace into a function. This value | ||
1179 | can be changed at run time by the max_graph_depth file | ||
1180 | in the tracefs tracing directory. default: 0 (no limit) | ||
1181 | |||
1176 | gamecon.map[2|3]= | 1182 | gamecon.map[2|3]= |
1177 | [HW,JOY] Multisystem joystick and NES/SNES/PSX pad | 1183 | [HW,JOY] Multisystem joystick and NES/SNES/PSX pad |
1178 | support via parallel port (up to 5 devices per port) | 1184 | support via parallel port (up to 5 devices per port) |
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 44122e7a6418..d129ae51329a 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -4415,6 +4415,15 @@ static int __init set_graph_notrace_function(char *str) | |||
4415 | } | 4415 | } |
4416 | __setup("ftrace_graph_notrace=", set_graph_notrace_function); | 4416 | __setup("ftrace_graph_notrace=", set_graph_notrace_function); |
4417 | 4417 | ||
4418 | static int __init set_graph_max_depth_function(char *str) | ||
4419 | { | ||
4420 | if (!str) | ||
4421 | return 0; | ||
4422 | fgraph_max_depth = simple_strtoul(str, NULL, 0); | ||
4423 | return 1; | ||
4424 | } | ||
4425 | __setup("ftrace_graph_max_depth=", set_graph_max_depth_function); | ||
4426 | |||
4418 | static void __init set_ftrace_early_graph(char *buf, int enable) | 4427 | static void __init set_ftrace_early_graph(char *buf, int enable) |
4419 | { | 4428 | { |
4420 | int ret; | 4429 | int ret; |