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