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: 13092150 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93101C54EBC for ; Sat, 7 Jan 2023 13:32:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231867AbjAGNcS (ORCPT ); Sat, 7 Jan 2023 08:32:18 -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 Precedence: bulk List-ID: X-Mailing-List: linux-trace-kernel@vger.kernel.org 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)