From patchwork Wed Oct 4 11:09:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= X-Patchwork-Id: 13408623 X-Patchwork-Delegate: bpf@iogearbox.net 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 78C1512B76; Wed, 4 Oct 2023 11:09:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D630FC433CA; Wed, 4 Oct 2023 11:09:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696417763; bh=WpGCVlyEgOw4b2FaJcUO9+9LMMvSL9a+ezCXN7JxYNk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V5k4ZMhEzkCz2qXAkxEoYJrNjM1+W8E/LToiXc3tpQtiJGUS/7/LCJrOpti+PO+b5 1emXGUbnb/Aj5AIejFtuvRfYRSBkNYeKFihj0u0vSEZfP4fFbXxqiS50u/vtsn6G4p O3QeOz7VFOYQmT2uyv9GmaVJeyI87MHAEcoA6xOrrd70E8/KUYRpKmCxg5sNFlkzEt 2Yy2ySLGpFJLwu9mUxH2W/4mNqMBwqa3EsRtwAbMEKtwXvhL9+Un6pqgLzIvWPySCP 7nN+g9/9BAv1R92zn+bWDJT3c59d4bEfN//vHcmgMaWzHIYIOph4TppgWGE78qZRdG tGrk4oBUCyBcQ== From: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Mykola Lysenko , bpf@vger.kernel.org, netdev@vger.kernel.org Cc: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Sami Tolvanen Subject: [PATCH bpf 2/3] selftests/bpf: Define SYS_PREFIX for riscv Date: Wed, 4 Oct 2023 13:09:04 +0200 Message-Id: <20231004110905.49024-3-bjorn@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231004110905.49024-1-bjorn@kernel.org> References: <20231004110905.49024-1-bjorn@kernel.org> Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: bpf@iogearbox.net From: Björn Töpel SYS_PREFIX was missing for a RISC-V, which made a couple of kprobe tests fail. Add missing SYS_PREFIX for RISC-V. Fixes: 08d0ce30e0e4 ("riscv: Implement syscall wrappers") Signed-off-by: Björn Töpel --- tools/testing/selftests/bpf/progs/bpf_misc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/testing/selftests/bpf/progs/bpf_misc.h b/tools/testing/selftests/bpf/progs/bpf_misc.h index 38a57a2e70db..799fff4995d8 100644 --- a/tools/testing/selftests/bpf/progs/bpf_misc.h +++ b/tools/testing/selftests/bpf/progs/bpf_misc.h @@ -99,6 +99,9 @@ #elif defined(__TARGET_ARCH_arm64) #define SYSCALL_WRAPPER 1 #define SYS_PREFIX "__arm64_" +#elif defined(__TARGET_ARCH_riscv) +#define SYSCALL_WRAPPER 1 +#define SYS_PREFIX "__riscv_" #else #define SYSCALL_WRAPPER 0 #define SYS_PREFIX "__se_"