mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
mm: disable page trace by default
PD#153090: mm: disable page trace by default Change-Id: I25cd5b1e8e475993f25e5455a411f0c9cc079493 Signed-off-by: tao zeng <tao.zeng@amlogic.com>
This commit is contained in:
@@ -45,7 +45,7 @@ static bool merge_function;
|
||||
struct page_trace *trace_buffer;
|
||||
static unsigned long ptrace_size;
|
||||
static struct proc_dir_entry *dentry;
|
||||
static bool page_trace_disable __initdata;
|
||||
static bool page_trace_disable __initdata = 1;
|
||||
|
||||
struct alloc_caller {
|
||||
unsigned long func_start_addr;
|
||||
@@ -89,10 +89,12 @@ static int early_page_trace_param(char *buf)
|
||||
if (!buf)
|
||||
return -EINVAL;
|
||||
|
||||
if (strcmp(buf, "off") == 0) {
|
||||
if (strcmp(buf, "off") == 0)
|
||||
page_trace_disable = true;
|
||||
pr_info("page_trace_disable disabled\n");
|
||||
}
|
||||
else if (strcmp(buf, "on") == 0)
|
||||
page_trace_disable = false;
|
||||
|
||||
pr_info("page_trace %sabled\n", page_trace_disable ? "dis" : "en");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user