Re: [RFC] mm: direct mapping count in /proc/meminfo is error

2015-11-20 Thread Xishi Qiu
On 2015/11/20 16:43, Tang Chen wrote: > Hi Shi, > > Would you please share where did you add the printk debug info ? > Sure, at the end of init_mem_mapping(), I add a new function, like arch_report_meminfo(), just change "seq_printf" to "printk". Thanks, Xishi Qiu > Thanks. :) > > On 11/20/

Re: [RFC] mm: direct mapping count in /proc/meminfo is error

2015-11-20 Thread Tang Chen
Hi Shi, Would you please share where did you add the printk debug info ? Thanks. :) On 11/20/2015 04:17 PM, Xishi Qiu wrote: I find the direct mapping count in /proc/meminfo is error. The value should be equal to the size of init_memory_mapping which showed in boot log. I add some print to sh

[RFC] mm: direct mapping count in /proc/meminfo is error

2015-11-20 Thread Xishi Qiu
I find the direct mapping count in /proc/meminfo is error. The value should be equal to the size of init_memory_mapping which showed in boot log. I add some print to show direct_pages_count[] immediately after init_memory_mapping(). The reason is that we double counting. Here is the log(kernel