Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3279573rwb; Sun, 20 Nov 2022 10:37:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf4B3DT+VR+esp3kWoIN3zApq8kRndQ/+JQh7B8iRFGyYd8rnJXIuxuT6ECtszTuXCRfZm2M X-Received: by 2002:a63:ff0b:0:b0:477:362d:85d3 with SMTP id k11-20020a63ff0b000000b00477362d85d3mr4482228pgi.395.1668969476209; Sun, 20 Nov 2022 10:37:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668969476; cv=none; d=google.com; s=arc-20160816; b=HNVssYljOrYVlNdfKQSW1qTrihGcpZNbB9q+Xz43h9KTXdpAJxVFVMH4cr1l12Wh6X fyyiadvzloeNCvJIfgnHuH1liik8HFvxm/pKkO2ZW5Yqwi3FcBF7q1Zlashoys8BHE4A 7P5xI4+KEcU1rM++zenyC/uDskTPwKJs4XvksWgb3XtonU54ZG3ZbmHrRxvdAp0Un6U5 Bt5O9xnjvSXyj15eMHCuAA144Uv6ex06oWWma/f8elR3MhpQC57JJuaJUGVLUTFXeUhe XMhJYjIA4nD7xLGI0CJppjQlPX0JUCy52EWUdD4sHVQgwoTnpgoMg+LeTaPtOXYNoPhH KOFw== 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=/SIUFYm4luyAHxgeLHDVkxAaXU/ms+h+gL6u8/rVVds=; b=CYOG3d06FWRD1VNA14cu2UI60Nw1CrPCn7s1BdbJ3pcV+jeZ94fASLKnh/6HKbpeQN MksSo+6FaychLo91sNuTeM6YGyHHlDWDaZh4UJoNL31dfucPVo85SOZitp/oyuC5wfQ4 5nzxP0xDcHw16I8iYyTK1ad4pkQQuUrYfx9yHgvhhibO96xgw8a+DCIXnw7nKCoeoNwH /UCVs8fqeNam2WVn1dfjkBAjjEGbyWX/5Fz/eECydAiEIXWWTe3BhSIVbIN436HPUYZs tRQlysfbnBoSvgsi4qkHeF6VGmWRs7szqE6T0y+y0V6XGXijlX+rsFWEQCr6UOBxUEHg 1FYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a1qTG9Yg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mm3-20020a17090b358300b00218b7afab1csi359849pjb.97.2022.11.20.10.37.43; Sun, 20 Nov 2022 10:37:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a1qTG9Yg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229745AbiKTRaV (ORCPT + 91 others); Sun, 20 Nov 2022 12:30:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229716AbiKTRaT (ORCPT ); Sun, 20 Nov 2022 12:30:19 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE13AB50; Sun, 20 Nov 2022 09:30:17 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 52B0E60C8E; Sun, 20 Nov 2022 17:30:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 9E7D4C433D7; Sun, 20 Nov 2022 17:30:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668965416; bh=wdMvv3HwY72aYEPn2ySfTAhKmjiAzDdlJphIynQ0Boo=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=a1qTG9YgkSgMG6B5L/DXeVlKqTAccZt1qFGvGlKn0A3tHGoUyxu/bFzQzc0PeyoKc leqV1ufbKSeWIgb3Oq8lXJWWpAlkn5QNLsycfGLkYZKH2FfoULYwsq2ZG81xel149e wKLumNY5VZbdRxniQfifPkhqL3HQlMYFP1PSiDgr3aIvQaMSmFk/9RaSaio/TTt+YB qIE2mT+7JZnsYzTBm5iDuwfsiw6g3M2K0KG4wLx4m+Wf905hqZs/yUa4rFO9OhhKbR sVXvGDVPe7hn12XEvnOZJakhVl6Ryqn9FiB+dFIl9iN7utuZJRIQZGbMHeiUyjPBMJ Y6CNgyaXAhiAA== 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 80F39E270C8; Sun, 20 Nov 2022 17:30:16 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH bpf-next v9 0/4] Support storing struct task_struct objects as kptrs From: patchwork-bot+netdevbpf@kernel.org Message-Id: <166896541652.21684.9432538725103105426.git-patchwork-notify@kernel.org> Date: Sun, 20 Nov 2022 17:30:16 +0000 References: <20221120051004.3605026-1-void@manifault.com> In-Reply-To: <20221120051004.3605026-1-void@manifault.com> To: David Vernet Cc: ast@kernel.org, andrii@kernel.org, daniel@iogearbox.net, martin.lau@linux.dev, yhs@fb.com, song@kernel.org, sdf@google.com, john.fastabend@gmail.com, haoluo@google.com, jolsa@kernel.org, kpsingh@kernel.org, memxor@gmail.com, tj@kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: This series was applied to bpf/bpf-next.git (master) by Alexei Starovoitov : On Sat, 19 Nov 2022 23:10:00 -0600 you wrote: > Now that BPF supports adding new kernel functions with kfuncs, and > storing kernel objects in maps with kptrs, we can add a set of kfuncs > which allow struct task_struct objects to be stored in maps as > referenced kptrs. > > The possible use cases for doing this are plentiful. During tracing, > for example, it would be useful to be able to collect some tasks that > performed a certain operation, and then periodically summarize who they > are, which cgroup they're in, how much CPU time they've utilized, etc. > Doing this now would require storing the tasks' pids along with some > relevant data to be exported to user space, and later associating the > pids to tasks in other event handlers where the data is recorded. > Another useful by-product of this is that it allows a program to pin a > task in a BPF program, and by proxy therefore also e.g. pin its task > local storage. > > [...] Here is the summary with links: - [bpf-next,v9,1/4] bpf: Allow multiple modifiers in reg_type_str() prefix https://git.kernel.org/bpf/bpf-next/c/ef66c5475d7f - [bpf-next,v9,2/4] bpf: Allow trusted pointers to be passed to KF_TRUSTED_ARGS kfuncs https://git.kernel.org/bpf/bpf-next/c/3f00c5239344 - [bpf-next,v9,3/4] bpf: Add kfuncs for storing struct task_struct * as a kptr https://git.kernel.org/bpf/bpf-next/c/90660309b0c7 - [bpf-next,v9,4/4] bpf/selftests: Add selftests for new task kfuncs https://git.kernel.org/bpf/bpf-next/c/fe147956fca4 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html