ANDROID: kernel: add scmversion for debug_kinfo
Backup CONFIG_MODULE_SCMVERSION and scmversion offset. Bug: 241477257 Signed-off-by: Jone Chou <jonechou@google.com> Change-Id: If98f5c6d5014326ad2e07306a08571d1640d2c37
This commit is contained in:
committed by
Treehugger Robot
parent
b0f8873811
commit
b5eedeaba6
@@ -173,6 +173,8 @@ static int debug_kinfo_probe(struct platform_device *pdev)
|
||||
info->module_start_va = VMALLOC_START;
|
||||
info->module_end_va = VMALLOC_END;
|
||||
#endif
|
||||
info->enabled_module_scmversion = IS_ENABLED(CONFIG_MODULE_SCMVERSION);
|
||||
info->mod_scmversion_offset = offsetof(struct module, scmversion);
|
||||
update_kernel_all_info(all_info);
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -60,6 +60,10 @@ struct kernel_info {
|
||||
__u32 mod_kallsyms_offset;
|
||||
__u64 module_start_va;
|
||||
__u64 module_end_va;
|
||||
|
||||
/* For module scmversion */
|
||||
__u32 enabled_module_scmversion;
|
||||
__u32 mod_scmversion_offset;
|
||||
} __packed;
|
||||
|
||||
struct kernel_all_info {
|
||||
|
||||
Reference in New Issue
Block a user