Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2397931rdh; Sun, 29 Oct 2023 14:24:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFXcUwCI6FxshBtvryzjJVi4h1Gx5PVz0URIQLhVuS7+V/BM0H5RdMHWDRdnUaKREuAfJeC X-Received: by 2002:a05:6e02:20c8:b0:34f:7779:df7f with SMTP id 8-20020a056e0220c800b0034f7779df7fmr11731171ilq.0.1698614641664; Sun, 29 Oct 2023 14:24:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698614641; cv=pass; d=google.com; s=arc-20160816; b=uBxwPoeWptJjXvXxiVtcPc2X70/1xX+gtp9sD5ltmtcw0bSKFPH8fpI1MtcIRfDfHJ cOsiIT+qfU1lIYoSSbhyg3md399sd2v13PGlG5A70hpKngmMVlCHMOAdHOtCvX8QW6nz imfvs/W1xlCJhg7X2xhR2a99dnitO6EhEHZyIKSLPjI6ib/Pxi0tTMQVjU9mXsmIqjTo TiO3IWvRZxQX5O8Q5i+Fy594BnpgCRgEaiwar8OOBIbcVKcptxQRcIa9UCjhnb8OLuKF tLmbBMfykeixdeHn7w919TxNW1Zxg/MPjiFPWbIS9sUgbsNi61f5rzLjw3Z0HsrKHkD2 Ky6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:subject:user-agent:date :message-id:dkim-signature; bh=6M0B9NbUlgDJsAPGo584eNpJCi4+0ld3rxL+zjZdXFI=; fh=MUrqgeiceIMQO5w2LtVSFKYtyblhM8XeoH0Lqe37eqI=; b=XutVfZRLhN0+9EIVUwtifWnPIp/5wo1wl5+PvLdPp9D6Y4VREexFYtUqMr+xNIxGtM P8H5PDGafCWejkkK2nxK1C57jYWeDh6N8kUKMMH3TpATFQPzn63CfCJcwIHlkIbFbJqe ljBE9m5+wt1SPDMTloXyO93WjWn+6F0ISALVI8+y6wwQ0oJFqJFp83WdiTrEBIhS5EGk BijPe0mpqq2+on9qV1Z87dfHodZBp4ppXUYusAhZIqXruZ+AVKZKXRzJlZAaLWFIFfFp 7kecGrVKF0FLSs0eEj1/Dsvgfi4U7Gv8jBkw40rQRmHJZ1jVQpd332Wl9T3LQ3ASqmHk DLmQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=e6FVjIVa; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id u195-20020a6279cc000000b00690feb23e3esi4035662pfc.17.2023.10.29.14.24.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 14:24:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=e6FVjIVa; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6F6C580A7E7B; Sun, 29 Oct 2023 14:24:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230360AbjJ2VXl (ORCPT + 99 others); Sun, 29 Oct 2023 17:23:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbjJ2VXk (ORCPT ); Sun, 29 Oct 2023 17:23:40 -0400 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04olkn2058.outbound.protection.outlook.com [40.92.75.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F13197; Sun, 29 Oct 2023 14:23:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JwBUCHu3Xg/cmieRr8RM3bIqXlJzMtkJ5CXUQrXvn1kt/dzP5mCoTDCJwyHh9h8kNUS52cIhvSQByRDVZ/dkuvmlxfODdnlpmXqIQ37MRcneikN4/tcdt9bPIQ29+gPdyDIp7BGQw0uh0mPmczp/B8k4LUCK9V8LZWasAwfAGDM4985nHOu8Q46kYd9LPVdVammrmsS++7Fqqxt7ZyXQzzZ891oy3VgNSgfeedA3h3MYkgj9rdyS1Thmp3SZoM3Ov2Jv9M8GdYnpcCgN4nZcI83x5JZP5n/k3cfXzohXQ4W30iGJWuSVBnSYbV1CScbb+vsP+zqyVxn2/pCWMiufqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6M0B9NbUlgDJsAPGo584eNpJCi4+0ld3rxL+zjZdXFI=; b=JhV+WnxQmzSwrRKNcwR+AcpcbwKTO/CHgUD6Qbs8mnUTcoxJfj9m7XipoVVAFm+cz1y6yPZ/1NW/MWmHo4mKxbXQruond4InvpboI5PKkJbv8N1H8kaK1rLtpan8hC2ZYfskel/01bILnudzzR4L+Fe/0HA9hWBur0ChrQojgg+09kCQR0HtlD5RI+Tvcqacp+PwrVkfNEWxRPQ2ZlRi+vgy9fqC2Ql8+3TsAo1tOfVEdhm0ahUKHA5N27vEN9/CFU5qnwbCKw/SvlU60txEGACUlKir17zUz3WCJD8zP5STCfloGngtn7MI7C3OcvrH6DbVN7kI0yEoLK/d7ci3wA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6M0B9NbUlgDJsAPGo584eNpJCi4+0ld3rxL+zjZdXFI=; b=e6FVjIVacPzOb624JMFzfESIvfwGGKlZDJcEhl5pXVcDC5ll0/qTV2Qf90RP4eTVWujG8wbPunpNFrVoJI/FlSLgBJ9+wqFgpNc3hutn+Pideha5XwQSH/ycwPjGYv8UkCKAOB5loITsQtKAuS58A+Fw4tRwIz6TLBBuB5ymAUTd/IgBO5pv19fEVhURmwLa7Fu0jpvw3HgAdFWV221fcO2c74hM/ZYov5fUizz7z1BW/gQG88hQIG+17GoMHdhY+GssoLCBfpmdf/cJ8eX7Z1MM9jRyn3b2ZZizolEsYOeSalNFKLoL6lqEqg2G6UZOucQ6PMjrwfYh3GnuLD5zjQ== Received: from VI1P193MB0752.EURP193.PROD.OUTLOOK.COM (2603:10a6:800:32::19) by DB9P193MB1931.EURP193.PROD.OUTLOOK.COM (2603:10a6:10:24e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.27; Sun, 29 Oct 2023 21:23:35 +0000 Received: from VI1P193MB0752.EURP193.PROD.OUTLOOK.COM ([fe80::2db3:2c11:bb43:c6e]) by VI1P193MB0752.EURP193.PROD.OUTLOOK.COM ([fe80::2db3:2c11:bb43:c6e%5]) with mapi id 15.20.6933.027; Sun, 29 Oct 2023 21:23:35 +0000 Message-ID: Date: Mon, 30 Oct 2023 05:23:34 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] selftests/cgroup: Fix awk usage in test_cpuset_prs.sh that may cause error To: Waiman Long , lizefan.x@bytedance.com, tj@kernel.org, hannes@cmpxchg.org, shuah@kernel.org Cc: cgroups@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org References: From: Juntong Deng In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TMN: [zdfF4qpzxzr+6SiiYHdzaUZF2YASsHQ+] X-ClientProxiedBy: CWLP123CA0111.GBRP123.PROD.OUTLOOK.COM (2603:10a6:401:5f::27) To VI1P193MB0752.EURP193.PROD.OUTLOOK.COM (2603:10a6:800:32::19) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1P193MB0752:EE_|DB9P193MB1931:EE_ X-MS-Office365-Filtering-Correlation-Id: a36c9e27-601f-4d41-6a56-08dbd8c54f37 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 27CvvH7Z26NIY5nxCE8+eLM+zNYGonPlm5/329EfLOM0aMfZugofsKKL5BAnStSGipZJWNCM04CszHvQ2pFsujnl7e/MirMBW5aPFxVZLyjXxm6UDJMC8zIGSw0Sf7oDiGEkNsjLf9pqswOgB1eHIPr4xXyuXqKE4R6jF7Wgg4FzA3mwFkVhrgL67KjEul4p+BtcREd90t5ccyXnldUXi24cZt5endn0wq/4423NS3jKCw7ywGnQ8Gi9sTTVig+YMnJyE1c5cn+xRbuz7cM7HXU2mWMFfPp/cugdSc2YhMYAubrX4wDwaO9DJBm3Ty7RxZwiMOYLzdnCazE+/d6SoVcKH4xDExHEjYUuy3hoHcEKGaLoC7gN7NiA/nGamlVPIPaisfC/QL+49JMsnJEGBlsqkpmwfnuq56oDGnfydxuK7vVXm7STU34LdShEOiSZauTvKO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= =?utf-8?Q?F/ZOhMeutXh5GCw9T/Fzr6vWR8y1WTK0IPkZ6TqzDg2s=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a36c9e27-601f-4d41-6a56-08dbd8c54f37 X-MS-Exchange-CrossTenant-AuthSource: VI1P193MB0752.EURP193.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Oct 2023 21:23:35.4898 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9P193MB1931 X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_MUA_MOZILLA, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 29 Oct 2023 14:24:00 -0700 (PDT) On 2023/9/26 20:18, Waiman Long wrote: > On 9/25/23 15:38, Juntong Deng wrote: >> According to the awk manual, the -e option does not need to be specified >> in front of 'program' (unless you need to mix program-file). >> >> The redundant -e option can cause error when users use awk tools other >> than gawk (for example, mawk does not support the -e option). >> >> Error Example: >> awk: not an option: -e >> Cgroup v2 mount point not found! >> >> Signed-off-by: Juntong Deng >> --- >>   tools/testing/selftests/cgroup/test_cpuset_prs.sh | 2 +- >>   1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/tools/testing/selftests/cgroup/test_cpuset_prs.sh >> b/tools/testing/selftests/cgroup/test_cpuset_prs.sh >> index 4afb132e4e4f..6820653e8432 100755 >> --- a/tools/testing/selftests/cgroup/test_cpuset_prs.sh >> +++ b/tools/testing/selftests/cgroup/test_cpuset_prs.sh >> @@ -20,7 +20,7 @@ skip_test() { >>   WAIT_INOTIFY=$(cd $(dirname $0); pwd)/wait_inotify >>   # Find cgroup v2 mount point >> -CGROUP2=$(mount -t cgroup2 | head -1 | awk -e '{print $3}') >> +CGROUP2=$(mount -t cgroup2 | head -1 | awk '{print $3}') >>   [[ -n "$CGROUP2" ]] || skip_test "Cgroup v2 mount point not found!" >>   CPUS=$(lscpu | grep "^CPU(s):" | sed -e "s/.*:[[:space:]]*//") > > Yes, the -e option is redundant. Thanks for catching that. > > Acked-by: Waiman Long > Hi Shuah, this patch has been acked but does not seem to have been applied yet.