From patchwork Wed Nov 23 01:03:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tiezhu Yang X-Patchwork-Id: 24639 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2524395wrr; Tue, 22 Nov 2022 17:05:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf7AHiyCtTH8URBXw0t3ihcKm6ItUdWKev6Y3dMuc7jpel40F5lknutaG0gz5tr2u08sKj+i X-Received: by 2002:a17:906:9d16:b0:7ae:c45b:98fb with SMTP id fn22-20020a1709069d1600b007aec45b98fbmr12047456ejc.478.1669165523502; Tue, 22 Nov 2022 17:05:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669165523; cv=none; d=google.com; s=arc-20160816; b=rtmzlb0Lov3DdjOZvLX8yfyAYjoP+uBGNp0Te5fI8nOvj7aRUF5vzMaIUxsVHfaN7X OlmL8Mp1v7hLJOcV8dvh1+Okw+AopKPaMMwtrR8/EwN9ZPnLpbjGuJKGUG/RNCwz+cl1 DzfyFWVllon+vfiv+Vn95p/Sbcp8VhntMOyTOHqO3LFSeb5uRBqgYNkkXdr/ktTq7Mil prNkyq6YXVHHd21YGVhVNskZFICdk0zcakvqkR+UXuTBOg8MfsytnfDvx8/bHcPNZuFS JDFDx4gXLvM86W5wOrSAOHLBWvLmFN7eMgMqckzAs97CoLL6VZVmaWIPr2w3WCyoKq+z r+4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=toCZeHrnBBjYGUQAevRXBDAEzy8zXp61rJGmFsBU+jQ=; b=ax0BYdtpY4WmsEBXxhoctWcmJ8fPVWaeS5DgvfGyypf6DsDnSVxs0+13nAt2FmhTsB /vNtqqoTKTvvMbrgrJnRyrCaYPnhkej8gnUN+k+2Yf0D5c6YbVA0Vjby1pT4fad275aO H8r1fTeqrTfQnB3ZpbbyiN8Fux2A8oyOWklto6LmgpmU1IWvm3tlRXjwOUbAga2OvQGk Sl0XEYiYZ1/CVMUZ532L3+AyHpPUyC9JdXPmmIvRGjWcDnJmNYglWXtMb1yDnuY8sTH3 WIfcjyfLX/YaXV4efweUxGBRYEouXIPI+3QObHSFkdAkI+w+l6x6dLQ+DFT9xiuSnMRD KafQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y17-20020a056402271100b0046800749660si14843531edd.207.2022.11.22.17.05.00; Tue, 22 Nov 2022 17:05:23 -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 S235391AbiKWBED (ORCPT + 99 others); Tue, 22 Nov 2022 20:04:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235059AbiKWBDr (ORCPT ); Tue, 22 Nov 2022 20:03:47 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7AABCDA4F8; Tue, 22 Nov 2022 17:03:45 -0800 (PST) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8BxE_BvcX1jjiMAAA--.420S3; Wed, 23 Nov 2022 09:03:43 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxJldqcX1js24YAA--.45400S3; Wed, 23 Nov 2022 09:03:40 +0800 (CST) From: Tiezhu Yang To: Shuah Khan , Shuah Khan Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/6] selftests: rcutorture: Use "grep -E" instead of "egrep" Date: Wed, 23 Nov 2022 09:03:28 +0800 Message-Id: <1669165413-12035-2-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1669165413-12035-1-git-send-email-yangtiezhu@loongson.cn> References: <1669165413-12035-1-git-send-email-yangtiezhu@loongson.cn> X-CM-TRANSID: AQAAf8CxJldqcX1js24YAA--.45400S3 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoW3XFWkGF4UJFWxuw1UJFWUArb_yoWxZFW3pa yktwnagr18JFy5Ja18AFZ2qFW5KFs3AF4Utr18WryUZ3W5GFn2vr1IqFnxJF9rGrZYqw1S vas2gryxuw4UJrJanT9S1TB71UUUUUDqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU b7xYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s 1l1IIY67AEw4v_JF0_JFyl8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwA2z4 x0Y4vEx4A2jsIE14v26r4j6F4UM28EF7xvwVC2z280aVCY1x0267AKxVW8JVW8Jr1le2I2 62IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4xG64xvF2IEw4 CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jw0_WrylYx0Ex4A2jsIE14v26r4j6F4UMcvj eVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x0EwIxGrwCFx2IqxV CFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r10 6r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxV W8JVW5JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG 6r1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr 1UYxBIdaVFxhVjvjDU0xZFpf9x07j5l1kUUUUU= 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750246908172526666?= X-GMAIL-MSGID: =?utf-8?q?1750246908172526666?= 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/testing/selftests/rcutorture` 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 --- tools/testing/selftests/rcutorture/bin/console-badness.sh | 2 +- tools/testing/selftests/rcutorture/bin/kvm-build.sh | 4 ++-- tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh | 4 ++-- tools/testing/selftests/rcutorture/bin/kvm.sh | 4 ++-- tools/testing/selftests/rcutorture/bin/parse-console.sh | 10 +++++----- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tools/testing/selftests/rcutorture/bin/console-badness.sh b/tools/testing/selftests/rcutorture/bin/console-badness.sh index 69f8a59..aad51e7 100755 --- a/tools/testing/selftests/rcutorture/bin/console-badness.sh +++ b/tools/testing/selftests/rcutorture/bin/console-badness.sh @@ -10,7 +10,7 @@ # # Authors: Paul E. McKenney -egrep 'Badness|WARNING:|Warn|BUG|===========|BUG: KCSAN:|Call Trace:|Oops:|detected stalls on CPUs/tasks:|self-detected stall on CPU|Stall ended before state dump start|\?\?\? Writer stall state|rcu_.*kthread starved for|!!!' | +grep -E 'Badness|WARNING:|Warn|BUG|===========|BUG: KCSAN:|Call Trace:|Oops:|detected stalls on CPUs/tasks:|self-detected stall on CPU|Stall ended before state dump start|\?\?\? Writer stall state|rcu_.*kthread starved for|!!!' | grep -v 'ODEBUG: ' | grep -v 'This means that this is a DEBUG kernel and it is' | grep -v 'Warning: unable to open an initial console' | diff --git a/tools/testing/selftests/rcutorture/bin/kvm-build.sh b/tools/testing/selftests/rcutorture/bin/kvm-build.sh index 5ad973d..9052c4c 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm-build.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm-build.sh @@ -45,10 +45,10 @@ fi ncpus="`getconf _NPROCESSORS_ONLN`" make -j$((2 * ncpus)) $TORTURE_KMAKE_ARG > $resdir/Make.out 2>&1 retval=$? -if test $retval -ne 0 || grep "rcu[^/]*": < $resdir/Make.out | egrep -q "Stop|Error|error:|warning:" || egrep -q "Stop|Error|error:" < $resdir/Make.out +if test $retval -ne 0 || grep "rcu[^/]*": < $resdir/Make.out | grep -E -q "Stop|Error|error:|warning:" || grep -E -q "Stop|Error|error:" < $resdir/Make.out then echo Kernel build error - egrep "Stop|Error|error:|warning:" < $resdir/Make.out + grep -E "Stop|Error|error:|warning:" < $resdir/Make.out echo Run aborted. exit 3 fi diff --git a/tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh b/tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh index 88983cb..0840c44 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh @@ -32,9 +32,9 @@ for i in ${rundir}/*/Make.out do scenariodir="`dirname $i`" scenariobasedir="`echo ${scenariodir} | sed -e 's/\.[0-9]*$//'`" - if egrep -q "error:|warning:|^ld: .*undefined reference to" < $i + if grep -E -q "error:|warning:|^ld: .*undefined reference to" < $i then - egrep "error:|warning:|^ld: .*undefined reference to" < $i > $i.diags + grep -E "error:|warning:|^ld: .*undefined reference to" < $i > $i.diags files="$files $i.diags $i" elif ! test -f ${scenariobasedir}/vmlinux && ! test -f "${rundir}/re-run" then diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh index 6c73481..58ccd34 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm.sh @@ -586,7 +586,7 @@ awk < $T/cfgcpu.pack \ echo kvm-end-run-stats.sh "$resdir/$ds" "$starttime" >> $T/script # Extract the tests and their batches from the script. -egrep 'Start batch|Starting build\.' $T/script | grep -v ">>" | +grep -E 'Start batch|Starting build\.' $T/script | grep -v ">>" | sed -e 's/:.*$//' -e 's/^echo //' -e 's/-ovf//' | awk ' /^----Start/ { @@ -623,7 +623,7 @@ then elif test "$dryrun" = sched then # Extract the test run schedule from the script. - egrep 'Start batch|Starting build\.' $T/script | grep -v ">>" | + grep -E 'Start batch|Starting build\.' $T/script | grep -v ">>" | sed -e 's/:.*$//' -e 's/^echo //' nbuilds="`grep 'Starting build\.' $T/script | grep -v ">>" | sed -e 's/:.*$//' -e 's/^echo //' | diff --git a/tools/testing/selftests/rcutorture/bin/parse-console.sh b/tools/testing/selftests/rcutorture/bin/parse-console.sh index 822eb03..9ab0f6b 100755 --- a/tools/testing/selftests/rcutorture/bin/parse-console.sh +++ b/tools/testing/selftests/rcutorture/bin/parse-console.sh @@ -65,7 +65,7 @@ then fi grep --binary-files=text 'torture:.*ver:' $file | - egrep --binary-files=text -v '\(null\)|rtc: 000000000* ' | + grep -E --binary-files=text -v '\(null\)|rtc: 000000000* ' | sed -e 's/^(initramfs)[^]]*] //' -e 's/^\[[^]]*] //' | sed -e 's/^.*ver: //' | awk ' @@ -128,17 +128,17 @@ then then summary="$summary Badness: $n_badness" fi - n_warn=`grep -v 'Warning: unable to open an initial console' $file | grep -v 'Warning: Failed to add ttynull console. No stdin, stdout, and stderr for the init process' | egrep -c 'WARNING:|Warn'` + n_warn=`grep -v 'Warning: unable to open an initial console' $file | grep -v 'Warning: Failed to add ttynull console. No stdin, stdout, and stderr for the init process' | grep -E -c 'WARNING:|Warn'` if test "$n_warn" -ne 0 then summary="$summary Warnings: $n_warn" fi - n_bugs=`egrep -c '\bBUG|Oops:' $file` + n_bugs=`grep -E -c '\bBUG|Oops:' $file` if test "$n_bugs" -ne 0 then summary="$summary Bugs: $n_bugs" fi - n_kcsan=`egrep -c 'BUG: KCSAN: ' $file` + n_kcsan=`grep -E -c 'BUG: KCSAN: ' $file` if test "$n_kcsan" -ne 0 then if test "$n_bugs" = "$n_kcsan" @@ -158,7 +158,7 @@ then then summary="$summary lockdep: $n_badness" fi - n_stalls=`egrep -c 'detected stalls on CPUs/tasks:|self-detected stall on CPU|Stall ended before state dump start|\?\?\? Writer stall state' $file` + n_stalls=`grep -E -c 'detected stalls on CPUs/tasks:|self-detected stall on CPU|Stall ended before state dump start|\?\?\? Writer stall state' $file` if test "$n_stalls" -ne 0 then summary="$summary Stalls: $n_stalls" From patchwork Wed Nov 23 01:03:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tiezhu Yang X-Patchwork-Id: 24637 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2524358wrr; Tue, 22 Nov 2022 17:05:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf7ebPiOagP3p/jqVg1URgj+dgTpHA6Sf1eRSrNwyOSQ/1KVPshoGRKIyAIQHQWasUJ9on5O X-Received: by 2002:a05:6402:4286:b0:458:7489:34ea with SMTP id g6-20020a056402428600b00458748934eamr9892033edc.264.1669165518139; Tue, 22 Nov 2022 17:05:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669165518; cv=none; d=google.com; s=arc-20160816; b=bH3YNUSbMiYmvEZR/IXdgQN+iD/8HwuRzJ4aBOkydlhXW3Qlm0QSp7xe33r2lUg2XF KkZ9m4xkV3Z9mc2RU4TdhHAEHTR160Q1rmvLYH/HjhRBOi0Et5MLtHw5yaZ5JW9YQXfD o2Eslxvm1MPIkyhrEmrn2AnqYWIVYqo1BbPSkLfeIX1SXCb94snPQRZgVxAsmG1y83BG dYUXN22jr4RJbjoQUauo9nOsDBLLzcBcUKFfQwPMgtTiOtEda74z+wz7BbA7uDEGsOjN yUW8DGs/+dRD6TWaS08XxF+mZOfzy1Kk5rCvCUEhMeQEIaH3HkoipJc6B+z7k+El7gx9 M6ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=dD/U85c3t3VRR2FLAUqxBaQH4HDVBYekTvQhQ5z5Lks=; b=P1TP6qAQo+we+bkzcY1+nXMpt+eZbhp93Nb1sWGEREC7F+RgUe1oglYGueCtMmv9Tn V6Fw8cCmlE2KsE0fVg9WG+g41cjODwB9EFrQDAfOz+SQs9syioBPZqm/ITa4jndyhECI 3QgRbSeJ5eMQyWe0qptUyC2QBsBp0YlYPVw0TSXMnl2PgLQUOeXE+bTXDHqmcAYnuN1j tF1vC4awC7AQ5OyIOZj5BZEvF85KwYB5Qe7zinVzfqY3Y65kTycoM+wqQKJhBe7it4rO /XPM2nt5k+tZYxjlfsqF/nvEhIquNtXQpLdIOHm7vfce3AvSZbi/At34BMmBWcKWAPxV P7Cw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s11-20020a170906a18b00b007806a130086si10373380ejy.302.2022.11.22.17.04.54; Tue, 22 Nov 2022 17:05:18 -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 S235364AbiKWBDw (ORCPT + 99 others); Tue, 22 Nov 2022 20:03:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233239AbiKWBDp (ORCPT ); Tue, 22 Nov 2022 20:03:45 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3F3E359176; Tue, 22 Nov 2022 17:03:44 -0800 (PST) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8DxtfBvcX1jiiMAAA--.455S3; Wed, 23 Nov 2022 09:03:43 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxJldqcX1js24YAA--.45400S4; Wed, 23 Nov 2022 09:03:42 +0800 (CST) From: Tiezhu Yang To: Shuah Khan , Shuah Khan Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/6] selftests: ftrace: Use "grep -E" instead of "egrep" Date: Wed, 23 Nov 2022 09:03:29 +0800 Message-Id: <1669165413-12035-3-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1669165413-12035-1-git-send-email-yangtiezhu@loongson.cn> References: <1669165413-12035-1-git-send-email-yangtiezhu@loongson.cn> X-CM-TRANSID: AQAAf8CxJldqcX1js24YAA--.45400S4 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoW7uFWUCFyfJr45trW3Gr48WFg_yoW8Aw15pF W8ArnxKr47Jayayw4xWrs8ZF4jkFs5J3ykJryrJa13Xan3X3W5XF4IqF1UJFsrXrWkZ3yS kas7Aay7ZF4DX3DanT9S1TB71UUUUUDqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU b7xYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s 1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwA2z4 x0Y4vEx4A2jsIE14v26r4j6F4UM28EF7xvwVC2z280aVCY1x0267AKxVW8JVW8Jr1le2I2 62IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4xG64xvF2IEw4 CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_JF0_Jw1lYx0Ex4A2jsIE14v26r4j6F4UMcvj eVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x0EwIxGrwCFx2IqxV CFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r10 6r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxV WUCVW8JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG 6r1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr 1UYxBIdaVFxhVjvjDU0xZFpf9x07jOb18UUUUU= 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750246902274643754?= X-GMAIL-MSGID: =?utf-8?q?1750246902274643754?= 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/testing/selftests/ftrace` 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 --- .../testing/selftests/ftrace/test.d/preemptirq/irqsoff_tracer.tc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/ftrace/test.d/preemptirq/irqsoff_tracer.tc b/tools/testing/selftests/ftrace/test.d/preemptirq/irqsoff_tracer.tc index 22bff12..ba10389 100644 --- a/tools/testing/selftests/ftrace/test.d/preemptirq/irqsoff_tracer.tc +++ b/tools/testing/selftests/ftrace/test.d/preemptirq/irqsoff_tracer.tc @@ -46,10 +46,10 @@ cat trace grep -q "tracer: preemptoff" trace || fail # Check the end of the section -egrep -q "5.....us : " trace || fail +grep -E -q "5.....us : " trace || fail # Check for 500ms of latency -egrep -q "latency: 5..... us" trace || fail +grep -E -q "latency: 5..... us" trace || fail reset_tracer @@ -69,10 +69,10 @@ cat trace grep -q "tracer: irqsoff" trace || fail # Check the end of the section -egrep -q "5.....us : " trace || fail +grep -E -q "5.....us : " trace || fail # Check for 500ms of latency -egrep -q "latency: 5..... us" trace || fail +grep -E -q "latency: 5..... us" trace || fail reset_tracer exit 0 From patchwork Wed Nov 23 01:03:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tiezhu Yang X-Patchwork-Id: 24640 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2524656wrr; Tue, 22 Nov 2022 17:06:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf5WwE25G9zkh3fQW7ZBn1ZIvpfYQvhqPKO9dZP4C7nnun8whfr7+4aSwMPcnEnpyRtzxArl X-Received: by 2002:a17:906:2645:b0:781:d0c1:4434 with SMTP id i5-20020a170906264500b00781d0c14434mr21801508ejc.756.1669165561520; Tue, 22 Nov 2022 17:06:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669165561; cv=none; d=google.com; s=arc-20160816; b=wBR6ZUukLf+ftf+rxnFS6M+P007gem2sPE6W08mbHHjNExBATxbszBO7Uti2IYWIF2 jmPTROsMEqPM+WsVl1A3xY50BneE74BGI6kj1gDQX5eUlYefM5LSNaMYY2uK0smu8IoI nFoEvcOgWrFeu/nX3sfmN+VUQem4qqV0n2VOyc11aTbGpkmnDnZvpklwHvE8x0pzdsNA UQ19xxO/ZwgI/JqJVkidbxQzfLS++oiuNFbkGaaRNxq5y9qw6uK38u0xOSqO/g3ARNrB vtUJHeYIqWngX8mUgLL51gcJYsa+H/6D4mM2IBRCamW1hOZU0Cz1HqVmy+BQGLS7DA3H sEew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=VWxOSjKMy6XTyQ3SQWN7otjMp+6QkLLdomOV17QEMfs=; b=kQqxsAiRTyiW9HNpgfZWuLlIL0fRX5eMOuECq69D5wRdHXnMsAsC53cDfRJG2OOgmv 3zG54XVsAl8Ob1yYkzGDMrxCv6YO56r9qUNw3lq6DqZxexdRNa26wREkQh8UPywmoHi0 fud0TWWC1L+SlGj1dg2djpSLkiK5J/UAjFCq3Hx2kVZ4L0kVlLof7fbyHcTvWHDURTtJ bF8zwWYzAu+/4SMiMk78K8gLTEryiQ1RjP0menr07ZC2H1M6LGb3Rz7aJpjgHPAW4d73 UwKHAU6ugk+fbEWFsSStr3C/TVULv8DJJWcwhZr6nNLpRkqjsoQZqspC6BJwiwjt2v40 w2lA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f8-20020a05640214c800b0046771defe07si12212053edx.529.2022.11.22.17.05.38; Tue, 22 Nov 2022 17:06:01 -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 S235369AbiKWBDx (ORCPT + 99 others); Tue, 22 Nov 2022 20:03:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233984AbiKWBDp (ORCPT ); Tue, 22 Nov 2022 20:03:45 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 87624BEAF0; Tue, 22 Nov 2022 17:03:44 -0800 (PST) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8Axy+pvcX1jjSMAAA--.300S3; Wed, 23 Nov 2022 09:03:43 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxJldqcX1js24YAA--.45400S5; Wed, 23 Nov 2022 09:03:43 +0800 (CST) From: Tiezhu Yang To: Shuah Khan , Shuah Khan Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/6] selftests: powerpc: Use "grep -E" instead of "egrep" Date: Wed, 23 Nov 2022 09:03:30 +0800 Message-Id: <1669165413-12035-4-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1669165413-12035-1-git-send-email-yangtiezhu@loongson.cn> References: <1669165413-12035-1-git-send-email-yangtiezhu@loongson.cn> X-CM-TRANSID: AQAAf8CxJldqcX1js24YAA--.45400S5 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoW7uFWUCFykCrW7tF4fur4xXrb_yoW8GF48pa 48C34YyasYgFy7XF4UGFsFgFW8KF4kA3y0gFWrJryDZFsxAasaqryftF47JFnxGrWktw4r ua9akay0kr47GaDanT9S1TB71UUUUUDqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU b7xYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s 1l1IIY67AEw4v_JF0_JFyl8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwA2z4 x0Y4vEx4A2jsIE14v26r4j6F4UM28EF7xvwVC2z280aVCY1x0267AKxVW8JVW8Jr1le2I2 62IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4xG64xvF2IEw4 CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jw0_WrylYx0Ex4A2jsIE14v26r4j6F4UMcvj eVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x0EwIxGrwCFx2IqxV CFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r10 6r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxV WUCVW8JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG 6r1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr 1UYxBIdaVFxhVjvjDU0xZFpf9x07j5l1kUUUUU= 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750246948095122941?= X-GMAIL-MSGID: =?utf-8?q?1750246948095122941?= 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/testing/selftests/powerpc` 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 --- tools/testing/selftests/powerpc/scripts/hmi.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/powerpc/scripts/hmi.sh b/tools/testing/selftests/powerpc/scripts/hmi.sh index dcdb392..bcc7b6b 100755 --- a/tools/testing/selftests/powerpc/scripts/hmi.sh +++ b/tools/testing/selftests/powerpc/scripts/hmi.sh @@ -36,7 +36,7 @@ trap "ppc64_cpu --smt-snooze-delay=100" 0 1 # for each chip+core combination # todo - less fragile parsing -egrep -o 'OCC: Chip [0-9a-f]+ Core [0-9a-f]' < /sys/firmware/opal/msglog | +grep -E -o 'OCC: Chip [0-9a-f]+ Core [0-9a-f]' < /sys/firmware/opal/msglog | while read chipcore; do chip=$(echo "$chipcore"|awk '{print $3}') core=$(echo "$chipcore"|awk '{print $5}') From patchwork Wed Nov 23 01:03:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tiezhu Yang X-Patchwork-Id: 24636 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2524339wrr; Tue, 22 Nov 2022 17:05:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf7zrT+FHvPBwX/Yjl5lTdIAfA7XtgH5QgFBeQFRiHlGyoF/WqeFIJu2x6aRBiN3N+b839Gd X-Received: by 2002:a17:906:4309:b0:78d:36d7:92ae with SMTP id j9-20020a170906430900b0078d36d792aemr5470643ejm.113.1669165503824; Tue, 22 Nov 2022 17:05:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669165503; cv=none; d=google.com; s=arc-20160816; b=JnGEW8fiprjASmvQmnesjFjW/rEl9bi9zOhWotlHSR3cFUZH9TQqu1b+8ybh7U40Nl SmDgPpKNOXgz+J+riS3xd5EO3/L2/ozWbHk8dO5y4wAB06HkZIw00m44Rrph8G+fowtm 4DMGCTeb6j5dlnSdg0La6hKDSq5GNc25mfllTRtfJh+MZQ6hT3rC5sxRgY/JeVTdG7NZ 9I+xnqrwC/tp9v/m+50PXI4rTEIzrynPzOKXy3lafbkM6mKJdFtJkUYEtUS09EwOR9H8 hkMUL1FW8I1feSLrMZ+IhFsGe+nPly9CMYimHE9YBS5jthtYh8oX0WpC2P3XZ5ydwAk+ zwbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=NCT27O2bCPLri5vlH9t+c0K4zxKRTlHdC4V6CCKptcw=; b=WmV9tksAk5LXaEepHavERk8PWqZr7N5qynPRTXQMroAzPTAfJPHeYAnhD4hU1bSt9o XjF0fg8b0oh05CkkaJmZS4AbyixjAbaMEhfoz0p5p8iYGUSz6oJyRo4+0ayeKNzvx2cR nIuRJHbQzYoyxXpQHnISgFoNEtch+YaWZxkOZ/7F6SHRILSHABPWLwLBP/HUIO53XyCI nNWaHwrN6Szx4OwTZnGdF9SRWDMfPisa8aNbEC936ft8UAfJ2mmn/oMCYFSHOyTVFqao 2sqOii30eoFvBv2+gmApdrmGcTA/LnPf8pjBZtZsBrcbEqcKrXWg+V+Mr0WWnQYmgRrb 5idw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cw7-20020a170906478700b007806964b2fcsi8963047ejc.447.2022.11.22.17.04.38; Tue, 22 Nov 2022 17:05:03 -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 S235373AbiKWBDz (ORCPT + 99 others); Tue, 22 Nov 2022 20:03:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234891AbiKWBDq (ORCPT ); Tue, 22 Nov 2022 20:03:46 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2F99ADA4F4; Tue, 22 Nov 2022 17:03:44 -0800 (PST) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8DxtfBvcX1jkyMAAA--.456S3; Wed, 23 Nov 2022 09:03:43 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxJldqcX1js24YAA--.45400S6; Wed, 23 Nov 2022 09:03:43 +0800 (CST) From: Tiezhu Yang To: Shuah Khan , Shuah Khan Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/6] selftests: gpio: Use "grep -E" instead of "egrep" Date: Wed, 23 Nov 2022 09:03:31 +0800 Message-Id: <1669165413-12035-5-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1669165413-12035-1-git-send-email-yangtiezhu@loongson.cn> References: <1669165413-12035-1-git-send-email-yangtiezhu@loongson.cn> X-CM-TRANSID: AQAAf8CxJldqcX1js24YAA--.45400S6 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvdXoWruFWrur1kGFy3Gr1fJw17trb_yoWkKwbEvr 48tr4DA3yUZFyUur1xCFWakFn7C34UCrZ8AFWDJF13J34jva15CF4Durn8A3W5Ww15G3y2 qa18Jw1xKr42gjkaLaAFLSUrUUUUbb8apTn2vfkv8UJUUUU8wcxFpf9Il3svdxBIdaVrn0 xqx4xG64xvF2IEw4CE5I8CrVC2j2Jv73VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUY j7kC6x804xWl14x267AKxVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3w AFIxvE14AKwVWUXVWUAwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK 6xIIjxv20xvE14v26ryj6F1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7 xvwVC2z280aVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv6xkF7I0E14v26r4j6r4UJwAS0I0E 0xvYzxvE52x082IY62kv0487Mc804VCY07AIYIkI8VC2zVCFFI0UMc02F40EFcxC0VAKzV Aqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUtVWrXwAv7VC2z280aVAFwI0_Gr0_Cr1lOx8S 6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxAIw28IcxkI7VAKI48JMxC20s026x CaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_ JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r 4j6ryUMIIF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4v20xvaj40_ Jr0_JF4lIxAIcVC2z280aVAFwI0_Gr0_Cr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8Jr UvcSsGvfC2KfnxnUUI43ZEXa7IU8l38UUUUUU== 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750246887219610119?= X-GMAIL-MSGID: =?utf-8?q?1750246887219610119?= 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/testing/selftests/gpio` 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 --- tools/testing/selftests/gpio/gpio-sim.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/gpio/gpio-sim.sh b/tools/testing/selftests/gpio/gpio-sim.sh index 341e3de..9f539d4 100755 --- a/tools/testing/selftests/gpio/gpio-sim.sh +++ b/tools/testing/selftests/gpio/gpio-sim.sh @@ -27,7 +27,7 @@ remove_chip() { continue fi - LINES=`ls $CONFIGFS_DIR/$CHIP/$BANK/ | egrep ^line` + LINES=`ls $CONFIGFS_DIR/$CHIP/$BANK/ | grep -E ^line` if [ "$?" = 0 ]; then for LINE in $LINES; do if [ -e $CONFIGFS_DIR/$CHIP/$BANK/$LINE/hog ]; then From patchwork Wed Nov 23 01:03:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tiezhu Yang X-Patchwork-Id: 24638 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2524374wrr; Tue, 22 Nov 2022 17:05:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf4CaAbD06PsSrlRcFWLi9Lr/kPxGXF7kBvdcJ9bJInY6HxN87sdMWInCMpRTgJX0mA38WRf X-Received: by 2002:a17:907:778c:b0:7ad:79c0:4669 with SMTP id ky12-20020a170907778c00b007ad79c04669mr22503328ejc.395.1669165519924; Tue, 22 Nov 2022 17:05:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669165519; cv=none; d=google.com; s=arc-20160816; b=sDncFrp1nmUwsQVyNO+P6JZoyODSb6Jd+rfoqp1Q+YExOaPKbpsGa9mrVWQlTIB0mv 0x0ggxQBA/K3qAI/AABDEstngzKXY5G15EX+JLDJOoIWY1Q4/1x5S2rgYOOf6GFZwRRh vk9+tJ8r8EpWNuTTPZ9b/wqRVuD/4ioH0v8wAL3e2UI6v7d0sRVokNB/qUt8W/GwQD1Z shxLENPCg3+nR3whPghI6nXeWvS3mWWTEhE5nq9anKxOCz4PnFToAEyuSOKKq+YwT3No UjCDjWCnoi8jtG0zi7EvKRmauJ3HxU+ImFHN6jowxdr9+P/GRHZkkjhIOOvFW1sxRVQt oUyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=Qw1VnRWaqAUu0TJBVVSeB9ry9wlsLXVLSfflV5xK9f8=; b=UT++ye07okgwILTENCWkW0aBxCHSmuED7Eojsz8SA2aQNNAS2nkPnqQVKdMSd2nOoN 90joSMQE0rUQ3HVferTtDS0jkb5Kx/WGEyBQrqSnrPu9hjgmLd1IEyCBpDl+KWZWA809 uW26J/SDXhnAaVcdLa5ktc8fOkXwkIYn7zU4dnq+1jL3TWOeP8xQQOxHwWDZZILt1eDE fyNId2BTkLtEx6xM+KSVx+Dg8JegWltWM12mhq0ph28D2k5yWFGyT0fiZz6KPI4L/ECN RYr/eziQgqmJ1hpMb8KIPA+BXqnAkc9l3LFSFMOEexqoCryXuO/NGQgj36OTxCcoJB97 dX0Q== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qq18-20020a17090720d200b0078d83fb6672si10911193ejb.118.2022.11.22.17.04.56; Tue, 22 Nov 2022 17:05:19 -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 S235384AbiKWBEB (ORCPT + 99 others); Tue, 22 Nov 2022 20:04:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234936AbiKWBDr (ORCPT ); Tue, 22 Nov 2022 20:03:47 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A91EDDA4F2; Tue, 22 Nov 2022 17:03:45 -0800 (PST) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8BxnutwcX1jlyMAAA--.455S3; Wed, 23 Nov 2022 09:03:44 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxJldqcX1js24YAA--.45400S7; Wed, 23 Nov 2022 09:03:43 +0800 (CST) From: Tiezhu Yang To: Shuah Khan , Shuah Khan Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 5/6] selftests: net: Use "grep -E" instead of "egrep" Date: Wed, 23 Nov 2022 09:03:32 +0800 Message-Id: <1669165413-12035-6-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1669165413-12035-1-git-send-email-yangtiezhu@loongson.cn> References: <1669165413-12035-1-git-send-email-yangtiezhu@loongson.cn> X-CM-TRANSID: AQAAf8CxJldqcX1js24YAA--.45400S7 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoWruFWrur1kGFy3Gr1fJw17trb_yoW8Jry5p3 y8GwnrKF1rJFyjyF4UWFsaqF1fKan3XF48WrWrGrnrZrs8J3WxXF1SgF47AF47WrWDXws5 Zas29ry8uan8A3DanT9S1TB71UUUUUDqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU b7xYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s 1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwA2z4 x0Y4vEx4A2jsIE14v26r4j6F4UM28EF7xvwVC2z280aVCY1x0267AKxVW8JVW8Jr1le2I2 62IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4xG64xvF2IEw4 CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jw0_WrylYx0Ex4A2jsIE14v26r4j6F4UMcvj eVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x0EwIxGrwCFx2IqxV CFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r10 6r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxV W8JVW5JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG 6r1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr 1UYxBIdaVFxhVjvjDU0xZFpf9x07josjUUUUUU= 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750246904372400612?= X-GMAIL-MSGID: =?utf-8?q?1750246904372400612?= 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/testing/selftests/net` 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 --- tools/testing/selftests/net/toeplitz.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/toeplitz.sh b/tools/testing/selftests/net/toeplitz.sh index 0a49907..da5bfd8 100755 --- a/tools/testing/selftests/net/toeplitz.sh +++ b/tools/testing/selftests/net/toeplitz.sh @@ -32,7 +32,7 @@ DEV="eth0" # This is determined by reading the RSS indirection table using ethtool. get_rss_cfg_num_rxqs() { echo $(ethtool -x "${DEV}" | - egrep [[:space:]]+[0-9]+:[[:space:]]+ | + grep -E [[:space:]]+[0-9]+:[[:space:]]+ | cut -d: -f2- | awk '{$1=$1};1' | tr ' ' '\n' | From patchwork Wed Nov 23 01:03:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tiezhu Yang X-Patchwork-Id: 24635 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2524242wrr; Tue, 22 Nov 2022 17:05:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf6aKNkDqxyRpKfHv5JV53BEiVnhS8/ePay9F+euDRa9/bxLOBjDzROy1N1KR6ikZp8N2t4p X-Received: by 2002:a63:5a13:0:b0:477:8fed:8122 with SMTP id o19-20020a635a13000000b004778fed8122mr6898517pgb.346.1669165502084; Tue, 22 Nov 2022 17:05:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669165502; cv=none; d=google.com; s=arc-20160816; b=iLORE48v7aOLAXv7cHHsxvvRBMCGT8KSLfmP+ubltDncq9mlfx5EdjqX8vbsILuwiM Th9Gc1uwjxVchjHNpfayWZs2XNWmABc4grMuf/DybJoiHXyTwW+urY4cwo4WkkjC4j6r gZAMbTnKa8DhMHfwnZc8kFaW764d69NKHhqzBLAAnin0rQ8bQNJqMNey/K7Pj82sAMxd 97rmaYGdIEJEIAKffOeGBfYsDE0GWxsLqRA73yZrqbzk3b6FWCDv6VbM+DLwkW8s39go sljStLM867FvTeEBFrZNL9o7x2O99Hjyi39eAEw9S8RFoWwp1H8iSMc57zIPrtnb4ddT KFTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=7JGHF7Xo09Kc3TqHHShC0qfEDTU4C0GmO3GG+DrUXDs=; b=b+54bDF5NXkZ0IFAWa6mPTDxabXsWp/wkOarUp7QJPVtEZm1AJjJt7/6GpHEUhYu88 wdgDgKWNd7RrI8IQo/nIfhG1zn+ZF9kBRoK/ZtSDpYWi2htFZJXF7J0vAa9pS+RtsrrZ gbqmtQoCaMexKHJSgid3K0+VAa/hQ/FoqwMZ5vSt5cLHEYym+xU2JJOpqx6jJbXAqr8e qfmtWg7W0CXejl7RU3ZsmH4czvI/VsKvDkHLgvLZ0q+T9C8TqjE4FbHUfN6Mq0r6hMov bzZ+ojRAXI9GE/+aS473grMmn4f+61WnvPZCSNIq26b+DFE8/8LeG1FPhxb9ZkkMCcB3 soQA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4-20020a656944000000b004772cf9ae7esi1822072pgq.284.2022.11.22.17.04.48; Tue, 22 Nov 2022 17:05:02 -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 S235379AbiKWBD7 (ORCPT + 99 others); Tue, 22 Nov 2022 20:03:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235016AbiKWBDr (ORCPT ); Tue, 22 Nov 2022 20:03:47 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EF68BDA4D1; Tue, 22 Nov 2022 17:03:45 -0800 (PST) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8DxM_BwcX1jmyMAAA--.434S3; Wed, 23 Nov 2022 09:03:44 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxJldqcX1js24YAA--.45400S8; Wed, 23 Nov 2022 09:03:44 +0800 (CST) From: Tiezhu Yang To: Shuah Khan , Shuah Khan Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 6/6] selftests: kselftest_deps: Use "grep -E" instead of "egrep" Date: Wed, 23 Nov 2022 09:03:33 +0800 Message-Id: <1669165413-12035-7-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1669165413-12035-1-git-send-email-yangtiezhu@loongson.cn> References: <1669165413-12035-1-git-send-email-yangtiezhu@loongson.cn> X-CM-TRANSID: AQAAf8CxJldqcX1js24YAA--.45400S8 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvdXoWruFWrur1kGFy3Gr1fJw17trb_yoWkKFXEvr W8trykAr4UZF1DArWUua4UAFWkCw4jkF4UCryUGwnxt34jvF45GFs3ur1jy3WrWws8W3y2 va1kZ3WfKr1Y9jkaLaAFLSUrUUUUbb8apTn2vfkv8UJUUUU8wcxFpf9Il3svdxBIdaVrn0 xqx4xG64xvF2IEw4CE5I8CrVC2j2Jv73VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUY j7kC6x804xWl14x267AKxVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3w AFIxvE14AKwVWUXVWUAwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK 6xIIjxv20xvE14v26ryj6F1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7 xvwVC2z280aVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv6xkF7I0E14v26r4j6r4UJwAS0I0E 0xvYzxvE52x082IY62kv0487Mc804VCY07AIYIkI8VC2zVCFFI0UMc02F40EFcxC0VAKzV Aqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUtVWrXwAv7VC2z280aVAFwI0_Gr0_Cr1lOx8S 6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxAIw28IcxkI7VAKI48JMxC20s026x CaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_ JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r 4j6ryUMIIF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4v20xvaj40_ Jr0_JF4lIxAIcVC2z280aVAFwI0_Gr0_Cr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8Jr UvcSsGvfC2KfnxnUUI43ZEXa7IU8l38UUUUUU== 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750246885910633762?= X-GMAIL-MSGID: =?utf-8?q?1750246885910633762?= 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/testing/selftests` 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 --- tools/testing/selftests/kselftest_deps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kselftest_deps.sh b/tools/testing/selftests/kselftest_deps.sh index 708cb54..7424a1f 100755 --- a/tools/testing/selftests/kselftest_deps.sh +++ b/tools/testing/selftests/kselftest_deps.sh @@ -90,7 +90,7 @@ pass_libs=() pass_cnt=0 # Get all TARGETS from selftests Makefile -targets=$(egrep "^TARGETS +|^TARGETS =" Makefile | cut -d "=" -f2) +targets=$(grep -E "^TARGETS +|^TARGETS =" Makefile | cut -d "=" -f2) # Single test case if [ $# -eq 2 ]