[v3,1/2] powerpc/mm: Dump linux pagetables

Christophe LEROY christophe.leroy at c-s.fr
Thu Apr 13 22:51:57 AEST 2017



Le 13/04/2017 à 13:31, Michael Ellerman a écrit :
> Christophe LEROY <christophe.leroy at c-s.fr> writes:
>
>> Hi Rashmica,
>>
>> Le 17/11/2016 à 13:03, Michael Ellerman a écrit :
>>> On Fri, 2016-27-05 at 05:48:59 UTC, Rashmica Gupta wrote:
>>>> Useful to be able to dump the kernels page tables to check permissions
>>>> and memory types - derived from arm64's implementation.
>>>>
>>>> Add a debugfs file to check the page tables. To use this the PPC_PTDUMP
>>>> config option must be selected.
>>>>
>>>> Signed-off-by: Rashmica Gupta <rashmicy at gmail.com>
>>>
>>> Applied to powerpc next, thanks.
>>>
>>> https://git.kernel.org/powerpc/c/8eb07b187000d48152c4ef97f075bd
>>
>> For your information, compilation fails on mpc885_ads_defconfig when we
>> activate PPC_PTDUMP:
>>
>>    CC      arch/powerpc/mm/dump_linuxpagetables.o
>> arch/powerpc/mm/dump_linuxpagetables.c: In function 'walk_pagetables':
>> arch/powerpc/mm/dump_linuxpagetables.c:369:10: error: 'KERN_VIRT_START'
>> undeclared (first use in this function)
>
> Yeah it's basically 64-bit only at the moment.
>
> I have a TODO for it: https://github.com/linuxppc/linux/issues/88
>
> But I haven't got around to doing it, maybe someone who has more
> interest in 32-bit will have time before me ;)

Well, I just did it a few minutes ago.

Christophe


More information about the Linuxppc-dev mailing list