Skip to content

Commit

Permalink
powerpc/ptdump: Display _PAGE_READ and _PAGE_WRITE
Browse files Browse the repository at this point in the history
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
  • Loading branch information
chleroy authored and mpe committed Oct 19, 2023
1 parent bac4cff commit ceaba66
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions arch/powerpc/mm/ptdump/shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@

static const struct flag_info flag_array[] = {
{
.mask = _PAGE_RW,
.mask = _PAGE_READ,
.val = 0,
.set = "r ",
.clear = "rw",
.set = " ",
.clear = "r",
}, {
.mask = _PAGE_WRITE,
.val = 0,
.set = " ",
.clear = "w",
}, {
.mask = _PAGE_EXEC,
.val = _PAGE_EXEC,
Expand Down

0 comments on commit ceaba66

Please sign in to comment.