提交 ee748cd9 编写于 作者: T Tiezhu Yang 提交者: Daniel Borkmann

bpf, samples: Use "grep -E" instead of "egrep"

The latest version of grep (3.8+) 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.
Signed-off-by: NTiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: NDaniel Borkmann <daniel@iogearbox.net>
Acked-by: NJiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/bpf/1668765001-12477-1-git-send-email-yangtiezhu@loongson.cn
上级 d1e91173
...@@ -115,7 +115,7 @@ do_exit() { ...@@ -115,7 +115,7 @@ do_exit() {
if [ "$DEBUG" == "yes" ] && [ "$MODE" != 'cleanuponly' ] if [ "$DEBUG" == "yes" ] && [ "$MODE" != 'cleanuponly' ]
then then
echo "------ DEBUG ------" echo "------ DEBUG ------"
echo "mount: "; mount | egrep '(cgroup2|bpf)'; echo echo "mount: "; mount | grep -E '(cgroup2|bpf)'; echo
echo "$CGRP2_TC_LEAF: "; ls -l $CGRP2_TC_LEAF; echo echo "$CGRP2_TC_LEAF: "; ls -l $CGRP2_TC_LEAF; echo
if [ -d "$BPF_FS_TC_SHARE" ] if [ -d "$BPF_FS_TC_SHARE" ]
then then
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册