Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2495738rdb; Fri, 8 Dec 2023 09:41:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IETh/QwZ24cmxTRXH7zvZVrjWxr8UFXYGTkhzAWg2xooWME9nDAvo8qXDa7MUSk87eGFwy9 X-Received: by 2002:a05:6a21:6d86:b0:18b:8475:410a with SMTP id wl6-20020a056a216d8600b0018b8475410amr430641pzb.7.1702057281154; Fri, 08 Dec 2023 09:41:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702057281; cv=none; d=google.com; s=arc-20160816; b=UnRXP+IJegU/ZFT2f5uccl+IP3mhIykDHDRDoX58JwpLISeNWTKKMUNuDko1Qa7Iir +1MHEnXE7vrqgSNd/EOmy05lvooavP7hs2La1oLi5rX8RAwZNMnIRizeRGys2r0wRAy3 KQ7bYoqObXC3tFAJtWM1rlLKWEIn+FmVI5hrVEhQJjGrzbQ9dGtjLXc7nMbBn7A3xYV4 584og8Q7CLp5s0KFAUDq4XC0rQ6IU8pVmFqE47GAfZ/4KXA0TaSCJ2bO2OPn0Od56GW+ z7vZI3P22G1ovbRhxju3stT1gjLqNe08ohMj2qJVuZDZ64AhpzxTjRmGsLBgGo0crs4/ KjmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=2Tz7Bq/PLwSf5lnVkLvoc0+E2gYc5q2NPPfxp0PM4nE=; fh=ma53u7+8bTdw+jnrx7J0ac4ACQCgvNihsDIRy9UvKNU=; b=kzLVCfVlqQtHYqXmA7ndpdtbp0j5j2WwpuROsbHx5ZBZ6kf09r5qTdjn+8RbpuP8dT sFz6Vm5ypfoSgZ3o0CZQqMV/rjXjoQbUQi8wr97w2nWyoOtHYHd9everSxjtzqfveCD2 oLi4Hh63JWxPAc0mfESI/SrpJBWXlCY4ru76Q2HOSuSQbHispetU4WVLOa8u1P8cMXvZ ymU+5HBnW5IsGm5ZN457AFuN7YsY9sIJwHp4TV6SaBCboOgLKzXc8xIC275zs9iMZZFr gHS90duv2lRjHAv7qYwl3xSRdB0edncnhicR3HVaEn5wvmq+9iEi9lgBMWTotp5YdwZO hR5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gl+aUEkG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id b5-20020a63eb45000000b005bd85b32495si1902219pgk.685.2023.12.08.09.41.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 09:41:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gl+aUEkG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 86B53808BD87; Fri, 8 Dec 2023 09:40:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574421AbjLHRkT (ORCPT + 99 others); Fri, 8 Dec 2023 12:40:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229872AbjLHRkR (ORCPT ); Fri, 8 Dec 2023 12:40:17 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FB7F85 for ; Fri, 8 Dec 2023 09:40:24 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPS id B00FEC433C9; Fri, 8 Dec 2023 17:40:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702057223; bh=QWhvnecDQHsSaXh1TXP016NGyva6puMd5hngwy14e1A=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=gl+aUEkGPwTZV9V8E7sXAPFMgVXZdNBzTUASVKUbdAwvD1NO8NBvvjRYx2fAUxjN9 exjo+hOzkBII5sUkYzXgvQLFBs+Yp1u5TznvFoyRe381Z8y7jxmfP8de0OLsq61usY Us5t/vAq6TubNMrtkY7yd94vO/q81fbVGCVxojvD2G3RHS+uY02eMupLaglp+gkWhE en0sX2G4QTvNoqaqSTNrYkwEpVNLX83c/XOcajTPrIkdWIwyfCNuV9TGJHK3Q2T9oy Nzk4a9O9ZWof9u1qELuyV8MNRIWVGzkM8nwYJgHEolwYcxhB3cCZUOeNFRNqtiLVVG sWH4O7T4JKf2Q== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 96EC6C04E24; Fri, 8 Dec 2023 17:40:23 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH bpf-next] bpf: Load vmlinux btf for any struct_ops map From: patchwork-bot+netdevbpf@kernel.org Message-Id: <170205722361.30055.15108519957098973880.git-patchwork-notify@kernel.org> Date: Fri, 08 Dec 2023 17:40:23 +0000 References: <20231208061704.400463-1-void@manifault.com> In-Reply-To: <20231208061704.400463-1-void@manifault.com> To: David Vernet Cc: bpf@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@linux.dev, song@kernel.org, yonghong.song@linux.dev, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, linux-kernel@vger.kernel.org, kernel-team@meta.com, tj@kernel.org X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 08 Dec 2023 09:40:34 -0800 (PST) Hello: This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko : On Fri, 8 Dec 2023 00:17:03 -0600 you wrote: > In libbpf, when determining whether we need to load vmlinux btf, we're > currently (among other things) checking whether there is any struct_ops > program present in the object. This works for most realistic struct_ops > maps, as a struct_ops map is of course typically composed of one or more > struct_ops programs. However, that technically need not be the case. A > struct_ops interface could be defined which allows a map to be specified > which one or more non-prog fields, and which provides default behavior > if no struct_ops progs is actually provided otherwise. For sched_ext, > for example, you technically only need to specify the name of the > scheduler in the struct_ops map, with the core scheduler logic providing > default behavior if no prog is actually specified. > > [...] Here is the summary with links: - [bpf-next] bpf: Load vmlinux btf for any struct_ops map https://git.kernel.org/bpf/bpf-next/c/8b7b0e5fe47d You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html