Skip to contentSkip to conversation

perf tests make: Remove the last egrep call, use 'grep -E' instead

PATCH In review Arnaldo Carvalho de Melo 2 participants 2 messages Oct 31, 2023 – Nov 1, 2023 perf events

lore
Share & tools
lore

Arnaldo Carvalho de Melo

author maintainer
#0 lore raw

PATCH 2/3 perf tests make: Remove the last egrep call, use 'grep -E' instead

One last case, caught while testing with amazonlinux:2, centos:stream, etc:

4 7.28 amazonlinux:2 : FAIL egrep: warning: egrep is obsolescent; using grep -E
8 13.87 centos:stream : FAIL egrep: warning: egrep is obsolescent; using grep -E

Cc Adrian Hunter <[email protected]>
Cc Guilherme Amadio <[email protected]>
Cc Ian Rogers <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
---
 tools/perf/tests/make | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/tests/make +1 -1
index d9945ed25bc5ae96..8a4da7eb637a8abd 100644
@@ -183,7 +183,7 @@ run += make_install_prefix_slash
 # run += make_install_pdf
 run += make_minimal
 
-old_libbpf := $(shell echo '\#include <bpf/libbpf.h>' | $(CC) -E -dM -x c -| egrep -q "define[[:space:]]+LIBBPF_MAJOR_VERSION[[:space:]]+0{1}")
+old_libbpf := $(shell echo '\#include <bpf/libbpf.h>' | $(CC) -E -dM -x c -| grep -q -E "define[[:space:]]+LIBBPF_MAJOR_VERSION[[:space:]]+0{1}")
 
 ifneq ($(old_libbpf),)
 run += make_libbpf_dynamic
Signature · 1 line
2.41.0
Reviewed-by on v1 2/3
#1 lore raw

Hi Arnaldo,

Quoted 8 lines · Arnaldo Carvalho de Melo

One last case, caught while testing with amazonlinux:2, centos:stream, etc:

4 7.28 amazonlinux:2 : FAIL egrep: warning: egrep is obsolescent; using grep -E
8 13.87 centos:stream : FAIL egrep: warning: egrep is obsolescent; using grep -E

Cc Adrian Hunter <[email protected]>
Cc Guilherme Amadio <[email protected]>

Looks good.

Cheers,
-Guilherme

Quoted 24 lines
---
 tools/perf/tests/make | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/tests/make +1 -1
index d9945ed25bc5ae96..8a4da7eb637a8abd 100644
@@ -183,7 +183,7 @@ run += make_install_prefix_slash
 # run += make_install_pdf
 run += make_minimal
 
-old_libbpf := $(shell echo '\#include <bpf/libbpf.h>' | $(CC) -E -dM -x c -| egrep -q "define[[:space:]]+LIBBPF_MAJOR_VERSION[[:space:]]+0{1}")
+old_libbpf := $(shell echo '\#include <bpf/libbpf.h>' | $(CC) -E -dM -x c -| grep -q -E "define[[:space:]]+LIBBPF_MAJOR_VERSION[[:space:]]+0{1}")
 
 ifneq ($(old_libbpf),)
 run += make_libbpf_dynamic
Signature · 1 line
2.41.0