From patchwork Tue May 21 00:00:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Masami Hiramatsu \(Google\)" X-Patchwork-Id: 798562 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C81A47A5C; Tue, 21 May 2024 00:00:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716249627; cv=none; b=t/c0Qa1LLQ3C7WZelLSzE0Pj/KnhYgDRRWSVJsnr/PmLfM5T4ZZBfzjwN5QZ2yrVi3oZ5OJiNY/1aUqaxZikaxPqtRXEE6OdvTjtjbwDsYFy46V+z0Fb++zQ7NNO+qnZ85/njCMxPBmvX0f81QUI59oakbYUS/rCP0JPW2U3DbM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716249627; c=relaxed/simple; bh=jj4W3Jmky7jkPSrRSpX/SZosaWUJN4HwRGmt9HwlUMQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=m9aajg5EIhHkowIOGe/TLoaOMyhQ37xtGoQN5uTUCE3EUno3Prv11/ZOtJXMM+GDBNm/HxgcVEKEyLYLNYLqiqTkWXYujHh5C20hu7zFfTJ5eL5Z8YzArnbYiiI/CKmCanxxpK9WKY6qbdxtWCAjuCdCbsTYlH5pbED90l4XW3s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=o1ckmqNP; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="o1ckmqNP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A330C2BD10; Tue, 21 May 2024 00:00:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716249626; bh=jj4W3Jmky7jkPSrRSpX/SZosaWUJN4HwRGmt9HwlUMQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o1ckmqNPaFfzKwJC7Hfs5lWAvpS2godiHKcBZZhAjHJMsWCz9POMEzVkBzE8ZFBmt x2w6KCfb0wDHmctkvs6Bp+FnME18lEmOcjNLHTN2GT2V/KAFypmzc8ATvi3BVtxNVs hpVK5EMW+kOxhIWSM7SXAnJe4ti+BhIbTj06aE+7k/PKlE0EJXps8JpCmKnXDVAynV mXEY43WrWNcFJLwNzfC74ZYGfxzaNRstljQJ2hpAW+tD/eTz6MK5gSkuBnqbML/m+Y dVwtFkKQ+ASHJE9ROht4SKaygdTI1CmsVTBZ576BAc6Dvj21jo1Vmr9m2wnLEc1jCY o9qd2VFmbkeJw== From: "Masami Hiramatsu (Google)" To: Steven Rostedt , Shuah Khan Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, mhiramat@kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH 1/2] selftests/ftrace: Fix to check required event file Date: Tue, 21 May 2024 09:00:22 +0900 Message-Id: <171624962273.252417.2474046620369030292.stgit@devnote2> X-Mailer: git-send-email 2.34.1 In-Reply-To: <171624961322.252417.15852003285637286674.stgit@devnote2> References: <171624961322.252417.15852003285637286674.stgit@devnote2> User-Agent: StGit/0.19 Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Masami Hiramatsu (Google) The dynevent/test_duplicates.tc test case uses `syscalls/sys_enter_openat` event for defining eprobe on it. Since this `syscalls` events depend on CONFIG_FTRACE_SYSCALLS=y, if it is not set, the test will fail. Add the event file to `required` line so that the test will return `unsupported` result. Fixes: 297e1dcdca3d ("selftests/ftrace: Add selftest for testing duplicate eprobes and kprobes") Signed-off-by: Masami Hiramatsu (Google) --- .../ftrace/test.d/dynevent/test_duplicates.tc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/ftrace/test.d/dynevent/test_duplicates.tc b/tools/testing/selftests/ftrace/test.d/dynevent/test_duplicates.tc index d3a79da215c8..5f72abe6fa79 100644 --- a/tools/testing/selftests/ftrace/test.d/dynevent/test_duplicates.tc +++ b/tools/testing/selftests/ftrace/test.d/dynevent/test_duplicates.tc @@ -1,7 +1,7 @@ #!/bin/sh # SPDX-License-Identifier: GPL-2.0 # description: Generic dynamic event - check if duplicate events are caught -# requires: dynamic_events "e[:[/][]] . []":README +# requires: dynamic_events "e[:[/][]] . []":README events/syscalls/sys_enter_openat echo 0 > events/enable From patchwork Tue May 21 00:00:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Masami Hiramatsu \(Google\)" X-Patchwork-Id: 797923 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7A0BF1CA80; Tue, 21 May 2024 00:00:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716249636; cv=none; b=QfwcjH6L9+kK5hybIwCjVfZRMhx1fdMAKaeMp3EjBzLNdk7I43b4a4MUxcXhMm8rH+Wx99zc5VzoOfCr/P4Z2YFqLT0/af/fJPWsclif2X6S0l3gW97Cie9IHykLlqesMBEtybDMXIHM2IZW67CghYjdcbxkf8GgSDUYv+/oldc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716249636; c=relaxed/simple; bh=zLkWSjlPxW/hZZcGzKZyW1un4mXdBq570gMuSM2iiEc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=fDiB53d/ejMMiN3Vb2mMVrIoI/+0dMscf42rxC/AFJgvCTNYjTx+J1C74Ksw3af7d/FV6vE5S27jp2lnmdyeHKSZBhi9REeMctjWhp62a5f0S2bnMpwUt/51vsMPRLpYHijcujOItRlJa8ze8sZ+SJ7Vf/0spi0QZPqABs4M6XU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=W30O/G2f; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="W30O/G2f" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80110C2BD10; Tue, 21 May 2024 00:00:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716249636; bh=zLkWSjlPxW/hZZcGzKZyW1un4mXdBq570gMuSM2iiEc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W30O/G2fCRUglUH76Q16mhIHHjRDe4v7wIUX3i0aS+yTSJ4IoeJn8MzxHK9iz7VzB 7US3RroA5o5CUSKGUM3WgHeUJW4px/oOqPFDELaAonvvD/mgAS2DMk3+h75WFufR3+ 2637l2+PKEN4q115gJs4e9c6kdJejZtp8e9FQaClg1BfCIIRr8yoIB05ywKAubIdlD hyyDRJPqRdKzHfywQHWzSyAQGSY707ka6upqCr9n94bKAVxoRQ8hwT+zBLITXErh6f bTfj6EUVjchRPvSrgtrc8g3SgVK5mf1ZPgSpsGqVHte+h9a2JOvSaVTXXLRL9iovNW lh0uMZ4PL+vEQ== From: "Masami Hiramatsu (Google)" To: Steven Rostedt , Shuah Khan Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, mhiramat@kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH 2/2] selftests/ftrace: Update required config Date: Tue, 21 May 2024 09:00:32 +0900 Message-Id: <171624963215.252417.12572658025062192987.stgit@devnote2> X-Mailer: git-send-email 2.34.1 In-Reply-To: <171624961322.252417.15852003285637286674.stgit@devnote2> References: <171624961322.252417.15852003285637286674.stgit@devnote2> User-Agent: StGit/0.19 Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Masami Hiramatsu (Google) Update required config options for running all tests. This also sorts the config entries alphabetically. Signed-off-by: Masami Hiramatsu (Google) Reviewed-by: Muhammad Usama Anjum --- tools/testing/selftests/ftrace/config | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/tools/testing/selftests/ftrace/config b/tools/testing/selftests/ftrace/config index e59d985eeff0..048a312abf40 100644 --- a/tools/testing/selftests/ftrace/config +++ b/tools/testing/selftests/ftrace/config @@ -1,16 +1,28 @@ -CONFIG_KPROBES=y +CONFIG_BPF_SYSCALL=y +CONFIG_DEBUG_INFO_BTF=y +CONFIG_DEBUG_INFO_DWARF4=y +CONFIG_EPROBE_EVENTS=y +CONFIG_FPROBE=y +CONFIG_FPROBE_EVENTS=y CONFIG_FTRACE=y +CONFIG_FTRACE_SYSCALLS=y +CONFIG_FUNCTION_GRAPH_RETVAL=y CONFIG_FUNCTION_PROFILER=y -CONFIG_TRACER_SNAPSHOT=y -CONFIG_STACK_TRACER=y CONFIG_HIST_TRIGGERS=y -CONFIG_SCHED_TRACER=y -CONFIG_PREEMPT_TRACER=y CONFIG_IRQSOFF_TRACER=y -CONFIG_PREEMPTIRQ_DELAY_TEST=m +CONFIG_KALLSYMS_ALL=y +CONFIG_KPROBES=y +CONFIG_KPROBE_EVENTS=y CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y +CONFIG_PREEMPTIRQ_DELAY_TEST=m +CONFIG_PREEMPT_TRACER=y +CONFIG_PROBE_EVENTS_BTF_ARGS=y CONFIG_SAMPLES=y CONFIG_SAMPLE_FTRACE_DIRECT=m CONFIG_SAMPLE_TRACE_PRINTK=m -CONFIG_KALLSYMS_ALL=y +CONFIG_SCHED_TRACER=y +CONFIG_STACK_TRACER=y +CONFIG_TRACER_SNAPSHOT=y +CONFIG_UPROBES=y +CONFIG_UPROBE_EVENTS=y