Skip to content

Commit a435874

Browse files
seehearfeelakpm00
authored andcommitted
tools/vm/slabinfo-gnuplot: use "grep -E" instead of "egrep"
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/vm` 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 Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Tiezhu Yang <[email protected]> Reviewed-by: Sergey Senozhatsky <[email protected]> Cc: Vlastimil Babka <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent f0a0ccd commit a435874

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/vm/slabinfo-gnuplot.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ do_preprocess()
150150
let lines=3
151151
out=`basename "$in"`"-slabs-by-loss"
152152
`cat "$in" | grep -A "$lines" 'Slabs sorted by loss' |\
153-
egrep -iv '\-\-|Name|Slabs'\
153+
grep -E -iv '\-\-|Name|Slabs'\
154154
| awk '{print $1" "$4+$2*$3" "$4}' > "$out"`
155155
if [ $? -eq 0 ]; then
156156
do_slabs_plotting "$out"
@@ -159,7 +159,7 @@ do_preprocess()
159159
let lines=3
160160
out=`basename "$in"`"-slabs-by-size"
161161
`cat "$in" | grep -A "$lines" 'Slabs sorted by size' |\
162-
egrep -iv '\-\-|Name|Slabs'\
162+
grep -E -iv '\-\-|Name|Slabs'\
163163
| awk '{print $1" "$4" "$4-$2*$3}' > "$out"`
164164
if [ $? -eq 0 ]; then
165165
do_slabs_plotting "$out"

0 commit comments

Comments
 (0)