From patchwork Sat Jan 7 13:32:08 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: 3692 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1301538wrt; Sat, 7 Jan 2023 05:33:33 -0800 (PST) X-Google-Smtp-Source: AMrXdXuq9M9A/Uz+8lLNKxQPPAcg8AvDS7q+eJCMMuj4MS+EtxyyA+kK88MxE1Nhuk3Zvzhd3sUo X-Received: by 2002:a05:6402:b3c:b0:47f:ab65:b3ff with SMTP id bo28-20020a0564020b3c00b0047fab65b3ffmr44934385edb.35.1673098413205; Sat, 07 Jan 2023 05:33:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673098413; cv=none; d=google.com; s=arc-20160816; b=ZQdRjeRKxO5obFjGCq86+YIqoG+jFUB7JKfWGWxwxkWDFpPj0bHpnKl9dthm5jhl9A 68pecIwxb0YJ1d4OiUr6ZOMMhLehh5Go83ZfxH3yNW7Di67Y0HzH0TC5H6TCO978zw0R H652E9QofaTy+jKjriIiQRGTmIkS5Kzn0k7ro1C2/HY7Y7E9spgmL/1ZgHiFTc8WpmZx gZedVj/g9QeJyMdV71i6HSNbPQX/5pALqtKkUEe7qoIlvcQw5tyoCPLnJamDtkHBJgK7 xChJGArYrNWLncFlMA7eTdJmGHfFgtcELpmdgSNvKQOqifQVW70QkahL0ccXptX+yigt zSgA== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=n/+4L7mAdMbhy8qXnxgZ3V/3ufCT8xqJDEF1JLYr4ck=; b=YhjwnVrHk1E83lvtSOsloLpV6QQP8jc4POr8qbJzVYbjV0pI/CKHdXjFy3QsrOQaML zNdFFCHag1w5vftSpu7SZMmjvQUDoNbDRhN60ryz9o1ZtYSkXAXgP6XzdjYCCviuReuZ Se6Xve+7c/RrxqP3MbnO1ycxA4GTd0DXUJ1Ny3r0+QpNGYSVS5WZKyBgijH6Zv9qeAt0 5eSJoobXL5xjgIzfEHTDjkClWhsShCaHCbg4HRc/SJO6JsFB4IK2cQlovIS3DqT/PyKb xYci46WfcxD8bNvpXB8tXHr9EiEZASkHm5M1xKPYljQeXE856PUVear1WSEtSlaqVSyV 4E/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BDzvTJeU; 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 i27-20020a50871b000000b0046b2327bf88si3943538edb.76.2023.01.07.05.33.09; Sat, 07 Jan 2023 05:33:33 -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=BDzvTJeU; 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 S231218AbjAGNcU (ORCPT + 99 others); Sat, 7 Jan 2023 08:32:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbjAGNcQ (ORCPT ); Sat, 7 Jan 2023 08:32:16 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 924105DE56; Sat, 7 Jan 2023 05:32:14 -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 43C7BB810AB; Sat, 7 Jan 2023 13:32:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3767C433D2; Sat, 7 Jan 2023 13:32:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673098332; bh=/hMzieqMHtR6JL4OjdNz+jKYqIqXve8DlL6+sdK1Zp8=; h=From:To:Cc:Subject:Date:From; b=BDzvTJeU2MqZNHiAConWZfdz2OVojsBipRJ9f6qmwARcf1QhRXgz4AqFYNaugImQs M+iTKhiYhQ6AUtBkUDUouX3Xhr7VLTddz0S4TieIumhFMtgDGDF23zYKv5fuWS6B75 /Ur2RoVQpNtqa5wn2ZHVdY5n8zc1OplgU1L7f4xLWXIJYk6l/wKHKgpQHXRJPLx8iX +D3YwMQjWNZ+U9Wkvwdh2h7y762zb8xQGxnqPM0SWeOHIrJIhvsJ1cuTpyoENpZGHK 2sfHAhjcVu+Jx2cRyDVxOeBD+B+2Qvrsq96tRlh6PwPwPG6deEgfruYprvxiv2ddrF DdhCFm5TufECQ== 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 0/3] selftests/tracing: Fix some testcases for recent change Date: Sat, 7 Jan 2023 22:32:08 +0900 Message-Id: <167309832823.640500.13244630381161014364.stgit@devnote3> X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-goog 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?1754370821758396693?= X-GMAIL-MSGID: =?utf-8?q?1754370841737832955?= This includes some patches to fix 2 issues on ftrace selftests. - eprobe filter and eprobe syntax test case were introduced but it doesn't check whether the kernel supports eprobe filter. Thus the new test case fails on the kernel which has eprobe but not support eprobe filter. To solve this issue, add a filter description to README file [1/3] and run the filter syntax error test only if the description is found in the README file [2/3]. - Recently objtool adds prefix symbols for the function padding nops, and the probepoint test case fails because this probepoint test case tests whether the kprobe event can probe the target function and the functions next to the target function. But the prefix symbols can not be probed. Thus these prefix symbols must be skipped [3/3]. Thank you, Reviewed-by: Steven Rostedt (Google) Acked-by: Shuah Khan --- Masami Hiramatsu (Google) (3): tracing/eprobe: Fix to add filter on eprobe description in README file selftests/ftrace: Fix eprobe syntax test case to check filter support selftests/ftrace: Fix probepoint testcase to ignore __pfx_* symbols kernel/trace/trace.c | 2 +- .../test.d/dynevent/eprobes_syntax_errors.tc | 4 +++- .../selftests/ftrace/test.d/kprobe/probepoint.tc | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) -- Masami Hiramatsu (Google)