From patchwork Sat Jan 7 13:32:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Masami Hiramatsu (Google)" X-Patchwork-Id: 40390 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1301588wrt; Sat, 7 Jan 2023 05:33:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXu/m/nwj+zafR/qVF/h6DMRu7dbpZi9y59WabS9i2S7a95vXEbGkBle1TYF1eIMkEbuuaUz X-Received: by 2002:a05:6402:1caa:b0:46c:72fb:3810 with SMTP id cz10-20020a0564021caa00b0046c72fb3810mr58669663edb.41.1673098421409; Sat, 07 Jan 2023 05:33:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673098421; cv=none; d=google.com; s=arc-20160816; b=gb3pHqQTX+p5NhgKrM8Sha9UzpmfpxFZsOO+T95NUaVip3EZC+XomNwV1HSbvY73kX Iyy1DvbWKkGKwS1zjf4DlsABQqtl6auidSRQOT62I0mVxAs9qGbtLQyIw6nk3D3IGC9v 5zT2CpnkybtI3ZMVJvGBcZYWiSbMbboNimAQfhDQij7AGI5JnYS9XR29bMjeEEAIHCMl ZDZMB65wvKTqEUeZs1ASWynS07D33yLMRgfwcqNg3fZoBkeWt8uIzKum5+5/C7eG+Oud +NspT1I5f0OcNEDsyQSyAgUKI95RJNZY8inFwxTvUVqAPpoXcihfmrFVOeecsTXQFql2 m2qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7oQcUBGZ6FAOS9dRczGRXcqnao95hB7tTmg4QXFwb6U=; b=TKBoaPo5YX6nzCUe8dg3F5Veurzfc3iLMeuw/A8N/NRTmUJ++0QKhje8FzZ0gIPaMb 2TxlXuniBNW7bpkEZDoM+CMjyTHdYm+aB75wZ82OeNM+uaNjhu4P3RG+/Dyr01FjPiBZ JTQdFug/WwWJlvDorrVoCXDrUS4fJV1iGuK1tKTzCZUdXwcHLQGYavnxSAjutk6ghHLm oXiXVZTS97zaekIm6jupbELJ3jyxa5s1H1CsUncc+tHH/aBrmb1S5tE1DLepEkEAzo02 lpiraY/0GMX/aRA5Fz4Q9A6RY4Mwiw0BGe0DEMZEVpXt9ykQ0eW0S8zS7POBYx3ez8DU DMJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="PNrzDEV/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d2-20020aa7d5c2000000b004844fcb5435si3896110eds.313.2023.01.07.05.33.17; Sat, 07 Jan 2023 05:33:41 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="PNrzDEV/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232174AbjAGNch (ORCPT + 99 others); Sat, 7 Jan 2023 08:32:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232135AbjAGNc0 (ORCPT ); Sat, 7 Jan 2023 08:32:26 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E6315E0A5; Sat, 7 Jan 2023 05:32:24 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5D962B810AA; Sat, 7 Jan 2023 13:32:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9EC7AC433EF; Sat, 7 Jan 2023 13:32:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673098342; bh=HGJHlcKefwA/vKHzLOsju9wxMYeQUgD1tHvIeGZhwP4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PNrzDEV/aOPxQaA9ne4EU1emyfiqMkOkcV/hymisgM67DzCy+jw+H10Yk0C2JmRYy aw1l9jmWeMlBEBn6wfTSI9E5WrJNaohNhPM+WMZDdDLXadkoWTfQyBXyUsmCwCsXZf rjrJS6uZ1PBqfXcDDfCY1AnsS4Kad4vhnags7NvDnmq3v5HBDsVmWU3ZmdysSDeT1X USleihtE+VMLLWG4yLVDSwuSCXsvqLAfe7+WNkaP/v/FMc+I9IezXffJ1Yi6DyWocZ E8/rGGNtzQ2LCwW8vxulw+ytnxPFFKOE9kEoZtZJQpKQC6pMYsQnA3sRWqKA+rHsPP FbMVepdiY9JcA== From: "Masami Hiramatsu (Google)" To: Shuah Khan , Steven Rostedt Cc: Masami Hiramatsu , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH 1/3] tracing/eprobe: Fix to add filter on eprobe description in README file Date: Sat, 7 Jan 2023 22:32:17 +0900 Message-Id: <167309833728.640500.12232259238201433587.stgit@devnote3> X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-goog In-Reply-To: <167309832823.640500.13244630381161014364.stgit@devnote3> References: <167309832823.640500.13244630381161014364.stgit@devnote3> User-Agent: StGit/0.19 MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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?1754370850578444073?= X-GMAIL-MSGID: =?utf-8?q?1754370850578444073?= From: Masami Hiramatsu (Google) Fix to add a description of the filter on eprobe in README file. This is required to identify the kernel supports the filter on eprobe or not. Fixes: 752be5c5c910 ("tracing/eprobe: Add eprobe filter support") Cc: stable@vger.kernel.org Signed-off-by: Masami Hiramatsu (Google) --- kernel/trace/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index a555a861b978..d0c22766dc26 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -5598,7 +5598,7 @@ static const char readme_msg[] = #ifdef CONFIG_HIST_TRIGGERS "\t s:[synthetic/] []\n" #endif - "\t e[:[/][]] . []\n" + "\t e[:[/][]] . [] [if ]\n" "\t -:[/][]\n" #ifdef CONFIG_KPROBE_EVENTS "\t place: [:][+]|\n" From patchwork Sat Jan 7 13:32:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Masami Hiramatsu (Google)" X-Patchwork-Id: 40391 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1301649wrt; Sat, 7 Jan 2023 05:33:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXutP9iRM6bn8KXmN+1aMvyRX1O8AnMysPTeuQmLxiYvdvQJIFwaEbHOzc1YCfGrTQEiZ5rh X-Received: by 2002:a17:907:c99d:b0:7c0:d88b:1695 with SMTP id uj29-20020a170907c99d00b007c0d88b1695mr41986117ejc.55.1673098431022; Sat, 07 Jan 2023 05:33:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673098431; cv=none; d=google.com; s=arc-20160816; b=M+34JaEtX5XpbHmwsC0fHal7J2/grLH6EOOj8qCRJzPM8/p9eH5LsR5bH+pEbQOHLO K4kDXpj+sXYEX18BFbdLw5MFyCGJn4OJ966ewEmwJjqHJ32S35SwSf7wpIq37aO6ITP3 X/OAWPyNbbpBioNIzY2GqhRu6HZuiHryPMa2YH+QNxpt9FD0BKQU54PYSLypA+ludlcv JZ/rt+R6qMwjRb8d7e6LB4Q80YDQpyMuQsUPEgB3tpmyw+ubq1I8ZHbacyObvZrTOHwb QMTmqivSrypjmpgDFd3PIwWWn/kaPXYQ9vIv2COVTenRgrtwtO9v+T5zXOlZITarnm4n Show== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5KD/neCXahvlLCAqYMTGX8R3zjwWQqiXchPJRv/3DJc=; b=bqtVGYAYr96U19pYdxYOvvCxkeLSPC2EkG6S0tRuUkmKgBI1s9lflopAJ/Zsk59lkv CnBMuA4YzfGBtfG5P4oByO7HnnAOmIdR8Edkz0PPUD7/rlI2yol7B0/nc5efaI/trjPV tyL22sFp+o5M1FrkYrVS8daw/J4TMpp/dOg0TcL91cKK8g/RjQEuFot4uJWPBb2AWTps wgCeENrbZTXwNt8ZVRbbzpnfLrKWsPCV5z9G8VtvO1leloyhMBZjaA0bhC9bP8pYmvcA 98TvGR4D+c9dYcqA8YnizpZgh6xDfXQzToFEx0vjTaqQFLkC2Vikk8kbYBENFydLvtaj hN2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kX2M9ZVP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dn7-20020a17090794c700b007897abd2d17si4649695ejc.468.2023.01.07.05.33.27; Sat, 07 Jan 2023 05:33:51 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kX2M9ZVP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229475AbjAGNcw (ORCPT + 99 others); Sat, 7 Jan 2023 08:32:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231859AbjAGNcd (ORCPT ); Sat, 7 Jan 2023 08:32:33 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C98795D415; Sat, 7 Jan 2023 05:32:31 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 575A360C14; Sat, 7 Jan 2023 13:32:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B3D1C433D2; Sat, 7 Jan 2023 13:32:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673098350; bh=lA+rE8kKU4UerwopcQ1eDt8yxXIRd212goJdv8X2Ulo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kX2M9ZVPoclER5r+AYgjQNDSJPnG2X0VHHYExO94dzwNPeeIwexodLfSdEtSHz53T bRIVV77kkNHpyFAG0a3VQyfdq7TJ/tJZcYHCehITGUgcpAsHb/yFmG6hV+uyCHlG3W bGMNDuAVxWUt0bzV62ordUOSXhHNPsKi2fi6PEyThPykZUoVpV+CAolu2JAKwUcwzL cCBW3jih6ABBjXOxH4YtoU+S0iTZhLYXUwZUGGhWz7uEZ8Av0Wr7LTav/vja7VdFJM PSmtvrlnuouQVx5BrVyq1kH/3eOds0fy9dbhURyXv7uKocmtRLcUIZfA3j6Rh/9xKx K+U9yjfSNjhng== From: "Masami Hiramatsu (Google)" To: Shuah Khan , Steven Rostedt Cc: Masami Hiramatsu , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH 2/3] selftests/ftrace: Fix eprobe syntax test case to check filter support Date: Sat, 7 Jan 2023 22:32:27 +0900 Message-Id: <167309834742.640500.379128668288448035.stgit@devnote3> X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-goog In-Reply-To: <167309832823.640500.13244630381161014364.stgit@devnote3> References: <167309832823.640500.13244630381161014364.stgit@devnote3> User-Agent: StGit/0.19 MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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?1754370860735921275?= X-GMAIL-MSGID: =?utf-8?q?1754370860735921275?= From: Masami Hiramatsu (Google) Fix eprobe syntax test case to check whether the kernel supports the filter on eprobe for filter syntax test command. Without this fix, this test case will fail if the kernel supports eprobe but doesn't support the filter on eprobe. Fixes: 9e14bae7d049 ("selftests/ftrace: Add eprobe syntax error testcase") Cc: stable@vger.kernel.org Signed-off-by: Masami Hiramatsu (Google) --- .../test.d/dynevent/eprobes_syntax_errors.tc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/ftrace/test.d/dynevent/eprobes_syntax_errors.tc b/tools/testing/selftests/ftrace/test.d/dynevent/eprobes_syntax_errors.tc index fc1daac7f066..4f5e8c665156 100644 --- a/tools/testing/selftests/ftrace/test.d/dynevent/eprobes_syntax_errors.tc +++ b/tools/testing/selftests/ftrace/test.d/dynevent/eprobes_syntax_errors.tc @@ -22,6 +22,8 @@ check_error 'e:foo/^bar.1 syscalls/sys_enter_openat' # BAD_EVENT_NAME check_error 'e:foo/bar syscalls/sys_enter_openat arg=^dfd' # BAD_FETCH_ARG check_error 'e:foo/bar syscalls/sys_enter_openat ^arg=$foo' # BAD_ATTACH_ARG -check_error 'e:foo/bar syscalls/sys_enter_openat if ^' # NO_EP_FILTER +if grep -q '\..*\[if \]' README; then + check_error 'e:foo/bar syscalls/sys_enter_openat if ^' # NO_EP_FILTER +fi exit 0 From patchwork Sat Jan 7 13:32:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Masami Hiramatsu (Google)" X-Patchwork-Id: 40392 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1301694wrt; Sat, 7 Jan 2023 05:33:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXu9O5HgU4SzrR1ix2HXhczzki5aoLgTtfNbhLE+XSGGsrNwenKiXWq3k1smXL7WfCYReeLT X-Received: by 2002:aa7:d7c2:0:b0:472:cee9:bbd3 with SMTP id e2-20020aa7d7c2000000b00472cee9bbd3mr52359931eds.27.1673098438744; Sat, 07 Jan 2023 05:33:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673098438; cv=none; d=google.com; s=arc-20160816; b=r7K9cvaTuz1jiJivhk/E/UYkqZ8pxKj+mOzQ4ELf6H4yePNB0DakZGH/1/qZAq8TOg yN/F0wZXGVp5NIE5D9KqG2ImWLt/Ddv7XjdhP/BDDyY8MMaawNHgy6L49WLNNObIwHZE c6LJziK+uCaffKU9M9XOv9BGQ6NTdSvNalJF88HlBeq4i8LH9f6mPT1+7dmfyQqaQi37 0WfAVZlUn+EObhVPTMq/xBedABnCKosvV0HM3rc9QQgLTOVp1MpnfEHJju+BVQANSSfo AZ/rcT7Ni7wTn6tkqSQYUYU+yh+YFCjfAs2M83TJupB80R2Td14jptRXL5rsaYRBC9lp Xafg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=28E7gdYazt531c2beqCT8itDtKdSeodKvxC3nw5q6lI=; b=DnVsO7gATUmnL6ynJcsh0Zg6JogHKem8l+FNJmgrORI3vc1LLXDTikjYytkA5h+r87 4noJMm6IawtIRxluYJ2VuZTJPxtLr8kGb6o3dft1Zx7zP17UGodjL3boWBHuYnkOSHc9 DMi1gU0dQ2G8PcxpBXjPhg04WYvk59/hXHYIE9NcXlQ5RewIRb8Qacol8rjFFvQtdFsq 98Ade0LhkfKF5KE9RtSO/pho7gzC8a5UvRWHNhUlqYFTVncTGp3GCVxXHVzCBipm/M9a kHBUVFnevJh0PVwzRbFIyMQ7wgqyhR9Tzh76Gy7I7LiFsMC3usZ8et47H2qwvdVqYj2j fJ9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u5v0ZpD7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r19-20020a05640251d300b00485220caa05si5191029edd.597.2023.01.07.05.33.35; Sat, 07 Jan 2023 05:33:58 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u5v0ZpD7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231859AbjAGNdO (ORCPT + 99 others); Sat, 7 Jan 2023 08:33:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232342AbjAGNcl (ORCPT ); Sat, 7 Jan 2023 08:32:41 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B1305E0B7; Sat, 7 Jan 2023 05:32:41 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9B1E960C08; Sat, 7 Jan 2023 13:32:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B7D7C433EF; Sat, 7 Jan 2023 13:32:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673098360; bh=QQjmgf5W/T/Kzs3A2mqRoW9fGZAadyb1nwhZ/JNs3Uo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u5v0ZpD7GrnovovNTeycO7D8G9AusoUDyOmMLdWFRQXW2hGZat6+XCcMYZlvUIkcr 3Si5qSbWy8UEMjnx2xg7tuPr4jsi2uaBf67bpkW0xmc+kGAUUDNVQ7xpGCayNWXlFj 7fV2ib8aRBgK1Ke1cZZFM0N8y1sMS89yuTJKvRZMMCbMynFiAuZjCi4vjoEPyRP0lI pkwq2Jpme+73ahSaxONYJ7Wbi9aRRhYrCgshZxV/39CTOqBQ+9ZivZ3yzD7hWqI5Vc mKR908XXakWA0rznLWnDbW+DrZ0nghg7Wr6JPBqAyRmn5+OZxVKFByLJkaryo9D/DC vGOoyXIfw6NCQ== From: "Masami Hiramatsu (Google)" To: Shuah Khan , Steven Rostedt Cc: Masami Hiramatsu , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH 3/3] selftests/ftrace: Fix probepoint testcase to ignore __pfx_* symbols Date: Sat, 7 Jan 2023 22:32:36 +0900 Message-Id: <167309835609.640500.9664678940260305746.stgit@devnote3> X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-goog In-Reply-To: <167309832823.640500.13244630381161014364.stgit@devnote3> References: <167309832823.640500.13244630381161014364.stgit@devnote3> User-Agent: StGit/0.19 MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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?1754370868552112725?= X-GMAIL-MSGID: =?utf-8?q?1754370868552112725?= From: Masami Hiramatsu (Google) Fix kprobe probepoint testcase to ignore __pfx_* prefix symbols. Those are introduced by commit b341b20d648b ("x86: Add prefix symbols for function padding") for identifying PADDING_BYTES of NOPs. Since kprobe events can not probe these prefix symbols, this testcase has to skip those symbols. Fixes: b341b20d648b ("x86: Add prefix symbols for function padding") Signed-off-by: Masami Hiramatsu (Google) --- .../selftests/ftrace/test.d/kprobe/probepoint.tc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/probepoint.tc b/tools/testing/selftests/ftrace/test.d/kprobe/probepoint.tc index 624269c8d534..68425987a5dd 100644 --- a/tools/testing/selftests/ftrace/test.d/kprobe/probepoint.tc +++ b/tools/testing/selftests/ftrace/test.d/kprobe/probepoint.tc @@ -21,7 +21,7 @@ set_offs() { # prev target next # We have to decode symbol addresses to get correct offsets. # If the offset is not an instruction boundary, it cause -EILSEQ. -set_offs `grep -A1 -B1 ${TARGET_FUNC} /proc/kallsyms | cut -f 1 -d " " | xargs` +set_offs `grep -v __pfx_ /proc/kallsyms | grep -A1 -B1 ${TARGET_FUNC} | cut -f 1 -d " " | xargs` UINT_TEST=no # printf "%x" -1 returns (unsigned long)-1.