提交 996667c3 编写于 作者: P Peng Wu 提交者: Zheng Zengkai

mm: Add kernel param for memory reliable

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4SK3S
CVE: NA

--------------------------------

Add kernel param reliable_debug in reparation for control memory reliable
features.
Signed-off-by: NPeng Wu <wupeng58@huawei.com>
Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com>
上级 295fbc30
...@@ -4777,6 +4777,11 @@ ...@@ -4777,6 +4777,11 @@
[KNL, SMP] Set scheduler's default relax_domain_level. [KNL, SMP] Set scheduler's default relax_domain_level.
See Documentation/admin-guide/cgroup-v1/cpusets.rst. See Documentation/admin-guide/cgroup-v1/cpusets.rst.
reliable_debug= [ARM64]
Format: []
Only works with CONFIG_MEMORY_RELIABLE and
"kernelcore=reliable" is configured.
reserve= [KNL,BUGS] Force kernel to ignore I/O ports or memory reserve= [KNL,BUGS] Force kernel to ignore I/O ports or memory
Format: <base1>,<size1>[,<base2>,<size2>,...] Format: <base1>,<size1>[,<base2>,<size2>,...]
Reserve I/O ports or memory so the kernel won't use Reserve I/O ports or memory so the kernel won't use
......
...@@ -107,3 +107,27 @@ void reliable_report_meminfo(struct seq_file *m) ...@@ -107,3 +107,27 @@ void reliable_report_meminfo(struct seq_file *m)
show_val_kb(m, "ReliableUsed: ", used_reliable_pages()); show_val_kb(m, "ReliableUsed: ", used_reliable_pages());
show_val_kb(m, "ReliableBuddyMem: ", free_reliable_pages()); show_val_kb(m, "ReliableBuddyMem: ", free_reliable_pages());
} }
static int __init setup_reliable_debug(char *str)
{
if (*str++ != '=' || !*str)
/*
* No options specified.
*/
goto out;
/*
* Determine which debug features should be switched on
*/
for (; *str && *str != ','; str++) {
switch (*str) {
default:
pr_err("reliable_debug option '%c' unknown. skipped\n",
*str);
}
}
out:
return 1;
}
__setup("reliable_debug", setup_reliable_debug);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册