From mboxrd@z Thu Jan 1 00:00:00 1970 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 4EB8E2DE6E8; Tue, 8 Jul 2025 13:26:06 +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=1751981166; cv=none; b=fgAiJejv7EB4x3EJYbHlcLWbKLANKtq3agdIhM+bYWHdiCI9vJw3ZTWh3+05kgXmf/Km4RokHl0bg5WShguHJUJ/FStcTZ30FFymaNp8E2D41gtlW3cz7TH2W5rROgocH9yRb7bbhDGPZ/h0e+f25Mg+b21KlI1hWBhibaZ98l0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751981166; c=relaxed/simple; bh=wHBSrsPbIWzY/DY+r/JQVZ2utqZN6cxoj2j5Wcu0HFc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NKL2nyJPfPMIfceJAf14DS8mjAt8/qgfOWwnRDB2cV2aajnrLvGnXJiVMgE7ywD50ZWDA8tnJ3euMjoy/CAIYKhlAtYv/32E9r5Zx4flbtzJR5SmaVCAqJ7KdTASNLyQsaHP75yttb8Mp+hG5lcz0LnEB5OloUe1slWghyXaKuQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HVnIPMyY; 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="HVnIPMyY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE398C4CEED; Tue, 8 Jul 2025 13:26:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1751981165; bh=wHBSrsPbIWzY/DY+r/JQVZ2utqZN6cxoj2j5Wcu0HFc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HVnIPMyYe63YIksFAlUmHKfkqST7lVtAsa0I/oIUMQhWlgBG3LVRwajbWdC537xg3 +nv6F5PwBhU7dCVum9F/QIZoUY6CUtt0opNdMvTQ7inBP2HF+ks033im+TTV7SWxTo 3B1KMX2JE7l5aEqBDRHNX3hUGd3eNAwy2RtjFOVjdm6q7Un+dDVVDvkVusOCEL0YZn F1AlHZLBz7nG5VGEcE/rcmLbz0snG2ui+mix4Jmr4KCXcJ3xm/YSbPPwusodsJjU/+ I8b9FxPUtonGdV/zFo8RhgaA63S3idqgG6Q+ekMu7ZvNcww+m4IeEHxpeK0nLsJpbs 8GKvqoqHvmoAA== From: Jiri Olsa To: Oleg Nesterov , Peter Zijlstra , Andrii Nakryiko Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, x86@kernel.org, Song Liu , Yonghong Song , John Fastabend , Hao Luo , Steven Rostedt , Masami Hiramatsu , Alan Maguire , David Laight , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Ingo Molnar Subject: [PATCHv4 perf/core 12/22] selftests/bpf: Reorg the uprobe_syscall test function Date: Tue, 8 Jul 2025 15:23:21 +0200 Message-ID: <20250708132333.2739553-13-jolsa@kernel.org> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250708132333.2739553-1-jolsa@kernel.org> References: <20250708132333.2739553-1-jolsa@kernel.org> Precedence: bulk X-Mailing-List: linux-trace-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Adding __test_uprobe_syscall with non x86_64 stub to execute all the tests, so we don't need to keep adding non x86_64 stub functions for new tests. Acked-by: Andrii Nakryiko Signed-off-by: Jiri Olsa --- .../selftests/bpf/prog_tests/uprobe_syscall.c | 34 +++++++------------ 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c b/tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c index c397336fe1ed..2b00f16406c8 100644 --- a/tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c +++ b/tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c @@ -350,29 +350,8 @@ static void test_uretprobe_shadow_stack(void) ARCH_PRCTL(ARCH_SHSTK_DISABLE, ARCH_SHSTK_SHSTK); } -#else -static void test_uretprobe_regs_equal(void) -{ - test__skip(); -} - -static void test_uretprobe_regs_change(void) -{ - test__skip(); -} - -static void test_uretprobe_syscall_call(void) -{ - test__skip(); -} -static void test_uretprobe_shadow_stack(void) -{ - test__skip(); -} -#endif - -void test_uprobe_syscall(void) +static void __test_uprobe_syscall(void) { if (test__start_subtest("uretprobe_regs_equal")) test_uretprobe_regs_equal(); @@ -383,3 +362,14 @@ void test_uprobe_syscall(void) if (test__start_subtest("uretprobe_shadow_stack")) test_uretprobe_shadow_stack(); } +#else +static void __test_uprobe_syscall(void) +{ + test__skip(); +} +#endif + +void test_uprobe_syscall(void) +{ + __test_uprobe_syscall(); +} -- 2.50.0