Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2895667rwb; Sun, 20 Nov 2022 03:51:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf4wkyy1Yr4QKP8aY6T5w7fKWAQQa81Sxdvb5qQqriXbObTNKcuC0x9N+PB2a5LwZRaVTYi3 X-Received: by 2002:a63:4626:0:b0:434:b8ef:1ec6 with SMTP id t38-20020a634626000000b00434b8ef1ec6mr13614720pga.246.1668945100085; Sun, 20 Nov 2022 03:51:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668945100; cv=none; d=google.com; s=arc-20160816; b=W7+Ig1S9/QNiIGw3FIGodxqbLTkXusoXrAToPa4mZlMoxGi9TGM11deHcGP6F/hzua +W9HEliFLxIW8jt1qbbBV1P3O12eI0jAf+OLlrGXdDzN54xD6IwTIj3maJUzA5KBjI8r 2UvE50AHM0v6v/eKkJ0LuCpchNSsqBItItv5obwgmgLoODuHGEKwAggRVr4brZA9qkph AZVuLrpQHgL61e5dvBbPwfqgE1PQQCE+ho++1pbEkvBUeP1/c2HIyVgElKN2uOK8Ls3c Qn1tuROyblWYLGbO7uMw+ukyydbqsKq70XcxEX20RyOmtuhqjXFQYkauHnRkVjXdF3dE gbRw== 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:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Dk2pp7LLJq5cYCEARrY8mNp98J6nPrm47A67lY2SBxI=; b=o7c4jBeJTSWjdmkd7x2g3GDPHZo3RLRZGrZOl83AMpVgLRmwWWD5MRgTXUvgMaUNkY AGokaZybDD5Zi9CoxMzS3D6FTF1pYxTx3lycs0+Ic8D/Lwsh+6W2Klk0FIUJeKz5XLJc y1KHfd57JAxjAi0u16+01+kpKfWI21erP53SMSZ/fW+vr6ktj86hE0Pe3TievtZyQh7E Fkwr6ooLWZGA4dE+ZpWq5grXRt43rCDsun/fTE/7wMhMJBknYnFeuM9F7bcJVVkpN8Az WiHITzxWzKnA3/1+GKo2EotSOoZ/siy9hzlr9zMZ2tGVkvQbJaoVlo0CDCkFexZo2V3u Wmbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EAY1BKYU; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j192-20020a638bc9000000b004773c37430bsi5176372pge.390.2022.11.20.03.51.29; Sun, 20 Nov 2022 03:51:40 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EAY1BKYU; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229699AbiKTLT1 (ORCPT + 92 others); Sun, 20 Nov 2022 06:19:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbiKTLTY (ORCPT ); Sun, 20 Nov 2022 06:19:24 -0500 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA4326DFF0; Sun, 20 Nov 2022 03:19:23 -0800 (PST) Received: by mail-pl1-x634.google.com with SMTP id b21so8236135plc.9; Sun, 20 Nov 2022 03:19:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Dk2pp7LLJq5cYCEARrY8mNp98J6nPrm47A67lY2SBxI=; b=EAY1BKYUCpclYtEnAFB3EivaJxfS5ZUqUaC73N873rEFhSm4WEUId3WSzFin+Eem8R QwWmGein6XXRInoU9zaqMit4e5ZeRlUFia3ebCcFIKvzVOqMOYYHacVBaD1fq6XZjBo6 7+JNS34ZTBer5iuRncPszKzX1BItFzJO2wT9UrKj4UgB6XPtM6qYu8koEYEoa8m0TMWN B50bL47XOg9mu8oyp8mKQO2Aayn5fAHgSmbH/t/+chvsULDxF0+IpwPvWZwRNb9X0i5U qHi5CHnQXigny5M/n1JVyP4MENY7FfYwAuGM8qq8FjNvPYWcLZ0XQC4Dgp96aZCDCm3B idMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Dk2pp7LLJq5cYCEARrY8mNp98J6nPrm47A67lY2SBxI=; b=ui2OL0VwZgwkTtlDhAvwKT6EAdrZ9laz0Ik1TMcNDX6REv8WehJ9BxXUbppKeBzY7r ZEAO062/ANpKe2FImM5ZUr1Kz2tYZjTlYCcgUSSjbirfgkpYJwKIlyVzFn3e7viEPJgl w+o++zzKHNa9w1jeODaI2LYIH6UixPTYo2gcUBs0lTCc6ZFDXnB8EN+shccoLSq8jD62 +kPeLSw82J8svm5ObJF14RW0WAFAEeKyMQw4S4MCnu1dliBLrosIxFB2KCABuKBeBAMA CVom7USvRLi1cPz0RXLpxj++By4Had4GKoibSWiH1fR3e6iAl2CGvHmmN/4WnUqYyPpm XVTQ== X-Gm-Message-State: ANoB5pn3zpod6pPtFbzkvVxQ6TpqyI7REk1Z7Lf7nbDwiL6wziG/FiGm vaVAcDQSjDNQwnuAuWuzWlM= X-Received: by 2002:a17:90a:8a82:b0:210:7cd5:db0e with SMTP id x2-20020a17090a8a8200b002107cd5db0emr16464147pjn.30.1668943163154; Sun, 20 Nov 2022 03:19:23 -0800 (PST) Received: from [192.168.11.9] (KD106167171201.ppp-bb.dion.ne.jp. [106.167.171.201]) by smtp.gmail.com with ESMTPSA id y16-20020aa78f30000000b0057280487af3sm6372948pfr.203.2022.11.20.03.19.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Nov 2022 03:19:22 -0800 (PST) Message-ID: Date: Sun, 20 Nov 2022 20:19:16 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH] tools/memory-model: Use "grep -E" instead of "egrep" To: Tiezhu Yang , "Paul E. McKenney" 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 , Akira Yokosawa References: <1668823998-28548-1-git-send-email-yangtiezhu@loongson.cn> Content-Language: en-US From: Akira Yokosawa In-Reply-To: <1668823998-28548-1-git-send-email-yangtiezhu@loongson.cn> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 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