diff options
| author | Christophe Leroy <christophe.leroy@c-s.fr> | 2019-08-14 12:36:10 +0000 |
|---|---|---|
| committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-08-20 21:22:08 +1000 |
| commit | e033829d2aaad85cb7cf46986c3be0bcc72f791e (patch) | |
| tree | 59c0ce2d27f2246ee49ae60a75a1ec58447e24ae /tools/perf/scripts/python/bin | |
| parent | 7c7a532ba3fc51bf9527d191fb410786c1fdc73c (diff) | |
| download | linux-e033829d2aaad85cb7cf46986c3be0bcc72f791e.tar.gz linux-e033829d2aaad85cb7cf46986c3be0bcc72f791e.zip | |
powerpc/ptdump: fix walk_pagetables() address mismatch
walk_pagetables() always walk the entire pgdir from address 0
but considers PAGE_OFFSET or KERN_VIRT_START as the starting
address of the walk, resulting in a possible mismatch in the
displayed addresses.
Ex: on PPC32, when KERN_VIRT_START was locally defined as
PAGE_OFFSET, ptdump displayed 0x80000000
instead of 0xc0000000 for the first kernel page,
because 0xc0000000 + 0xc0000000 = 0x80000000
Start the walk at st->start_address instead of starting at 0.
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/5aa2ac513295f594cce8ddb1c649f61947bd063d.1565786091.git.christophe.leroy@c-s.fr
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
