kpatch/kmod/patch
Jincheng Miao 827a143caf kmod/patch: export patched functions information via sysfs
This feature is implemented as:
```
[root@localhost kpatch]# insmod ./kpatch-meminfo.ko
[root@localhost kpatch]# ls /sys/kernel/kpatch/patches/kpatch_meminfo/functions/meminfo_proc_show/
new_addr  old_addr
[root@localhost kpatch]# cat /sys/kernel/kpatch/patches/kpatch_meminfo/functions/meminfo_proc_show/new_addr
0xffffffffa05211e0
[root@localhost kpatch]# cat /sys/kernel/kpatch/patches/kpatch_meminfo/functions/meminfo_proc_show/old_addr
0xffffffff8125d0e0
```

The patch module init function will allocate and init kpatch_func_obj with
customized kobj_type func_ktype. The attribute new_addr and old_addr of
kpatch_func_obj is attached to this func_ktype, so that these files could
be created by kobject_add automatically.

Signed-off-by: Jincheng Miao <jincheng.miao@gmail.com>
2014-05-27 21:56:56 +08:00
..
kpatch-patch-hook.c kmod/patch: export patched functions information via sysfs 2014-05-27 21:56:56 +08:00
kpatch.h build and install core module with make 2014-02-18 07:44:33 -06:00
kpatch.lds dynrelas support, obsoleting link-vmlinux-syms 2014-05-20 12:44:31 -05:00
Makefile build and install core module with make 2014-02-18 07:44:33 -06:00