aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r--kernel/trace/trace.c7
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];
620static char saved_cmdlines[SAVED_CMDLINES][TASK_COMM_LEN]; 620static char saved_cmdlines[SAVED_CMDLINES][TASK_COMM_LEN];
621static int cmdline_idx; 621static int cmdline_idx;
622static DEFINE_SPINLOCK(trace_cmdline_lock); 622static DEFINE_SPINLOCK(trace_cmdline_lock);
623atomic_t trace_record_cmdline_disabled; 623
624/* trace in all context switches */
625atomic_t trace_record_cmdline_enabled __read_mostly;
626
627/* temporary disable recording */
628atomic_t trace_record_cmdline_disabled __read_mostly;
624 629
625static void trace_init_cmdlines(void) 630static void trace_init_cmdlines(void)
626{ 631{