From patchwork Wed Oct 4 11:09:05 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: 13408620 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 26635E7B5EE for ; Wed, 4 Oct 2023 11:09:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242216AbjJDLJa (ORCPT ); Wed, 4 Oct 2023 07:09:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242214AbjJDLJ3 (ORCPT ); Wed, 4 Oct 2023 07:09:29 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F27F6D7; Wed, 4 Oct 2023 04:09:25 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B1A0C433C8; Wed, 4 Oct 2023 11:09:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696417765; bh=myfG9KhH8iXXI0iq3rgYVhXBywfTdM/2Q+7Ha1naXhg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DdFm8es+jlF7PkHpEUfqa9RdXiSnnTrCJCr3asGKmQ25q7aDJqGiUuaAa/5qS7L9z sGjgLmcD4yf8vCIElGYnJZDBLO2K1qx71Kddj8zXqQkRr4jaTXHdL989/eoMzT3rbV 3BoQeM5AQxNS/B0ZM4opVnU/OmQG7o+DpGssD0CS5Cf7kWjb/uNoIAas6h/1cmXVzQ n2rh5Faki9Te07CC5tTf4S7dHCGVi1adx+VJ5aoZExoImpEwHz3g+m3LECzBWz5a84 /geVjpyVLCm7CVVLgmm3RPTFIfeYpMb/dF7l+Nc5SCS8n/vaIFapNiuXa2ATVXdeaD hmbttxzQ39OeQ== 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 3/3] selftests/bpf: Define SYS_NANOSLEEP_KPROBE_NAME for riscv Date: Wed, 4 Oct 2023 13:09:05 +0200 Message-Id: <20231004110905.49024-4-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> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org From: Björn Töpel Add missing sys_nanosleep name for RISC-V, which is used by some tests (e.g. attach_probe). Fixes: 08d0ce30e0e4 ("riscv: Implement syscall wrappers") Signed-off-by: Björn Töpel --- tools/testing/selftests/bpf/test_progs.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/bpf/test_progs.h b/tools/testing/selftests/bpf/test_progs.h index 77bd492c6024..2f9f6f250f17 100644 --- a/tools/testing/selftests/bpf/test_progs.h +++ b/tools/testing/selftests/bpf/test_progs.h @@ -417,6 +417,8 @@ int get_bpf_max_tramp_links(void); #define SYS_NANOSLEEP_KPROBE_NAME "__s390x_sys_nanosleep" #elif defined(__aarch64__) #define SYS_NANOSLEEP_KPROBE_NAME "__arm64_sys_nanosleep" +#elif defined(__riscv) +#define SYS_NANOSLEEP_KPROBE_NAME "__riscv_sys_nanosleep" #else #define SYS_NANOSLEEP_KPROBE_NAME "sys_nanosleep" #endif