Received: by 2002:a05:6512:3d0e:0:0:0:0 with SMTP id d14csp40485lfv; Tue, 12 Apr 2022 16:25:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLzMyCImVirAnvdeSrgnkDGTx/Q5FP2bfpKBMISXIDT2jTLHxSiwGLiPyD6njtZdPBPmlN X-Received: by 2002:a63:6e07:0:b0:398:1337:d99e with SMTP id j7-20020a636e07000000b003981337d99emr31979638pgc.23.1649805925265; Tue, 12 Apr 2022 16:25:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649805925; cv=none; d=google.com; s=arc-20160816; b=B2ZOd9KnN9iITc8s7hhsMXCXI55QOE2OElwG12Xf/90oAkw1xxu1NhVmMNb8H/cLd4 Hg1dSmf8hJjYYHbmnXTXXS3vBN+zZI+9X046ms5X4WbEOtckXReWOsRDNwNt8UCQCNr6 Nr3VGZ3MJZQ8ts02tY5b8nqJ6/WwyeqMOCIpgbjsSL+wRVgn3g6CWmvgqc359p44tiM6 ou+2gIMfcFVoVb5nhKlYHDsFXOH42nNvuDCi5QJzzr7oI3JnNgXoCflcO+y/JqBJjGjh ydHurQaOiXwgcfZtedJYOz/fhEumFa/csCv/2Je9YfaTwAi/4ZMbyQjiYLBa5lkh5bnQ KjTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=xF0wKXkU8FoLYlGZdgtlIPYBBmN0huCdWW0zj4N8ric=; b=LfXVeibeSg0M+rSf0isy4pU//MvGMIKejEPrdo1zayiMp7m7Ir47KC7rk7uNnqNfNH ayDy5C9c6RvSVYo+8WAqzMSwtbmsBZSo7O7nCehpZUTTESCeYhg81SzUgGRnYkHKHO6X b8NQnvhR8xnDxGqcvJZB0QvAUW0vxOEPIitNBGl4KR4IFacLxRxYOq0xoBeMFcJpQsNf pGDRaqxkRf3EtiAmL2HmROnYgZ1p+ptyzLXsxpSbEFft1LWvZi9FoX+jluYsOoNb0qUy qdh/INa5bkZn11LRPvehdMoS8R+88hrEjf9ASKTJZb9Mdpz0V3Bp/U7BFQHGFJoiyuIE RDKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q3-20020a170902b10300b001542a6e4c9bsi12605666plr.485.2022.04.12.16.25.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 16:25:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6F1D61A846A; Tue, 12 Apr 2022 14:18:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344033AbiDLKWm (ORCPT + 99 others); Tue, 12 Apr 2022 06:22:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380614AbiDLKUv (ORCPT ); Tue, 12 Apr 2022 06:20:51 -0400 Received: from mail.meizu.com (edge05.meizu.com [157.122.146.251]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8106D47AE7; Tue, 12 Apr 2022 02:25:18 -0700 (PDT) Received: from IT-EXMB-1-125.meizu.com (172.16.1.125) by mz-mail12.meizu.com (172.16.1.108) with Microsoft SMTP Server (TLS) id 14.3.487.0; Tue, 12 Apr 2022 17:25:17 +0800 Received: from meizu.meizu.com (172.16.137.70) by IT-EXMB-1-125.meizu.com (172.16.1.125) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.14; Tue, 12 Apr 2022 17:25:15 +0800 From: Haowen Bai To: , CC: , , , Subject: [PATCH V2] docs/zh_CN: sync with original text Documentation/vm/page_owner.rst Date: Tue, 12 Apr 2022 17:25:14 +0800 Message-ID: <1649755514-949-1-git-send-email-baihaowen@meizu.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1649733951-8827-1-git-send-email-baihaowen@meizu.com> References: <1649733951-8827-1-git-send-email-baihaowen@meizu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="y" Content-Transfer-Encoding: 8bit X-Originating-IP: [172.16.137.70] X-ClientProxiedBy: IT-EXMB-1-126.meizu.com (172.16.1.126) To IT-EXMB-1-125.meizu.com (172.16.1.125) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As the tools/vm/page_owner_sort added some feature and original text updated, sync the translation of zh_CN. Signed-off-by: Haowen Bai --- V1->V2: fix whitespace warning. Documentation/translations/zh_CN/vm/page_owner.rst | 54 +++++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/Documentation/translations/zh_CN/vm/page_owner.rst b/Documentation/translations/zh_CN/vm/page_owner.rst index 9e951fabba9d..0d4f94034db6 100644 --- a/Documentation/translations/zh_CN/vm/page_owner.rst +++ b/Documentation/translations/zh_CN/vm/page_owner.rst @@ -103,14 +103,66 @@ page owner在默认情况下是禁用的。所以,如果你想使用它,你 -m 按总内存排序 -p 按pid排序。 -P 按tgid排序。 + -n 按任务名称排序。 -r 按内存释放时间排序。 -s 按堆栈跟踪排序。 -t 按时间排序(默认)。 + --sort 指定排序顺序。排序语法是 [+|-]key[,[+|-]key[,...]]. 从 + **标准格式说明符**部分选择一个键。"+" 是可选的,因为默认方向是增加数字或字典顺序。 + 允许混合使用缩写键和全称键。 + + Examples: + ./page_owner_sort --sort=n,+pid,-tgid + ./page_owner_sort --sort=at 其它函数: Cull: - -c 通过比较堆栈跟踪而不是总块来进行剔除。 + --cull + 指定筛选规则。筛选语法是 key[,key[,...]]。在**标准格式说明符**部分选择一个多字母键 + + 是逗号分隔列表形式的单个参数,它提供了一种指定单个筛选规则的方法。下面的**标准格式说明 + 符**部分描述了可识别的关键字。 可以由键 k1,k2, ... 顺序指定,如下面的 + STANDARD SORT KEYS 部分所述。允许混合使用缩写形式和完整形式的键。 + Examples: + ./page_owner_sort --cull=stacktrace + ./page_owner_sort --cull=st,pid,name + ./page_owner_sort --cull=n,f Filter: -f 过滤掉内存已被释放的块的信息。 + + Select: + --pid 通过 pid 进行选择。这将选择进程 ID 号出现在 中的块。 + --tgid 通过 tgid 进行选择。这将选择线程组 ID 号出现在 中的块。 + --name 按任务名称选择。这将选择任务名称出现在 中的块。 + + 是逗号分隔列表形式的单参数,它提供了一种指定单个选择规则的方法。 + + + Examples: + ./page_owner_sort --pid=1 + ./page_owner_sort --tgid=1,2,3 + ./page_owner_sort --name name1,name2 + + 标准格式说明符 +========================== +--sort 选项: + + 缩写键 全称键 描述 + p pid 进程 ID + tg tgid 线程组 ID + n name 任务名称 + st stacktrace 页面分配的调用栈 + T txt 块的全文 + ft free_ts 页面被释放的时间戳 + at alloc_ts 页面分配的时间戳 + +--curl 选项: + + 缩写键 全称键 描述 + p pid 进程 ID + tg tgid 线程组 ID + n name 任务名称 + f free 该页面是否已被释放 + st stacktrace 页面分配的调用栈 -- 2.7.4