diff options
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r-- | kernel/trace/trace.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index a102b11eacf2..1281969103b8 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -620,7 +620,12 @@ static unsigned map_cmdline_to_pid[SAVED_CMDLINES]; | |||
620 | static char saved_cmdlines[SAVED_CMDLINES][TASK_COMM_LEN]; | 620 | static char saved_cmdlines[SAVED_CMDLINES][TASK_COMM_LEN]; |
621 | static int cmdline_idx; | 621 | static int cmdline_idx; |
622 | static DEFINE_SPINLOCK(trace_cmdline_lock); | 622 | static DEFINE_SPINLOCK(trace_cmdline_lock); |
623 | atomic_t trace_record_cmdline_disabled; | 623 | |
624 | /* trace in all context switches */ | ||
625 | atomic_t trace_record_cmdline_enabled __read_mostly; | ||
626 | |||
627 | /* temporary disable recording */ | ||
628 | atomic_t trace_record_cmdline_disabled __read_mostly; | ||
624 | 629 | ||
625 | static void trace_init_cmdlines(void) | 630 | static void trace_init_cmdlines(void) |
626 | { | 631 | { |