[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20221122014519.GZ4001@paulmck-ThinkPad-P17-Gen-1>
Date: Mon, 21 Nov 2022 17:45:19 -0800
From: "Paul E. McKenney" <paulmck@...nel.org>
To: Tiezhu Yang <yangtiezhu@...ngson.cn>
Cc: Alan Stern <stern@...land.harvard.edu>,
Andrea Parri <parri.andrea@...il.com>,
Will Deacon <will@...nel.org>,
Peter Zijlstra <peterz@...radead.org>,
Boqun Feng <boqun.feng@...il.com>,
Nicholas Piggin <npiggin@...il.com>,
David Howells <dhowells@...hat.com>,
Jade Alglave <j.alglave@....ac.uk>,
Luc Maranget <luc.maranget@...ia.fr>,
Akira Yokosawa <akiyks@...il.com>,
Daniel Lustig <dlustig@...dia.com>,
Joel Fernandes <joel@...lfernandes.org>,
linux-arch@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] tools/memory-model: Use "grep -E" instead of "egrep"
On Mon, Nov 21, 2022 at 11:25:38AM +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 <yangtiezhu@...ngson.cn>
> Reviewed-by: Akira Yokosawa <akiyks@...il.com>
Queued and pushed, thank you both!
Thanx, Paul
> ---
>
> v2: rebase on linux-rcu.git dev
>
> 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 cedd029..d3dfb32 100755
> --- a/tools/memory-model/scripts/checkghlitmus.sh
> +++ b/tools/memory-model/scripts/checkghlitmus.sh
> @@ -36,13 +36,13 @@ fi
> # Create a list of the specified litmus tests previously run.
> ( cd $LKMM_DESTDIR; find litmus -name "*.litmus${hwfnseg}.out" -print ) |
> sed -e "s/${hwfnseg}"'\.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' -print | mselect7 -arch 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 .out files
> --
> 2.1.0
>
Powered by blists - more mailing lists