From patchwork Fri Jun 16 01:56:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tiezhu Yang X-Patchwork-Id: 108783 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1040720vqr; Thu, 15 Jun 2023 19:19:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4+0Sp4y0l0UgPbKlWVMQT12ZekOrszVmeFdcBFqbMFU+ANa9CjZr8LWWN1zaOKqqxhIKxZ X-Received: by 2002:a05:6358:458:b0:129:d027:3a62 with SMTP id 24-20020a056358045800b00129d0273a62mr418787rwe.16.1686881978871; Thu, 15 Jun 2023 19:19:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686881978; cv=none; d=google.com; s=arc-20160816; b=kNt5fQX+YIpL9uBt+LIZUj1W15fqepXI6ch28a7XrMg+XVnBxLt77xRhl3TkuLL1Ly qKEvJ/MH9t5w7fwoRKgL1OjzbwpXznGAnOKl72NcGYvnbe17i8u8nWx/1P7LsWqFK6qW AJsMYoqMA3oz+UTdFUMy3MzdsPwIW+XLlxPBmbZL0fo3HW4oZcE97+VZT1EiBFM39kHD em9nw2LGCTcUrVPXHt4wONomFZ5GtZ9nsEyfNi7/nyfqp1bqFowtMYOap7LNF3GHFDEZ I7DTZRin89ebkuy5bc1O2RXlRRsC9MPeRoW5iJaizsyCVLefihI0s9TMuU3MiAoHUpBZ HJZg== 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=I5bQpUMJsKXrMcEdVR01LfQjEHLyw6FW1N5n3xPmhMU=; b=EpcVjDTHd57Od6WTNuRvMYx5cbWYH6mKU75T4xNfZ/AShIJGw0yCVBX4qXJ8MYZjIW Q9p2RymT50n8ZXOUvdBm+u4xg6oGnl+GgsHGJm9GjtKBqAtPjvQQdGqupoUvd8r66qxp uzu0qKLjmmHc3ZPwud7tPvz+VQq/cSO0/oX804GVDrU03V4H4Bk5toVD0bnHAlnW8c6q jcNdOyfuZDME1jnp7M1T7O7PZP0YjJN9HpJfEoRSlW/oPQA7i7lMb3hYv9HmdgMbqxwZ EmlyztqKiXo2e0g+4lRGs76i1HvlYOe9ThQHeIHG8d9x2YeOyYb3Wlew34jvt7LA+QoE Syyg== 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 2-20020a630b02000000b0053f2551834esi14262024pgl.735.2023.06.15.19.19.24; Thu, 15 Jun 2023 19:19:38 -0700 (PDT) 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 S239118AbjFPB4U (ORCPT + 99 others); Thu, 15 Jun 2023 21:56:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbjFPB4Q (ORCPT ); Thu, 15 Jun 2023 21:56:16 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CCCB3AC; Thu, 15 Jun 2023 18:56:14 -0700 (PDT) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8DxSuo9wYtkVcoFAA--.12199S3; Fri, 16 Jun 2023 09:56:13 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxC8o8wYtkjL0cAA--.6837S2; Fri, 16 Jun 2023 09:56:13 +0800 (CST) From: Tiezhu Yang To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo Cc: Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , Leo Yan , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn Subject: [PATCH] perf tools: Use "grep -F" instead of "fgrep" Date: Fri, 16 Jun 2023 09:56:07 +0800 Message-Id: <1686880567-30017-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf8BxC8o8wYtkjL0cAA--.6837S2 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBj93XoW7CFW7Kr4DCF1fJw1DGFy7twc_yoW8GF43pF Z8Ca47tr4rJa4ktFZrCrsFqF47tr93ZFy8Cr1YgrsrJFn5X3WxJr13JF45uF15XFZYv3yF ka97KF43GrW2vagCm3ZEXasCq-sJn29KB7ZKAUJUUUUk529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUBFb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Xr0_Ar1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6r4j6r4UJwAaw2AFwI0_Jw0_GFyle2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0c Ia020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jw0_ WrylYx0Ex4A2jsIE14v26r4j6F4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwI xGrwCY1x0262kKe7AKxVWUtVW8ZwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWU JVW8JwCFI7km07C267AKxVWUtVW8ZwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4 vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IY x2IY67AKxVW8JVW5JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26c xKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7CjxVAF wI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07jTq2NUUUUU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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?1768823957361708633?= X-GMAIL-MSGID: =?utf-8?q?1768823957361708633?= There exists the following warning when execute perf test record+probe_libc_inet_pton.sh: fgrep: warning: fgrep is obsolescent; using grep -F This is tested on Fedora 38, the version of grep is 3.8, the latest version of grep claims the fgrep is obsolete, use "grep -F" instead of "fgrep" to silence the warning. Signed-off-by: Tiezhu Yang --- tools/perf/tests/shell/record+probe_libc_inet_pton.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/tests/shell/record+probe_libc_inet_pton.sh b/tools/perf/tests/shell/record+probe_libc_inet_pton.sh index 0934fb0..89214a6 100755 --- a/tools/perf/tests/shell/record+probe_libc_inet_pton.sh +++ b/tools/perf/tests/shell/record+probe_libc_inet_pton.sh @@ -14,7 +14,7 @@ . "$(dirname "$0")/lib/probe_vfs_getname.sh" libc=$(grep -w libc /proc/self/maps | head -1 | sed -r 's/.*[[:space:]](\/.*)/\1/g') -nm -Dg $libc 2>/dev/null | fgrep -q inet_pton || exit 254 +nm -Dg $libc 2>/dev/null | grep -F -q inet_pton || exit 254 event_pattern='probe_libc:inet_pton(\_[[:digit:]]+)?' @@ -94,7 +94,7 @@ delete_libc_inet_pton_event() { } # Check for IPv6 interface existence -ip a sh lo | fgrep -q inet6 || exit 2 +ip a sh lo | grep -F -q inet6 || exit 2 skip_if_no_perf_probe && \ add_libc_inet_pton_event && \