diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2013-11-06 12:19:37 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-11-06 15:26:55 -0500 |
commit | 042b10d83d05174e50ee861ee3aca55fd6204324 (patch) | |
tree | 7ab84aa7f1598def2008cfac2b045f52d728c0d1 /kernel/trace | |
parent | d6d3523caab75196560c85aae80cb8f4a8e380ea (diff) |
tracing: Remove unused function ftrace_off_permanent()
In the past, ftrace_off_permanent() was called if something
strange was detected. But the ftrace_bug() now handles all the
anomolies that can happen with ftrace (function tracing), and there
are no uses of ftrace_off_permanent(). Get rid of it.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/trace.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 2a595cf14f1c..d72a15c0b32c 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -1284,21 +1284,6 @@ int is_tracing_stopped(void) | |||
1284 | } | 1284 | } |
1285 | 1285 | ||
1286 | /** | 1286 | /** |
1287 | * ftrace_off_permanent - disable all ftrace code permanently | ||
1288 | * | ||
1289 | * This should only be called when a serious anomally has | ||
1290 | * been detected. This will turn off the function tracing, | ||
1291 | * ring buffers, and other tracing utilites. It takes no | ||
1292 | * locks and can be called from any context. | ||
1293 | */ | ||
1294 | void ftrace_off_permanent(void) | ||
1295 | { | ||
1296 | tracing_disabled = 1; | ||
1297 | ftrace_stop(); | ||
1298 | tracing_off_permanent(); | ||
1299 | } | ||
1300 | |||
1301 | /** | ||
1302 | * tracing_start - quick start of the tracer | 1287 | * tracing_start - quick start of the tracer |
1303 | * | 1288 | * |
1304 | * If tracing is enabled but was stopped by tracing_stop, | 1289 | * If tracing is enabled but was stopped by tracing_stop, |