Received: by 2002:a17:90a:9307:0:0:0:0 with SMTP id p7csp2838565pjo; Mon, 16 Mar 2020 05:40:07 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtxI9NnOVbp16ORZ8gIyhh2n+cgx4BukwC6pXbOCl/e88/VImulxyn/lsPnq7EIrdxY2K/l X-Received: by 2002:a05:6808:8:: with SMTP id u8mr16512075oic.37.1584362407702; Mon, 16 Mar 2020 05:40:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584362407; cv=none; d=google.com; s=arc-20160816; b=Ir1wBS9Io+BK7bvucX4m85YgbBSW0EvAB2Q5JO51HwIJCx28PTZDFs/iKcpCMwkZFL pO15vvX4PVoR4vFOERRa9OPn1xyEDjKXTwjM1X5OJF5dJAcZaRXGiw71r716upZLNy5T 8mFWnh4XKRax0K5Hx8HzbozwuDz12Iw85RgKT9abPLS/vY5PJPqdtzrsiJggmFOcR9d/ VTbXcyVukuw/lKaDIP2+2UOxNC63vIEoiTnDvyiO77z5wsZsElOQcG7FoE8YxMZW7W5y 38Lb+4qMBZVrLQCkJvKa9JpbaWsxVwlsmAR34WBaMlfr6mOWyjOKPIyVYgqWhDLlxR9X k3dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:references :in-reply-to:message-id:dkim-signature; bh=KH3XUMgtMi4a2Lmwnb7mJPyqdkMUvSoWpHXEJYg9UDA=; b=hTI/F7cLW45na3hkbTw8AKeiVODegjK0+ydU3cUn7dx4EzwTPm/8v2tYrFkqomU1KS HWAVkjguJv2jqDoAnwr5IqX3cJ2pz20SPeD3W+SHVpB1ygOiqo73GUFnG4Brdwo7O3q/ DJG/Zim5WuEtO5a5rNRTPzalAm5tmsjw1BXTzVzXUxd1RDD50t5NX7Oe6nbiiXKIA9sS J+UwtWfY4rD1CkjdM3lCjDvEW2CH08pZN8QrAtswpioHV82aWqox3erIwRm4i2nWZ2/S 3K1wNimvOx3sodlepGLCeUW4npBjc3/Gw6TRi3/XT79S+Sn+d+X6r1ARNgbM3f5xUDl1 9W6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=uTtly7AG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q9si10224036otg.266.2020.03.16.05.39.55; Mon, 16 Mar 2020 05:40:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=uTtly7AG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731464AbgCPMiK (ORCPT + 99 others); Mon, 16 Mar 2020 08:38:10 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:63177 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731073AbgCPMfz (ORCPT ); Mon, 16 Mar 2020 08:35:55 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 48gwkr4Lykz9tygV; Mon, 16 Mar 2020 13:35:48 +0100 (CET) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=uTtly7AG; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id kl9NXhfFwCMT; Mon, 16 Mar 2020 13:35:48 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 48gwkr38x3z9tyg5; Mon, 16 Mar 2020 13:35:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1584362148; bh=KH3XUMgtMi4a2Lmwnb7mJPyqdkMUvSoWpHXEJYg9UDA=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=uTtly7AGgIOaNdLr1X8cM31eBqNFKPBVhX+2WR/4SiuFJ5LnqAxiiE2a3CVIkPrIW tspUEilOUfDkgWJ4iDvMVG49DG6Ac1V1HO7/DuwSkulR6gK7ex+XqW55coYobP+wqM uwO1WkVg7CmNPuCf7BaQJ35rgli+vIGyzaf948vA= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 6846D8B7CB; Mon, 16 Mar 2020 13:35:53 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id b0OA7Uc3gOiN; Mon, 16 Mar 2020 13:35:53 +0100 (CET) Received: from pc16570vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.230.100]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 398038B7D2; Mon, 16 Mar 2020 13:35:53 +0100 (CET) Received: by pc16570vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 318A565595; Mon, 16 Mar 2020 12:35:53 +0000 (UTC) Message-Id: In-Reply-To: References: From: Christophe Leroy Subject: [PATCH v1 08/46] powerpc/ptdump: Limit size of flags text to 1/2 chars on PPC32 To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Mon, 16 Mar 2020 12:35:53 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In order to have all flags fit on a 80 chars wide screen, reduce the flags to 1 char (2 where ambiguous). No cache is 'i' User is 'ur' (Supervisor would be sr) Shared (for 8xx) becomes 'sh' (it was 'user' when not shared but that was ambiguous because that's not entirely right) Signed-off-by: Christophe Leroy --- arch/powerpc/mm/ptdump/8xx.c | 33 ++++++++++++++++--------------- arch/powerpc/mm/ptdump/shared.c | 35 +++++++++++++++++---------------- 2 files changed, 35 insertions(+), 33 deletions(-) diff --git a/arch/powerpc/mm/ptdump/8xx.c b/arch/powerpc/mm/ptdump/8xx.c index 9e2d8e847d6e..ca9ce94672f5 100644 --- a/arch/powerpc/mm/ptdump/8xx.c +++ b/arch/powerpc/mm/ptdump/8xx.c @@ -12,9 +12,9 @@ static const struct flag_info flag_array[] = { { .mask = _PAGE_SH, - .val = 0, - .set = "user", - .clear = " ", + .val = _PAGE_SH, + .set = "sh", + .clear = " ", }, { .mask = _PAGE_RO | _PAGE_NA, .val = 0, @@ -30,37 +30,38 @@ static const struct flag_info flag_array[] = { }, { .mask = _PAGE_EXEC, .val = _PAGE_EXEC, - .set = " X ", - .clear = " ", + .set = "x", + .clear = " ", }, { .mask = _PAGE_PRESENT, .val = _PAGE_PRESENT, - .set = "present", - .clear = " ", + .set = "p", + .clear = " ", }, { .mask = _PAGE_GUARDED, .val = _PAGE_GUARDED, - .set = "guarded", - .clear = " ", + .set = "g", + .clear = " ", }, { .mask = _PAGE_DIRTY, .val = _PAGE_DIRTY, - .set = "dirty", - .clear = " ", + .set = "d", + .clear = " ", }, { .mask = _PAGE_ACCESSED, .val = _PAGE_ACCESSED, - .set = "accessed", - .clear = " ", + .set = "a", + .clear = " ", }, { .mask = _PAGE_NO_CACHE, .val = _PAGE_NO_CACHE, - .set = "no cache", - .clear = " ", + .set = "i", + .clear = " ", }, { .mask = _PAGE_SPECIAL, .val = _PAGE_SPECIAL, - .set = "special", + .set = "s", + .clear = " ", } }; diff --git a/arch/powerpc/mm/ptdump/shared.c b/arch/powerpc/mm/ptdump/shared.c index f7ed2f187cb0..44a8a64a664f 100644 --- a/arch/powerpc/mm/ptdump/shared.c +++ b/arch/powerpc/mm/ptdump/shared.c @@ -13,8 +13,8 @@ static const struct flag_info flag_array[] = { { .mask = _PAGE_USER, .val = _PAGE_USER, - .set = "user", - .clear = " ", + .set = "ur", + .clear = " ", }, { .mask = _PAGE_RW, .val = _PAGE_RW, @@ -23,42 +23,43 @@ static const struct flag_info flag_array[] = { }, { .mask = _PAGE_EXEC, .val = _PAGE_EXEC, - .set = " X ", - .clear = " ", + .set = "x", + .clear = " ", }, { .mask = _PAGE_PRESENT, .val = _PAGE_PRESENT, - .set = "present", - .clear = " ", + .set = "p", + .clear = " ", }, { .mask = _PAGE_GUARDED, .val = _PAGE_GUARDED, - .set = "guarded", - .clear = " ", + .set = "g", + .clear = " ", }, { .mask = _PAGE_DIRTY, .val = _PAGE_DIRTY, - .set = "dirty", - .clear = " ", + .set = "d", + .clear = " ", }, { .mask = _PAGE_ACCESSED, .val = _PAGE_ACCESSED, - .set = "accessed", - .clear = " ", + .set = "a", + .clear = " ", }, { .mask = _PAGE_WRITETHRU, .val = _PAGE_WRITETHRU, - .set = "write through", - .clear = " ", + .set = "w", + .clear = " ", }, { .mask = _PAGE_NO_CACHE, .val = _PAGE_NO_CACHE, - .set = "no cache", - .clear = " ", + .set = "i", + .clear = " ", }, { .mask = _PAGE_SPECIAL, .val = _PAGE_SPECIAL, - .set = "special", + .set = "s", + .clear = " ", } }; -- 2.25.0