From patchwork Thu Dec 1 02:49:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tiezhu Yang X-Patchwork-Id: 28167 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp43006wrr; Wed, 30 Nov 2022 19:04:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf5LLG0g6LxWkYtAXy5uwmTYwm2pjMgDcWMx6xq6cdcwXOBJxNqPyHrYmr45gabpMxv2+MyK X-Received: by 2002:a63:5641:0:b0:470:48c2:3aa1 with SMTP id g1-20020a635641000000b0047048c23aa1mr38037805pgm.45.1669863893159; Wed, 30 Nov 2022 19:04:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669863893; cv=none; d=google.com; s=arc-20160816; b=pxi7kvt1cJB8hrA1kzzTC5usmhKGjqcKXbgsQHnTQI0/vyaKAk0y9a54HZkcE4PbHP MsmgLs7jIcNvWiZKnATDYPJQs6F+6NyB7TIieiMlS8Y4vNFD5nbqIzwrq4rKKreFEiet opW5OiEvvB347Y56HrKY0aD1TGsa7J79LtBEQujHdvVS3O0mlP0qd66cnX7AX+L6IO+O j2zQ9KNKK+i4myoYShJyLoOhpLxce1Q5G4aytK3dGbDan93KVjpDMx6VHqH4i5GtiKgL SQn7s5cI8oBL3+hN2vN3T4KwKca1nbVPpkYbUXxgpVCBLlYX25uwBZT306NpgwVvARtY ljhw== 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=RJMy7lGrbE0RfpSxXmUJ+8l1vT6sYS6hr2nwUcRf2Vo=; b=ATujemcFLksef/gtBY/jDTWe5ZyD9+5HTcHPv/B78YrEHffX5PwAsZfkUSBZyCLajQ JafAY6ipfQPpzjKV7flM5pQnOhC8UMzPqrYsEWFvFDOiXfrB1CCYt+M9lnVmeSJ2/qAS tjMPoeK7ZqGvS2WG/YflazAaEy7sBF9GPtwMAHKL1fXsSBVXowXgm9O4iaOQtzurpsIF VIq3HiaFqZQeCoqQz9HszpGc7dO0VOt9L5eIi8aQ360odrYW15047Q6WhHBOqGhs1OW0 6l6xUb9kVAC1L02XAPRFE8sQCX0eWPK+eBwXjrb8FVSLfb7IA7kW93p/MNV99R7oR+C6 4AqQ== 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 f9-20020a056a0022c900b0056ce0f64370si3682747pfj.108.2022.11.30.19.04.40; Wed, 30 Nov 2022 19:04:53 -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 S229704AbiLACuJ (ORCPT + 99 others); Wed, 30 Nov 2022 21:50:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229513AbiLACuE (ORCPT ); Wed, 30 Nov 2022 21:50:04 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7F74D98388; Wed, 30 Nov 2022 18:50:02 -0800 (PST) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8AxDOtYFohjmXwCAA--.5743S3; Thu, 01 Dec 2022 10:50:00 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxTuBVFohjHwQjAA--.21270S2; Thu, 01 Dec 2022 10:49:58 +0800 (CST) From: Tiezhu Yang To: Michael Ellerman , Nicholas Piggin , Christophe Leroy , Shuah Khan Cc: linuxppc-dev@lists.ozlabs.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] selftests: powerpc: Use "grep -E" instead of "egrep" Date: Thu, 1 Dec 2022 10:49:57 +0800 Message-Id: <1669862997-31335-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf8BxTuBVFohjHwQjAA--.21270S2 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoW7uFWUCFyxXF1ktF47ur45Wrg_yoW8Gw1xpa 48C34YvrZagFy7XF4UGF42gFW8KF4kArW8WFWrJrWDZFs8Zas2qryftF47JFnxWrWkta1r ua9akayFkr47G3DanT9S1TB71UUUUjUqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU b3kYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s 1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwA2z4 x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v26r4UJVWxJr1l n4kS14v26r1Y6r17M2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6x ACxx1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r126r1DMcIj6I8E 87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82 IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1l4IxYO2xFxVAFwI0_Jrv_JF1lx2Iq xVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r 126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY 6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67 AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x 07j5xhLUUUUU= 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?1750979201845128264?= X-GMAIL-MSGID: =?utf-8?q?1750979201845128264?= 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 using "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 --- As Shuah suggested, this patch should go through powerpc/linux.git 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}')