trace: Toggle irqsoff tracing to dmesg
Allow tracing irqsoff to dmesg based on userspace tunable. Change-Id: I36ca46c787d25ec08a6d050eed4ce0a23db26a1a Signed-off-by: Sai Harshini Nimmala <snimmala@codeaurora.org>
This commit is contained in:
@@ -141,6 +141,8 @@ static int ten_thousand = 10000;
|
||||
#ifdef CONFIG_PERF_EVENTS
|
||||
static int six_hundred_forty_kb = 640 * 1024;
|
||||
#endif
|
||||
static unsigned int __maybe_unused half_million = 500000;
|
||||
static unsigned int __maybe_unused one_hundred_million = 100000000;
|
||||
#ifdef CONFIG_SCHED_WALT
|
||||
static int neg_three = -3;
|
||||
static int three = 3;
|
||||
@@ -355,6 +357,15 @@ static struct ctl_table kern_table[] = {
|
||||
.data = &sysctl_irqsoff_tracing_threshold_ns,
|
||||
.maxlen = sizeof(unsigned int),
|
||||
.mode = 0644,
|
||||
.proc_handler = proc_douintvec_minmax,
|
||||
.extra1 = &half_million,
|
||||
.extra2 = &one_hundred_million,
|
||||
},
|
||||
{
|
||||
.procname = "irqsoff_dmesg_output_enabled",
|
||||
.data = &sysctl_irqsoff_dmesg_output_enabled,
|
||||
.maxlen = sizeof(unsigned int),
|
||||
.mode = 0644,
|
||||
.proc_handler = proc_dointvec,
|
||||
},
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user