Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3665317rwb; Sun, 20 Nov 2022 19:26:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf7YK04XFu/+NIiEh27FQ/9IWq5bgBvsVlbkv6LQQQS3oL6cs3Tav4eYlcQ47/ZmS4SqoQCf X-Received: by 2002:a05:6402:25c6:b0:461:b825:d7cb with SMTP id x6-20020a05640225c600b00461b825d7cbmr14095105edb.167.1669001181785; Sun, 20 Nov 2022 19:26:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669001181; cv=none; d=google.com; s=arc-20160816; b=I8Kh5AkaQXTTWhYMAXU67accC8P6JTOfMlIKa0Gpe5yWYNjP+DSqfkELB0OkOwPMU2 LfniHG7KNKyDqBO1bT4HVXpwZkvm8JRq6qP5PXCW5XjWumtW4pWZQZy9j/x+3fuR42Dd Smu72os0um91E4zD1MXRvTmtCWj9LCD769fhtvtE5OpcyN4zGLC/OL9ENrmTQx9ncQOc Ya21MhAuqSYqi6VGhWvKlmfhCnAgoCrWmN6G+TufzV36iXwFLdUKdT5ukuDBdbBzwDB0 xUooJit30F/iITDB7Ge5+8fq631C6igj0nogHXkKssv0znfpdOG3/asGXQFES2153hf3 BHCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=NUSJSdCZ8Nyx3VGpab8Mo0pJ29F0wXr7tW5LNk2blfk=; b=Nn7tHwdwz0kBcZfeJo696LC41suph4aCN+065+1gkZLe4thGYsewocRjbOoUW3bWco mDKw6in4ydis42zrWC3m7U7V8lY76rsgrC0/LWQYL7in/ZHrO7UIBJLOWksJk+FmFx1b O0R5uxugpXjyfbzXKFH3fQtOB4IP2Ecpx0ph3pwf32xcwxeYfUwjau0EMlaP4XxMrcXy 6D+Pwv6Q/sMGeY8g+pNlgAiKk6wuP4CT7tm8EoGkbSJugGuc9SR2exYzlNQHJd7BbmJu 0O2r+EFNT/+iELt0IAH+1rRLPFfuoUmKWd1g4sgyBBzhXe3yobP8zMEJMqIO78Y488rJ 5yvA== 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:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sb21-20020a1709076d9500b0078df1c345dasi9142938ejc.534.2022.11.20.19.25.57; Sun, 20 Nov 2022 19:26:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229939AbiKUDCP (ORCPT + 91 others); Sun, 20 Nov 2022 22:02:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229600AbiKUDCM (ORCPT ); Sun, 20 Nov 2022 22:02:12 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EBA6131EC2; Sun, 20 Nov 2022 19:02:09 -0800 (PST) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8Cxbbcw6npj+AgJAA--.20171S3; Mon, 21 Nov 2022 11:02:08 +0800 (CST) Received: from [10.130.0.135] (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxoOIv6npjMmkXAA--.61033S3; Mon, 21 Nov 2022 11:02:08 +0800 (CST) Subject: Re: [PATCH] tools/memory-model: Use "grep -E" instead of "egrep" To: Akira Yokosawa , "Paul E. McKenney" References: <1668823998-28548-1-git-send-email-yangtiezhu@loongson.cn> Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Alan Stern , Andrea Parri , Will Deacon , Peter Zijlstra , Boqun Feng , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , Daniel Lustig , Joel Fernandes From: Tiezhu Yang Message-ID: Date: Mon, 21 Nov 2022 11:02:07 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID: AQAAf8BxoOIv6npjMmkXAA--.61033S3 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoW7uFyDuF43Kr4Uur43Ww4DJwb_yoW8Kw4xpF WDAa4jkanIvFyUXan2ka18JF15t3Z7GF4xGry5Aa15Xrn8Wr4ayryxXF4YyFsFqFWDJw4S kayqvFyUJr4UC3DanT9S1TB71UUUUbUqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU bqkYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s 1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwA2z4 x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v26r4UJVWxJr1l n4kS14v26r126r1DM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6x ACxx1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1q6rW5McIj6I8E 87Iv67AKxVW8JVWxJwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IY64vIr41lc7I2V7IY0V AS07AlzVAYIcxG8wCY1x0262kKe7AKxVWUtVW8ZwCF04k20xvY0x0EwIxGrwCFx2IqxVCF s4IE7xkEbVWUJVW8JwCFI7km07C267AKxVWUAVWUtwC20s026c02F40E14v26r1j6r18MI 8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41l IxAIcVC0I7IYx2IY67AKxVW8JVW5JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIx AIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2 jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07jr9NsUUUUU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_PASS,SPF_PASS autolearn=ham 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 On 11/20/2022 07:19 PM, Akira Yokosawa wrote: > On Sat, 19 Nov 2022 10:13:18 +0800, Tiezhu Yang wrote: >> The latest version of grep claims the egrep is now obsolete so the build >> now contains warnings that look like: >> egrep: warning: egrep is obsolescent; using grep -E >> fix this up by moving the related file to use "grep -E" instead. >> >> sed -i "s/egrep/grep -E/g" `grep egrep -rwl tools/memory-model` >> >> Here are the steps to install the latest grep: >> >> wget http://ftp.gnu.org/gnu/grep/grep-3.8.tar.gz >> tar xf grep-3.8.tar.gz >> cd grep-3.8 && ./configure && make >> sudo make install >> export PATH=/usr/local/bin:$PATH >> >> Signed-off-by: Tiezhu Yang >> --- >> tools/memory-model/scripts/checkghlitmus.sh | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/tools/memory-model/scripts/checkghlitmus.sh b/tools/memory-model/scripts/checkghlitmus.sh >> index 6589fbb..f72816a 100755 >> --- a/tools/memory-model/scripts/checkghlitmus.sh >> +++ b/tools/memory-model/scripts/checkghlitmus.sh >> @@ -35,13 +35,13 @@ fi >> # Create a list of the C-language litmus tests previously run. >> ( cd $LKMM_DESTDIR; find litmus -name '*.litmus.out' -print ) | >> sed -e 's/\.out$//' | >> - xargs -r egrep -l '^ \* Result: (Never|Sometimes|Always|DEADLOCK)' | >> + xargs -r grep -E -l '^ \* Result: (Never|Sometimes|Always|DEADLOCK)' | >> xargs -r grep -L "^P${LKMM_PROCS}"> $T/list-C-already >> >> # Create a list of C-language litmus tests with "Result:" commands and >> # no more than the specified number of processes. >> find litmus -name '*.litmus' -exec grep -l -m 1 "^C " {} \; > $T/list-C >> -xargs < $T/list-C -r egrep -l '^ \* Result: (Never|Sometimes|Always|DEADLOCK)' > $T/list-C-result >> +xargs < $T/list-C -r grep -E -l '^ \* Result: (Never|Sometimes|Always|DEADLOCK)' > $T/list-C-result >> xargs < $T/list-C-result -r grep -L "^P${LKMM_PROCS}" > $T/list-C-result-short >> >> # Form list of tests without corresponding .litmus.out files > > Looks good to me. > > Reviewed-by: Akira Yokosawa > > Paul, JFYI, this patch doesn't apply cleanly on -rcu dev due to > a couple of changes in the lkmm-dev.2022.10.18c branch. > > Thanks, Akira > Hi Akira, Thanks for your review, sorry for that, let me rebase on linux-rcu.git dev and send v2 later. Thanks, Tiezhu