[Crash-utility] Re: [PATCH] arm64: fix the determination of vmemmap and struct_page_size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Tao,
> I would prefer to exchange the if else sequence, to be:
> 
> /* The global symbol of vmemmap is removed since kernel commit 7bc1a0f9e1765 */
> if (kernel_symbol_exists("vmemmap"))
>     ms->vmemmap = symbol_value("vmemmap");
> else
>     ms->vmemmap = ms->vmemmap_vaddr - ((ms->phys_offset >>
> machdep->pageshift) * ms->struct_page_size);
> 
> This would be more readable, if a symbol exists, then read the symbol,
> otherwise calc it out.
> 
I agree with your exchange.
Thanks
Qiwu
--
Crash-utility mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxxxxxx
https://${domain_name}/admin/lists/devel.lists.crash-utility.osci.io/
Contribution Guidelines: https://github.com/crash-utility/crash/wiki




[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux