projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bac4cff
)
powerpc/ptdump: Display _PAGE_READ and _PAGE_WRITE
author
Christophe Leroy
<christophe.leroy@csgroup.eu>
Mon, 25 Sep 2023 18:31:49 +0000
(20:31 +0200)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Thu, 19 Oct 2023 06:12:47 +0000
(17:12 +1100)
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
arch/powerpc/mm/ptdump/shared.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/mm/ptdump/shared.c
b/arch/powerpc/mm/ptdump/shared.c
index 5ff101654c45b350cd6ba327a012730434face58..39c30c62b7ea76deb4ae162f01be6263fb0fbaf9 100644
(file)
--- a/
arch/powerpc/mm/ptdump/shared.c
+++ b/
arch/powerpc/mm/ptdump/shared.c
@@
-11,10
+11,15
@@
static const struct flag_info flag_array[] = {
{
- .mask = _PAGE_R
W
,
+ .mask = _PAGE_R
EAD
,
.val = 0,
- .set = "r ",
- .clear = "rw",
+ .set = " ",
+ .clear = "r",
+ }, {
+ .mask = _PAGE_WRITE,
+ .val = 0,
+ .set = " ",
+ .clear = "w",
}, {
.mask = _PAGE_EXEC,
.val = _PAGE_EXEC,