Re: [PATCH 3/3] ppc64: Add MMU type info in machdep command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----Original Message-----
> This adds MMU type info in machdep command.
> 
> Signed-off-by: Ritesh Harjani <riteshh@xxxxxxxxxxxxx>

It seems that the "help -m" command also shows a similar information,
but it's ok.

        if (machdep->flags & RADIX_MMU)
                fprintf(fp, "%sRADIX_MMU", others++ ? "|" : "");

Acked-by: Kazuhito Hagio <k-hagio-ab@xxxxxxx>

Thanks,
Kazu

> ---
>  ppc64.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/ppc64.c b/ppc64.c
> index 31003a1..7c3be9b 100644
> --- a/ppc64.c
> +++ b/ppc64.c
> @@ -3027,6 +3027,8 @@ ppc64_display_machine_stats(void)
>          else
>                  fprintf(fp, "(unknown)\n");
>          fprintf(fp, "                 HZ: %d\n", machdep->hz);
> +		fprintf(fp, "                MMU: %s\n", machdep->flags & RADIX_MMU
> +												? "RADIX" :
> "HASH");
>          fprintf(fp, "          PAGE SIZE: %d\n", PAGESIZE());
>  //      fprintf(fp, "      L1 CACHE SIZE: %d\n", l1_cache_size());
>          fprintf(fp, "KERNEL VIRTUAL BASE: %lx\n", machdep->kvbase);
> --
> 2.31.1
> 
> --
> Crash-utility mailing list
> Crash-utility@xxxxxxxxxx
> https://listman.redhat.com/mailman/listinfo/crash-utility


--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/crash-utility




[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux