diff --git a/fs/proc/kcore.c b/fs/proc/kcore.c index 59b43a0..50830c7 100644 --- a/fs/proc/kcore.c +++ b/fs/proc/kcore.c @@ -408,6 +408,13 @@ static int __init proc_kcore_init(void) if (proc_root_kcore) proc_root_kcore->size = (size_t)high_memory - PAGE_OFFSET + PAGE_SIZE; + printk(KERN_INFO "#######high memory %lu, size_t %llu\n", + (unsigned long long)high_memory, (size_t)high_memory); + if (proc_root_kcore) + printk(KERN_INFO "#######kcore size %lu, " + "PAGE_OFFSET %lu, PAGE_SIZE %lu\n", + proc_root_kcore->size, + PAGE_OFFSET, PAGE_SIZE); return 0; } module_init(proc_kcore_init);