Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp346181rwb; Fri, 18 Nov 2022 02:14:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf6ycfnBuSqelAitmtHq1ZApNfl6yCNspoxwEGvYdqmuuBRM8KH1VMsFJyzlrYQbHJjgVxuK X-Received: by 2002:a17:902:aa4a:b0:188:f775:8f4e with SMTP id c10-20020a170902aa4a00b00188f7758f4emr4841025plr.106.1668766452623; Fri, 18 Nov 2022 02:14:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668766452; cv=none; d=google.com; s=arc-20160816; b=F4Ie26bfSBgPBFcTz0qP0tKKfa/4WRDvGCvNf6QsISTGBKSCW05c5j3OMnamDHBxMK dv8a7B0va8NdA/DIdAO9Dt7csdnAcvTVBdRu8hIcmcS37s1ariFB1lEokeg+xKD97uOF SiD70cPIaEbIZxmMpYwLiBeCUysOy1zPRr1QDzztWMUwHGtyTtiyENEWZDZi7o//umTD /wN3fS8GMBUNfGfyaFJ/tLSVml2ctAtbT+kRRDCCPm+nGl1JAY81E97UnMEkEq6haUuN sSpmXMrx52Uhu2dwJjo+Fx0zgXDKTxNzVYKPI8rvshHBHDnN03qKjiuNjcH8ZsiyYvLt hGTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=A2B0PacW55pdTvLNEs2V1TEWU0QjaucB9kJ0SwF1ipI=; b=mxQZ02GfbVpXNtiKr+hNe7tOYrKpoKxOE+n6Q3gkl2I+gOjUkjM9muvVA3U/CUW/IY DcM4fHUraumujBjSCqI6KUat0Ky/NaZuYxiF3mY+lPNbFiqtIRGWBT8PN7ypQ7p1CL0A cwML/rjCb3Y6NXpcS8OmLwNG8ABhNhUoN7USWuQy1K7HeeKL5hq0qdYN6uanS0vvYKAG iozvxUfwISl9k66on0E7CZzwqezBjmlyPFwqBuEIeFyfmfnH56Prl5uBrw7y8yjrOM60 /kooOylvUqrKYb7XBkp8kp/3MGdzrxnTh1upo7+uf1V26pzBeXmRPdOrelJJdXouWTSV CH8g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j8-20020a634a48000000b0046abab88fd9si3316548pgl.677.2022.11.18.02.14.01; Fri, 18 Nov 2022 02:14:12 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241247AbiKRJuI (ORCPT + 91 others); Fri, 18 Nov 2022 04:50:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235150AbiKRJuG (ORCPT ); Fri, 18 Nov 2022 04:50:06 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 41299283; Fri, 18 Nov 2022 01:50:04 -0800 (PST) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8BxXbdLVXdjw5QIAA--.14985S3; Fri, 18 Nov 2022 17:50:03 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxPuBKVXdjinQWAA--.59213S2; Fri, 18 Nov 2022 17:50:02 +0800 (CST) From: Tiezhu Yang To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH bpf-next] samples: bpf: Use "grep -E" instead of "egrep" Date: Fri, 18 Nov 2022 17:50:01 +0800 Message-Id: <1668765001-12477-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf8AxPuBKVXdjinQWAA--.59213S2 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvdXoWruFWrur1kGFy3Gr1fGF4kJFb_yoWkZwc_Wr 1fZFn8G398Xry3GF18CFWUAFZF934xKF4Uuw45Gr17Za43Zas8Jr1DGF4UC3W5ua1DGayI q34kXFy0kr45KjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8wcxFpf9Il3svdxBIdaVrn0 xqx4xG64xvF2IEw4CE5I8CrVC2j2Jv73VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUY 87kC6x804xWl14x267AKxVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3w AFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK 6xIIjxv20xvE14v26ryj6F1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7 xvwVC2z280aVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gr1j6F4UJwAS 0I0E0xvYzxvE52x082IY62kv0487Mc804VCY07AIYIkI8VC2zVCFFI0UMc02F40EFcxC0V AKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUAVWUtwAv7VC2z280aVAFwI0_Gr0_Cr1l Ox8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxAIw28IcxkI7VAKI48JMxC20s 026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_ JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14 v26r1I6r4UMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4v20xva j40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Gr0_Cr1lIxAIcVC2z280aVCY1x0267AKxVW8JV W8JrUvcSsGvfC2KfnxnUUI43ZEXa7IU8w0eJUUUUU== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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 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 samples/bpf` 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 --- samples/bpf/test_cgrp2_tc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/bpf/test_cgrp2_tc.sh b/samples/bpf/test_cgrp2_tc.sh index 12faf58..395573b 100755 --- a/samples/bpf/test_cgrp2_tc.sh +++ b/samples/bpf/test_cgrp2_tc.sh @@ -115,7 +115,7 @@ do_exit() { if [ "$DEBUG" == "yes" ] && [ "$MODE" != 'cleanuponly' ] then 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 if [ -d "$BPF_FS_TC_SHARE" ] then -- 2.1.0