Commit 8a655676 authored by liubo's avatar liubo Committed by Zheng Zengkai
Browse files

memig: add memig-swap feature to openEuler



euleros inclusion
category: feature
feature: add memig swap feature patch to openEuler kernel
bugzilla: 48246

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

reason:This patch is used to add memig swap feature to openEuler system.
memig_swap.ko is used to transfer the address
passed in the user state for page migration

Signed-off-by: default avataryanxiaodan <yanxiaodan@huawei.com>
Signed-off-by: default avatarlinmiaohe <linmiaohe@huawei.com>
Signed-off-by: default avatarlouhongxiang <louhongxiang@huawei.com>
Signed-off-by: default avatarliubo <liubo254@huawei.com>
Signed-off-by: default avatargeruijun <geruijun@huawei.com>
Signed-off-by: default avatarliangchenshu <liangchenshu@huawei.com>
Reviewed-by: default avatarJing Xiangfeng <jingxiangfeng@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent c13e5b6a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -7099,3 +7099,4 @@ CONFIG_MPAM=y
CONFIG_RESCTRL=y
CONFIG_ACPI_MPAM=y
CONFIG_MEMIG_SCAN_MODULE=m
CONFIG_MEMIG_SWAP_MODULE=m
+1 −0
Original line number Diff line number Diff line
@@ -8490,3 +8490,4 @@ CONFIG_ARCH_HAS_KCOV=y
# end of Kernel Testing and Coverage
# end of Kernel hacking
CONFIG_MEMIG_SCAN_MODULE=m
CONFIG_MEMIG_SWAP_MODULE=m
+1 −0
Original line number Diff line number Diff line
@@ -35,3 +35,4 @@ proc-$(CONFIG_PRINTK) += kmsg.o
proc-$(CONFIG_PROC_PAGE_MONITOR)	+= page.o
proc-$(CONFIG_BOOT_CONFIG)	+= bootconfig.o
obj-$(CONFIG_MEMIG_SCAN_MODULE)     += memig_scan.o
obj-$(CONFIG_MEMIG_SWAP_MODULE)     += memig_swap.o
+2 −0
Original line number Diff line number Diff line
@@ -3219,6 +3219,7 @@ static const struct pid_entry tgid_base_stuff[] = {
	REG("smaps_rollup", S_IRUGO, proc_pid_smaps_rollup_operations),
	REG("pagemap",    S_IRUSR, proc_pagemap_operations),
	REG("idle_pages", S_IRUSR|S_IWUSR, proc_mm_idle_operations),
	REG("swap_pages", S_IWUSR, proc_mm_swap_operations),
#endif
#ifdef CONFIG_SECURITY
	DIR("attr",       S_IRUGO|S_IXUGO, proc_attr_dir_inode_operations, proc_attr_dir_operations),
@@ -3559,6 +3560,7 @@ static const struct pid_entry tid_base_stuff[] = {
	REG("smaps_rollup", S_IRUGO, proc_pid_smaps_rollup_operations),
	REG("pagemap",    S_IRUSR, proc_pagemap_operations),
	REG("idle_pages", S_IRUSR|S_IWUSR, proc_mm_idle_operations),
	REG("swap_pages", S_IWUSR, proc_mm_swap_operations),
#endif
#ifdef CONFIG_SECURITY
	DIR("attr",      S_IRUGO|S_IXUGO, proc_attr_dir_inode_operations, proc_attr_dir_operations),
+1 −0
Original line number Diff line number Diff line
@@ -305,6 +305,7 @@ extern const struct file_operations proc_pid_smaps_rollup_operations;
extern const struct file_operations proc_clear_refs_operations;
extern const struct file_operations proc_pagemap_operations;
extern const struct file_operations proc_mm_idle_operations;
extern const struct file_operations proc_mm_swap_operations;

extern unsigned long task_vsize(struct mm_struct *);
extern unsigned long task_statm(struct mm_struct *,
Loading