Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/ptdump: Display _PAGE_READ and _PAGE_WRITE

Instead of always displaying either 'rw' or 'r ' depending on
_PAGE_RW, display 'r' or ' ' for _PAGE_READ and 'w' or ' '
for _PAGE_WRITE.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/dd8201a0f8fd87ce62a7ff2edc958b604b8ec3c0.1695659959.git.christophe.leroy@csgroup.eu

authored by

Christophe Leroy and committed by
Michael Ellerman
ceaba662 bac4cffc

+8 -3
+8 -3
arch/powerpc/mm/ptdump/shared.c
··· 11 11 12 12 static const struct flag_info flag_array[] = { 13 13 { 14 - .mask = _PAGE_RW, 14 + .mask = _PAGE_READ, 15 15 .val = 0, 16 - .set = "r ", 17 - .clear = "rw", 16 + .set = " ", 17 + .clear = "r", 18 + }, { 19 + .mask = _PAGE_WRITE, 20 + .val = 0, 21 + .set = " ", 22 + .clear = "w", 18 23 }, { 19 24 .mask = _PAGE_EXEC, 20 25 .val = _PAGE_EXEC,