* [PATCH] arm64/ptdump:display the Linear Mapping start marker
@ 2021-02-02 15:07 Hailong Liu
2021-02-02 19:39 ` Randy Dunlap
2021-02-02 21:25 ` Will Deacon
0 siblings, 2 replies; 4+ messages in thread
From: Hailong Liu @ 2021-02-02 15:07 UTC (permalink / raw)
To: Catalin Marinas
Cc: Will Deacon, Andrew Morton, Steven Price, Vincenzo Frascino,
Andrey Konovalov, Mark Brown, Anshuman Khandual,
linux-arm-kernel, linux-kernel, Hailong Liu
From: Hailong Liu <liu.hailong6@zte.com.cn>
The current /sys/kernel/debug/kernel_page_tables does not display the
*Linear Mapping start* marker on arm64, which I think should be paired
with the *Linear Mapping start* marker.
Since *Linear Mapping start* is the first marker, use level=-1 to display it.
Signed-off-by: Hailong Liu <liu.hailong6@zte.com.cn>
---
arch/arm64/mm/ptdump.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/mm/ptdump.c b/arch/arm64/mm/ptdump.c
index 04137a8f3d2d..0e050d76b83a 100644
--- a/arch/arm64/mm/ptdump.c
+++ b/arch/arm64/mm/ptdump.c
@@ -324,6 +324,7 @@ void ptdump_walk(struct seq_file *s, struct ptdump_info *info)
st = (struct pg_state){
.seq = s,
.marker = info->markers,
+ .level = -1,
.ptdump = {
.note_page = note_page,
.range = (struct ptdump_range[]){
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] arm64/ptdump:display the Linear Mapping start marker
2021-02-02 15:07 [PATCH] arm64/ptdump:display the Linear Mapping start marker Hailong Liu
@ 2021-02-02 19:39 ` Randy Dunlap
2021-02-03 14:13 ` Hailong Liu
2021-02-02 21:25 ` Will Deacon
1 sibling, 1 reply; 4+ messages in thread
From: Randy Dunlap @ 2021-02-02 19:39 UTC (permalink / raw)
To: Hailong Liu, Catalin Marinas
Cc: Will Deacon, Andrew Morton, Steven Price, Vincenzo Frascino,
Andrey Konovalov, Mark Brown, Anshuman Khandual,
linux-arm-kernel, linux-kernel, Hailong Liu
On 2/2/21 7:07 AM, Hailong Liu wrote:
> From: Hailong Liu <liu.hailong6@zte.com.cn>
>
> The current /sys/kernel/debug/kernel_page_tables does not display the
> *Linear Mapping start* marker on arm64, which I think should be paired
> with the *Linear Mapping start* marker.
paired with itself? just asking...
>
> Since *Linear Mapping start* is the first marker, use level=-1 to display it.
>
> Signed-off-by: Hailong Liu <liu.hailong6@zte.com.cn>
> ---
> arch/arm64/mm/ptdump.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/mm/ptdump.c b/arch/arm64/mm/ptdump.c
> index 04137a8f3d2d..0e050d76b83a 100644
> --- a/arch/arm64/mm/ptdump.c
> +++ b/arch/arm64/mm/ptdump.c
> @@ -324,6 +324,7 @@ void ptdump_walk(struct seq_file *s, struct ptdump_info *info)
> st = (struct pg_state){
> .seq = s,
> .marker = info->markers,
> + .level = -1,
> .ptdump = {
> .note_page = note_page,
> .range = (struct ptdump_range[]){
>
--
~Randy
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] arm64/ptdump:display the Linear Mapping start marker
2021-02-02 15:07 [PATCH] arm64/ptdump:display the Linear Mapping start marker Hailong Liu
2021-02-02 19:39 ` Randy Dunlap
@ 2021-02-02 21:25 ` Will Deacon
1 sibling, 0 replies; 4+ messages in thread
From: Will Deacon @ 2021-02-02 21:25 UTC (permalink / raw)
To: Catalin Marinas, Hailong Liu
Cc: kernel-team, Will Deacon, Andrey Konovalov, Mark Brown,
Vincenzo Frascino, Andrew Morton, Steven Price, linux-kernel,
Anshuman Khandual, Hailong Liu, linux-arm-kernel
On Tue, 2 Feb 2021 23:07:49 +0800, Hailong Liu wrote:
> The current /sys/kernel/debug/kernel_page_tables does not display the
> *Linear Mapping start* marker on arm64, which I think should be paired
> with the *Linear Mapping start* marker.
>
> Since *Linear Mapping start* is the first marker, use level=-1 to display it.
Applied to arm64 (for-next/misc), thanks!
[1/1] arm64/ptdump:display the Linear Mapping start marker
https://git.kernel.org/arm64/c/b9ba680969d1
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] arm64/ptdump:display the Linear Mapping start marker
2021-02-02 19:39 ` Randy Dunlap
@ 2021-02-03 14:13 ` Hailong Liu
0 siblings, 0 replies; 4+ messages in thread
From: Hailong Liu @ 2021-02-03 14:13 UTC (permalink / raw)
To: Randy Dunlap, Catalin Marinas, Will Deacon
Cc: Andrew Morton, Steven Price, Vincenzo Frascino, Andrey Konovalov,
Mark Brown, Anshuman Khandual, linux-arm-kernel, linux-kernel,
Hailong Liu
On 2/3/21 3:39 AM, Randy Dunlap wrote:
> On 2/2/21 7:07 AM, Hailong Liu wrote:
>> From: Hailong Liu <liu.hailong6@zte.com.cn>
>>
>> The current /sys/kernel/debug/kernel_page_tables does not display the
>> *Linear Mapping start* marker on arm64, which I think should be paired
>> with the *Linear Mapping start* marker.
>
> paired with itself? just asking.
Oh,sorry, it's a mistake. My original intention is to express that "start"
paired with "end".
Thanks for pointing out my mistake, and thank Will for fixing this.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-02-03 16:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-02 15:07 [PATCH] arm64/ptdump:display the Linear Mapping start marker Hailong Liu
2021-02-02 19:39 ` Randy Dunlap
2021-02-03 14:13 ` Hailong Liu
2021-02-02 21:25 ` Will Deacon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).