Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1965804rwd; Thu, 15 Jun 2023 19:21:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4U2Mx7YXwohOFPP0uteZk7IZF46loOUZ3abEL8e+NJBzPqbzjFEsXX+RsmoEPvOrPwqV8j X-Received: by 2002:a05:6808:20a9:b0:398:2b78:3272 with SMTP id s41-20020a05680820a900b003982b783272mr1119267oiw.26.1686882062791; Thu, 15 Jun 2023 19:21:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686882062; cv=none; d=google.com; s=arc-20160816; b=lv9Ebg/7Dq+8HWr0he8WdFsOUeCtND071/sHhAo65L1CbkoS6YqzohAx25waihW5Ou UOPdiLvOJMn8/zHMwhzUQxOW+eaa84N8Nlpac8fyR/w9fHpvFGZm4yJteghjv/HRbGlc +Sl+5u0RVi0Jdkn3BN8nK3CkNRNWUCt1h9XsAOGtPKJDYYVFyEuhB5fFpEZ+aAlCh8Zr XhC7AmkyQ5Ofw2GMPpgQUwusBrtMlS+LQWvqllIBe3iqcAec5pP8ONei7NmkFn4xQa2E PUyJ6Dg9m+/yq651LCEmcQ5girEU1ToGnBC5PdnERevyjyeOjFaf1ayh6LSIz0BCW8lV zKhA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l8-20020a637008000000b0054f993c6e36si7991040pgc.481.2023.06.15.19.20.47; Thu, 15 Jun 2023 19:21:02 -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 S239085AbjFPB4S (ORCPT + 99 others); Thu, 15 Jun 2023 21:56:18 -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 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 && \ -- 2.1.0