Skip to content

Commit 042b10d

Browse files
committed
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>
1 parent d6d3523 commit 042b10d

2 files changed

Lines changed: 0 additions & 17 deletions

File tree

‎include/linux/kernel.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,6 @@ void tracing_snapshot_alloc(void);
501501

502502
extern void tracing_start(void);
503503
extern void tracing_stop(void);
504-
extern void ftrace_off_permanent(void);
505504

506505
static inline __printf(1, 2)
507506
void ____trace_printk_check_format(const char *fmt, ...)
@@ -639,7 +638,6 @@ extern void ftrace_dump(enum ftrace_dump_mode oops_dump_mode);
639638
#else
640639
static inline void tracing_start(void) { }
641640
static inline void tracing_stop(void) { }
642-
static inline void ftrace_off_permanent(void) { }
643641
static inline void trace_dump_stack(int skip) { }
644642

645643
static inline void tracing_on(void) { }

‎kernel/trace/trace.c‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,21 +1283,6 @@ int is_tracing_stopped(void)
12831283
return global_trace.stop_count;
12841284
}
12851285

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-
13011286
/**
13021287
* tracing_start - quick start of the tracer
13031288
*

0 commit comments

Comments
 (0)