From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 598C6CDB47E for ; Fri, 13 Oct 2023 19:05:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E96FA80066; Fri, 13 Oct 2023 15:05:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E45748D0015; Fri, 13 Oct 2023 15:05:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D0D4980066; Fri, 13 Oct 2023 15:05:28 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id BB6A28D0015 for ; Fri, 13 Oct 2023 15:05:28 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 8F795B5371 for ; Fri, 13 Oct 2023 19:05:28 +0000 (UTC) X-FDA: 81341366736.11.845B0C6 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf09.hostedemail.com (Postfix) with ESMTP id 9F40D14022F for ; Fri, 13 Oct 2023 19:04:11 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=f+LlBr4N; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf09.hostedemail.com: domain of audra@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=audra@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1697223851; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=4XvnTft2MmJ8VY609+be7Cy1Q085UedMhCWzkSGYTRU=; b=KgGnP/uZHY3DUPRpIAiJaf8G/6qSur4F8on6r/OmowDtfLkrVbu4pmnkewTI7DuO66V4UD AYCT7pWPAA5kM20iRs2IXiF/PvhPIuvdyyQLhbSmskMe4pfiANN1jr6casYkzfwGpUKxm5 eOV4LWWxgukVTy2rdXKj+EGP5xHha44= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=f+LlBr4N; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf09.hostedemail.com: domain of audra@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=audra@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697223851; a=rsa-sha256; cv=none; b=cznLpGHC43VFVTDEkTO2fVE9SGzart7njE8aWGkwaeOaiFYqae7fr/tfu+J0tVp1V8+Mn6 S2XXb0EFADG0azOHTc1ANvNCTVLJ8Wm4NN/XuiNs33gOAZ0yuCvvoIkal9V93gyQWtxuz0 ZbzPcBxAs0yHFe7xWxW3BoZpDe9zZ9w= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697223850; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4XvnTft2MmJ8VY609+be7Cy1Q085UedMhCWzkSGYTRU=; b=f+LlBr4NKgz3smdw9YU6pneAx0wgVT9e4MGKrYsL5UVVzhval044duDcmnLjlWNxQFZO8Y hJ05sxZeZTJaQtKijm8mcjANMoxGtamkCiad7Tp13aZnEg0xo6pcasgZlpCcah2XStfRrM iaE5ug6CGReAduC6eSJx7/vmtjcXYxs= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-447-eVID_ZQ_N8aIESBG-T1o-A-1; Fri, 13 Oct 2023 15:04:07 -0400 X-MC-Unique: eVID_ZQ_N8aIESBG-T1o-A-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1D0CC801E62; Fri, 13 Oct 2023 19:04:07 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.22.33.110]) by smtp.corp.redhat.com (Postfix) with ESMTP id D69472157F5A; Fri, 13 Oct 2023 19:04:06 +0000 (UTC) From: Audra Mitchell To: linux-mm@kvack.org Cc: raquini@redhat.com, akpm@linux-foundation.org, djakov@kernel.org, vbabka@suse.cz, linux-kernel@vger.kernel.org Subject: [PATCH 5/5] tools/mm: Update the usage output to be more organized Date: Fri, 13 Oct 2023 15:03:49 -0400 Message-ID: <20231013190350.579407-6-audra@redhat.com> In-Reply-To: <20231013190350.579407-1-audra@redhat.com> References: <20231013190350.579407-1-audra@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 9F40D14022F X-Stat-Signature: ba9nmyfyscrejx6s6ragydas1y5uqhky X-HE-Tag: 1697223851-914413 X-HE-Meta: U2FsdGVkX1+FL0gJXl/VeKl2cmCc8uRwKmKowncKFI7YXgv4Ck6NAz8GB4gtamtbT0+ApjKLzqZAT6i67SUiJvFRrka5O+eq6CdrDg+7jopa4kCRVkCqKDvGzWIQOBUDAlEOcwgATNQonCuc6yLxJsBRt6FempsUtshptSRTWYeL0/PGhmY1FyWPqMY0ISa5bGu+XwFP/fOsy3b+YNXdhmlBSV8r4MDK6N9OmIhOy8dmr55i6Im2yAaljT84E/it4qLMAYDJ+tJLBkcjg4i0TLlPP9LgMrJfA895pjep9LjGrJ1eTGm/8HDCWZi8j//cZb4vX5x/COT17uo6SE8ejTbRWieEPu7WSjxCQpf4aulGS5wutx8wQOigEUqF3M1/yDMz/ZWldq+3eaden//cM3WEWguU1wBO8RXPWjKLtWVpKnlYwrmkoHKgLi02wSQtIX9AtWDbtoWr5eVyg2Xiv0YN/T5ipofSrqzZ6iLLzYhM99SfvEa5EpuPuLYkg7w6pB+TSe4Q3KlaL+seYrOLSaUMZAIrAFnEIp/VOVm7ngbro/eHovH8Jp9nghdkvo4+ES+H/UT9dAtQCoyTLXBCMeUygAngW5+DuBfTZQhWCVoYUzzKq46e7FJJGinW5qQxZf6XdT6z7fCeinl45QQThxsdxUZD0/qDNtkgK87orpLKopFcylQQOcHv++EpnbsafaGLoTay3MhOG8/qXIipFbnEmoD4/LC4NF1Y8hoDpUOWVAlh0oKW2YDCdRv31WRBt8X/pqb+dXcZkZvq8Bif+FoitTu1mqCS2uEWtV/iwITT5KeW+s1pvzNwCXbKsSo57TNumIBBNXeVnISD1sTF0Vun55rXMkJ8UZh0rBaj3Px3gJuWUn8aaG2kNyFgrO/Zl6u8r96ii0ZwNG8gV0hLFktTKKLedxpVrDSy7CvBzZj47Ad/mvzhuh50wcmf53bknNBKmU34Aq5pclBz4J2 8Y98OMbx 1rqCGOYkq+XhBEH/REIYwHbMEzTDDAhd7OvspicT2GXge15ond4uzDlkCUDFkQlEUIzbe1PGzwYw80psxtbQhG7NZHVxSV0icjCTfNpU6xKa2cH1c187uwfIB/Kyl4J1FNrIpRMGou9Hy/pL36px62wopvsVQm9+cDt8pI3xYKSQwrsalrIUTiKvpOB1ftgcXiH8VEOYz7fyrw7A= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000316, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Organize the usage options alphabetically and improve the description of some options. Also separate the more complicated cull options from the single use compare options. Signed-off-by: Audra Mitchell --- tools/mm/page_owner_sort.c | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/tools/mm/page_owner_sort.c b/tools/mm/page_owner_sort.c index 5a260096ebaa..e1f264444342 100644 --- a/tools/mm/page_owner_sort.c +++ b/tools/mm/page_owner_sort.c @@ -634,19 +634,26 @@ static void print_allocator(FILE *out, int allocator) static void usage(void) { printf("Usage: ./page_owner_sort [OPTIONS] \n" - "-m\t\tSort by total memory.\n" - "-s\t\tSort by the stack trace.\n" - "-t\t\tSort by times (default).\n" - "-p\t\tSort by pid.\n" - "-P\t\tSort by tgid.\n" - "-n\t\tSort by task command name.\n" - "-a\t\tSort by memory allocate time.\n" - "-d\t\tPrint debug information.\n" - "--pid \tSelect by pid. This selects the information of blocks whose process ID numbers appear in .\n" - "--tgid \tSelect by tgid. This selects the information of blocks whose Thread Group ID numbers appear in .\n" - "--name \n\t\tSelect by command name. This selects the information of blocks whose command name appears in .\n" - "--cull \tCull by user-defined rules. is a single argument in the form of a comma-separated list with some common fields predefined\n" - "--sort \tSpecify sort order as: [+|-]key[,[+|-]key[,...]]\n" + "-a\t\t\tSort by memory allocation time.\n" + "-m\t\t\tSort by total memory.\n" + "-n\t\t\tSort by task command name.\n" + "-p\t\t\tSort by pid.\n" + "-P\t\t\tSort by tgid.\n" + "-s\t\t\tSort by the stacktrace.\n" + "-t\t\t\tSort by number of times record is seen (default).\n\n" + "--pid \t\tSelect by pid. This selects the information" + " of\n\t\t\tblocks whose process ID numbers appear in .\n" + "--tgid \tSelect by tgid. This selects the information" + " of\n\t\t\tblocks whose Thread Group ID numbers appear in " + ".\n" + "--name \tSelect by command name. This selects the" + " information\n\t\t\tof blocks whose command name appears in" + " .\n" + "--cull \t\tCull by user-defined rules. is a " + "single\n\t\t\targument in the form of a comma-separated list " + "with some\n\t\t\tcommon fields predefined (pid, tgid, comm, " + "stacktrace, allocator)\n" + "--sort \t\tSpecify sort order as: [+|-]key[,[+|-]key[,...]]\n" ); } -- 2.41.0