2 Star 2 Fork 0

laokz / klpmake

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
readme.md 1.41 KB
Copy Edit Raw Blame History
laokz authored 2024-01-06 22:04 . test: add one test

以下示例在openEuler 23.09 kernel 6.4.0-10.1.0.20,启用CONFIG_LIVEPATCH_WO_FTRACE热补丁机制的x86_64、aarch64、riscv64平台上进行了测试验证。test.sh是自动化测试所有示例的脚本。

netlink

原始补丁:netlink: fix potential deadlock in netlink_set_err()

补丁模块插入内核时,报了[T11932] Could not create tracefs 'netlink_extack' directory,似与内核配置有关,无其它异常,未深入追究。

meminfo

补丁来自KPATCH示例。加载使能补丁模块后,cat /proc/meminfo可以看到:

原有字符串改为大写:VMALLOCCHUNK

新增的static变量值:kpatch: 5

控制台新增内核日志:hello there!

这个示例在Fedora Linux 39 (Server Edition) x86_64上也测试通过。

syscall

补丁来自KPATCH示例。加载使能补丁模块后,uname -a输出中带上了“.kpatch”字样。

roinit

修复加载有jump_table节符号的补丁模块时崩溃问题(aarch64上netlink示例)。

gmemtest

原始补丁:bug fixes for gmem

macro0

验证主文件中由宏定义的变量、函数是否能正确处理。

以上示例均没有kallsyms中同名符号的情况,以后遇到再补上。

C
1
https://gitee.com/laokz/klpmake.git
git@gitee.com:laokz/klpmake.git
laokz
klpmake
klpmake
master

Search