From patchwork Thu Oct 28 13:20:38 2021 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: 12590127 X-Patchwork-Delegate: bpf@iogearbox.net 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 653B7C4332F for ; Thu, 28 Oct 2021 13:20:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4CF7D610A0 for ; Thu, 28 Oct 2021 13:20:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230265AbhJ1NXP (ORCPT ); Thu, 28 Oct 2021 09:23:15 -0400 Received: from mail-lf1-f41.google.com ([209.85.167.41]:37846 "EHLO mail-lf1-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230169AbhJ1NXO (ORCPT ); Thu, 28 Oct 2021 09:23:14 -0400 Received: by mail-lf1-f41.google.com with SMTP id i13so3989528lfe.4; Thu, 28 Oct 2021 06:20:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=O/AJBEW3vyVrTUMTRP/ONhgseLgot5lKkfZZ3GS+nfA=; b=Lqf4GNnMWhcPwFyovZNRaUD5HI4MoHernK5aLV1kYF0aNBfiz017NRSmMkgpKZdMQz G+M2J1bdsbV3l3RsG8mtq3ZTRFk8cOn7G3VUkjjTWBYtWYLpQbR+IRgyEQzPPkxF+JMy /uz8lZo0G7gbPCq18YDX08w8UBBq1jLb4450JkKrzTVqMfrbKPal5N8mSemauWWFZYWy G/6/1rbx0368spS6IM8UWsMctqX30FvLDnPM4kcIj5wqlzfMXu7zL1jr1yjOhTzvz8kw 7ivxwSLvvEUvgLMp55w0NdcODTRde1heEnzUor4qHpdeVKMZU0uteNawRPFVVzploWSC nqCA== X-Gm-Message-State: AOAM533OLdXwaKAsjgNGarCSBiNqo1UWUXwZAJjTDPA0aIqXnIMRfUt1 PtED/qj+dJ82cXNjTl0hrdo= X-Google-Smtp-Source: ABdhPJxZcJ13N8X0a3vFeqXrp6hDAqd5+pSCoHgE77DOaEKKyBW0zArRRHgSPWuy87B3rp/8uizNtw== X-Received: by 2002:a05:6512:2184:: with SMTP id b4mr4206060lft.663.1635427246654; Thu, 28 Oct 2021 06:20:46 -0700 (PDT) Received: from kladdkakan.. ([185.213.154.234]) by smtp.gmail.com with ESMTPSA id o9sm309616lfk.292.2021.10.28.06.20.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Oct 2021 06:20:45 -0700 (PDT) From: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= To: ast@kernel.org, daniel@iogearbox.net, netdev@vger.kernel.org, bpf@vger.kernel.org Cc: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= , linux-riscv@lists.infradead.org Subject: [PATCH bpf-next 1/4] riscv, bpf: Increase the maximum number of iterations Date: Thu, 28 Oct 2021 15:20:38 +0200 Message-Id: <20211028132041.516820-2-bjorn@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211028132041.516820-1-bjorn@kernel.org> References: <20211028132041.516820-1-bjorn@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: bpf@iogearbox.net Now that BPF programs can be up to 1M instructions, it is not uncommon that a program requires more than the current 16 iterations to converge. Bump it to 32, which is enough for selftests/bpf, and test_bpf.ko. Signed-off-by: Björn Töpel --- arch/riscv/net/bpf_jit_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/net/bpf_jit_core.c b/arch/riscv/net/bpf_jit_core.c index 7ccc809f2c19..ef9fcf6ea749 100644 --- a/arch/riscv/net/bpf_jit_core.c +++ b/arch/riscv/net/bpf_jit_core.c @@ -11,7 +11,7 @@ #include "bpf_jit.h" /* Number of iterations to try until offsets converge. */ -#define NR_JIT_ITERATIONS 16 +#define NR_JIT_ITERATIONS 32 static int build_body(struct rv_jit_context *ctx, bool extra_pass, int *offset) { From patchwork Thu Oct 28 13:20:39 2021 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: 12590129 X-Patchwork-Delegate: bpf@iogearbox.net 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39264C433F5 for ; Thu, 28 Oct 2021 13:20:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 20D3D60F56 for ; Thu, 28 Oct 2021 13:20:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230282AbhJ1NXT (ORCPT ); Thu, 28 Oct 2021 09:23:19 -0400 Received: from mail-lf1-f43.google.com ([209.85.167.43]:39932 "EHLO mail-lf1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230169AbhJ1NXQ (ORCPT ); Thu, 28 Oct 2021 09:23:16 -0400 Received: by mail-lf1-f43.google.com with SMTP id l13so13543052lfg.6; Thu, 28 Oct 2021 06:20:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FpcAIXzIJRZanZR1xOZ449nR9Z4CpuYm3hzQzUAM83c=; b=XVAWzlD/2JRCwfZwkRyyJ8JLXC1O6uqch3vvvcONWl1ZLOwn1cLhY6aiq4eb1h4Zv5 41JgjLDjCcR1xNOkznH9otKbxC2S6p45A6NUoYGC0xyXTJK0U0cUQyxe8UTarqYZ35LK shLjxNeO7vSSUvkFUAwxctXIda+lTmT3o1qFVBR5Ccmgj+vtcgHTa0Cdp/wCq6Bi6Vwh kfrZjBXlhsZTE+/ExXhFeejPI5Iva8ix0SI5gW0ThNMLyhm3jYQj4etnCd/cVT6QIIyd 2gIFR1zSufKhcJr7nDDbOHXLHZHxYObY0C1aVWbSXvxfXfC/hAwT2lIG56/JsSwmaKox W2dw== X-Gm-Message-State: AOAM53377jd4Mw80y5n6MUHZDCxo8kkyn2qTlqsYJ4iwJcnAW0DSt9GZ 5r3uxhxjKSVW55pDBMTuu0Q= X-Google-Smtp-Source: ABdhPJzpoIYhfju6k4/Qfnivw7wHlSlK52r59+vqI6IlaJ3X5/OYjMzzZhfjKSvZC4Rv3XnX0kOmUQ== X-Received: by 2002:a05:6512:3b20:: with SMTP id f32mr4083761lfv.423.1635427248082; Thu, 28 Oct 2021 06:20:48 -0700 (PDT) Received: from kladdkakan.. ([185.213.154.234]) by smtp.gmail.com with ESMTPSA id o9sm309616lfk.292.2021.10.28.06.20.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Oct 2021 06:20:47 -0700 (PDT) From: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= To: ast@kernel.org, daniel@iogearbox.net, netdev@vger.kernel.org, bpf@vger.kernel.org Cc: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= , linux-riscv@lists.infradead.org Subject: [PATCH bpf-next 2/4] tools build: Add RISC-V to HOSTARCH parsing Date: Thu, 28 Oct 2021 15:20:39 +0200 Message-Id: <20211028132041.516820-3-bjorn@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211028132041.516820-1-bjorn@kernel.org> References: <20211028132041.516820-1-bjorn@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: bpf@iogearbox.net Add RISC-V to the HOSTARCH parsing, so that ARCH is "riscv", and not "riscv32" or "riscv64". This affects the perf and libbpf builds, so that arch specific includes are correctly picked up for RISC-V. Signed-off-by: Björn Töpel --- tools/scripts/Makefile.arch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/scripts/Makefile.arch b/tools/scripts/Makefile.arch index b10b7a27c33f..0c6c7f456887 100644 --- a/tools/scripts/Makefile.arch +++ b/tools/scripts/Makefile.arch @@ -4,7 +4,8 @@ HOSTARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ \ -e /arm64/!s/arm.*/arm/ -e s/sa110/arm/ \ -e s/s390x/s390/ -e s/parisc64/parisc/ \ -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \ - -e s/sh[234].*/sh/ -e s/aarch64.*/arm64/ ) + -e s/sh[234].*/sh/ -e s/aarch64.*/arm64/ \ + -e s/riscv.*/riscv/) ifndef ARCH ARCH := $(HOSTARCH) From patchwork Thu Oct 28 13:20:40 2021 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: 12590131 X-Patchwork-Delegate: bpf@iogearbox.net 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30E94C4332F for ; Thu, 28 Oct 2021 13:20:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1AD01610FF for ; Thu, 28 Oct 2021 13:20:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230331AbhJ1NXW (ORCPT ); Thu, 28 Oct 2021 09:23:22 -0400 Received: from mail-lj1-f182.google.com ([209.85.208.182]:33763 "EHLO mail-lj1-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230286AbhJ1NXT (ORCPT ); Thu, 28 Oct 2021 09:23:19 -0400 Received: by mail-lj1-f182.google.com with SMTP id 17so7520573ljq.0; Thu, 28 Oct 2021 06:20:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DH8yGhC3Nvprfn3hCny0Vjdm/oIXFS546cCDILMHRkQ=; b=AimGwmp7A21Y+p6wKKLv4CurUz6QdesN6YyoOVgKtMM4pgrVWliIE97QaoSDAw7qsF LFb3NIZ+sTcSTBs7+mbDKVOfrz/vtuTYH3nBBnsvhRaZJyCAyanL/aGHbOBN8Gu0gp7J yRrbOKJlOpijRzzyyEQSQptTxMeNFA7tXfbJb5ho3YiyNZ4SJ1S8nvrsv8IFVYJZi3p5 ih97JkKv9lXApCZFIIXNwakclUr7emm6S5NixYOP+5zLzrGeTrk1ZvAdOBCt1tcsG1Vc z1fmA78URdAdzFGnRDMT0gdzHiwA/+nwuRZbr05rrfVU7GQcUBQFHFitwpqsUqMPvrqA qWNg== X-Gm-Message-State: AOAM53014wr+sbxjySBvkh7q5EQxrifFtMl89sYqvD9fnohDGRhTmsV/ iKQZV78zOqPHp7p2ioSlHpk= X-Google-Smtp-Source: ABdhPJy1ng4PVVuyy9CHwlwagSpRIkQogBPHHc5fdz69bIf8M2HrNFhfPRPqwRcP/TZvWBF6sxMeyw== X-Received: by 2002:a05:651c:88d:: with SMTP id d13mr4607828ljq.399.1635427249412; Thu, 28 Oct 2021 06:20:49 -0700 (PDT) Received: from kladdkakan.. ([185.213.154.234]) by smtp.gmail.com with ESMTPSA id o9sm309616lfk.292.2021.10.28.06.20.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Oct 2021 06:20:48 -0700 (PDT) From: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= To: ast@kernel.org, daniel@iogearbox.net, netdev@vger.kernel.org, bpf@vger.kernel.org Cc: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= , linux-riscv@lists.infradead.org Subject: [PATCH bpf-next 3/4] riscv, libbpf: Add RISC-V (RV64) support to bpf_tracing.h Date: Thu, 28 Oct 2021 15:20:40 +0200 Message-Id: <20211028132041.516820-4-bjorn@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211028132041.516820-1-bjorn@kernel.org> References: <20211028132041.516820-1-bjorn@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: bpf@iogearbox.net Add macros for 64-bit RISC-V PT_REGS to bpf_tracing.h. Signed-off-by: Björn Töpel --- tools/lib/bpf/bpf_tracing.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/tools/lib/bpf/bpf_tracing.h b/tools/lib/bpf/bpf_tracing.h index d6bfbe009296..db05a5937105 100644 --- a/tools/lib/bpf/bpf_tracing.h +++ b/tools/lib/bpf/bpf_tracing.h @@ -24,6 +24,9 @@ #elif defined(__TARGET_ARCH_sparc) #define bpf_target_sparc #define bpf_target_defined +#elif defined(__TARGET_ARCH_riscv) + #define bpf_target_riscv + #define bpf_target_defined #else /* Fall back to what the compiler says */ @@ -48,6 +51,9 @@ #elif defined(__sparc__) #define bpf_target_sparc #define bpf_target_defined +#elif defined(__riscv) && __riscv_xlen == 64 + #define bpf_target_riscv + #define bpf_target_defined #endif /* no compiler target */ #endif @@ -288,6 +294,32 @@ struct pt_regs; #define PT_REGS_IP_CORE(x) BPF_CORE_READ((x), pc) #endif +#elif defined(bpf_target_riscv) + +struct pt_regs; +#define PT_REGS_RV const volatile struct user_regs_struct +#define PT_REGS_PARM1(x) (((PT_REGS_RV *)(x))->a0) +#define PT_REGS_PARM2(x) (((PT_REGS_RV *)(x))->a1) +#define PT_REGS_PARM3(x) (((PT_REGS_RV *)(x))->a2) +#define PT_REGS_PARM4(x) (((PT_REGS_RV *)(x))->a3) +#define PT_REGS_PARM5(x) (((PT_REGS_RV *)(x))->a4) +#define PT_REGS_RET(x) (((PT_REGS_RV *)(x))->ra) +#define PT_REGS_FP(x) (((PT_REGS_RV *)(x))->s5) +#define PT_REGS_RC(x) (((PT_REGS_RV *)(x))->a5) +#define PT_REGS_SP(x) (((PT_REGS_RV *)(x))->sp) +#define PT_REGS_IP(x) (((PT_REGS_RV *)(x))->epc) + +#define PT_REGS_PARM1_CORE(x) BPF_CORE_READ((PT_REGS_RV *)(x), a0) +#define PT_REGS_PARM2_CORE(x) BPF_CORE_READ((PT_REGS_RV *)(x), a1) +#define PT_REGS_PARM3_CORE(x) BPF_CORE_READ((PT_REGS_RV *)(x), a2) +#define PT_REGS_PARM4_CORE(x) BPF_CORE_READ((PT_REGS_RV *)(x), a3) +#define PT_REGS_PARM5_CORE(x) BPF_CORE_READ((PT_REGS_RV *)(x), a4) +#define PT_REGS_RET_CORE(x) BPF_CORE_READ((PT_REGS_RV *)(x), ra) +#define PT_REGS_FP_CORE(x) BPF_CORE_READ((PT_REGS_RV *)(x), fp) +#define PT_REGS_RC_CORE(x) BPF_CORE_READ((PT_REGS_RV *)(x), a5) +#define PT_REGS_SP_CORE(x) BPF_CORE_READ((PT_REGS_RV *)(x), sp) +#define PT_REGS_IP_CORE(x) BPF_CORE_READ((PT_REGS_RV *)(x), epc) + #endif #if defined(bpf_target_powerpc) From patchwork Thu Oct 28 13:20:41 2021 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: 12590133 X-Patchwork-Delegate: bpf@iogearbox.net 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9B090C433FE for ; Thu, 28 Oct 2021 13:20:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 80A4A60FC4 for ; Thu, 28 Oct 2021 13:20:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230334AbhJ1NXX (ORCPT ); Thu, 28 Oct 2021 09:23:23 -0400 Received: from mail-lf1-f44.google.com ([209.85.167.44]:39434 "EHLO mail-lf1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230297AbhJ1NXT (ORCPT ); Thu, 28 Oct 2021 09:23:19 -0400 Received: by mail-lf1-f44.google.com with SMTP id l13so13543454lfg.6; Thu, 28 Oct 2021 06:20:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3PZBfQ2VLBVQ+FScckJP/YM1qLVydE5D6300dI/9Uj0=; b=QBfiqgL3IW/1dpypqwxWlwp60lKS2nH5uBq/vcTEz58FNxxQqz3PjZbF4o/PfqUA7t f+NtGG7Gb7zVCgjxOfGwB18gJIoDWyV2mFvvkTv0p2/oCbRptHv49JgwHv+t90OSlvk5 UwlPIM0NnQcmkM6rY1eJijZZkneU+EVgC4l7g5kSRbyu+raLesFSy1DhD8F43vzfRj/T geqYvK5/ZZ8wr0rjaGKX8O9lo/GIw+0EWB+4ucvANaO3XkfQ29n8ILGsKAuDSi4YjfXf JRkXipFwQBYYsEHVMG8akuW5pxqgivjwukmb/SevbwCqoLn2hS+5OAtODvAXdahPiE20 7lFw== X-Gm-Message-State: AOAM530ltxcgQWrhgua0wZkaizyLwk4Zh6g0D+X+hN6ZleguKwThcm3x pVW4QzwpHfUkhOPHhGIV6lc= X-Google-Smtp-Source: ABdhPJxfNRrAhW5xushlBQeEd0Em0sopu17I+MiQ1/8I8I+S67KskkgZ+epYCfCrm5NfnUNj6YVqHA== X-Received: by 2002:a05:6512:2309:: with SMTP id o9mr4155941lfu.124.1635427251319; Thu, 28 Oct 2021 06:20:51 -0700 (PDT) Received: from kladdkakan.. ([185.213.154.234]) by smtp.gmail.com with ESMTPSA id o9sm309616lfk.292.2021.10.28.06.20.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Oct 2021 06:20:50 -0700 (PDT) From: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= To: ast@kernel.org, daniel@iogearbox.net, netdev@vger.kernel.org, bpf@vger.kernel.org Cc: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= , linux-riscv@lists.infradead.org Subject: [PATCH bpf-next 4/4] selftests/bpf: Fix broken riscv build Date: Thu, 28 Oct 2021 15:20:41 +0200 Message-Id: <20211028132041.516820-5-bjorn@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211028132041.516820-1-bjorn@kernel.org> References: <20211028132041.516820-1-bjorn@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: bpf@iogearbox.net This patch is closely related to commit 6016df8fe874 ("selftests/bpf: Fix broken riscv build"). When clang includes the system include directories, but targeting BPF program, __BITS_PER_LONG defaults to 32, unless explicitly set. Workaround this problem, by explicitly setting __BITS_PER_LONG to __riscv_xlen. Signed-off-by: Björn Töpel --- tools/testing/selftests/bpf/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile index ac47cf9760fc..d739e62d0f90 100644 --- a/tools/testing/selftests/bpf/Makefile +++ b/tools/testing/selftests/bpf/Makefile @@ -277,7 +277,8 @@ $(RESOLVE_BTFIDS): $(HOST_BPFOBJ) | $(HOST_BUILD_DIR)/resolve_btfids \ define get_sys_includes $(shell $(1) -v -E - &1 \ | sed -n '/<...> search starts here:/,/End of search list./{ s| \(/.*\)|-idirafter \1|p }') \ -$(shell $(1) -dM -E -