Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4125387rwb; Tue, 16 Aug 2022 15:11:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR7ql6qbR9EMvcZff2Day+ziiUUPh8ZGg90T5iq/SL61EHaa/LQ5KFecEjjMuL+L78PBZY18 X-Received: by 2002:a05:6402:34ce:b0:43d:c2ce:6e8a with SMTP id w14-20020a05640234ce00b0043dc2ce6e8amr20301406edc.160.1660687909514; Tue, 16 Aug 2022 15:11:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660687909; cv=none; d=google.com; s=arc-20160816; b=mElPREos4uKDpvj6QANScEpmCAgFGsDxBX44kv9XrMJS3GWMGYsDU8QyicdkwXfozz 96qWgEbU/RJbTXoqsPJnzZDC0dkkNMSjxzkldLAkovIQb9VfyNV1QLuUNpMZ5E4DBRb0 WQdO6OzmgzBlza+QiTIodsEafSpmGd9rhwHEkh560VDgPS2k2/FQX+PqiCkCN+VPy9BJ nvH3zLU8xJS2hO6tnlLNAGZP0X6GIiNBA7F+qN+s3mTIvec6ogTTql0MdjWmMZytSxLQ eUdjvT+6RkWUNlzKuGIQefebXvZZ95FZakAONyAsBDTrUuAYTf46zV16YbJfYXOeHdPc TfKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=OFB+vwmFlMkdVZ/s3bOlcrdQ4LPF6bvFIAzYn5YHwNY=; b=sCBnQygNwn2luu+lFaoTQJelaIitIxO5gDomTwiYMI5+wJqRvyUbbOECkKi/YiJs6l ZzaJvQF5Mava/VhAKBqC189gM88ksYx445jmZcAFab+5fa8Ck4kqzeEkzjs48bEG67mK E7Hf2Y9AmvFnb8E9JUuqZIHwdH5zoXAq+MxLrqp0mgxat4AmPxAlu08AGn0G2jpQk4Fl EWYWWMxtGPkd3VQLNZRrr8+uMv1CJ1aTd1arrrYSNnW0buANfqcMVO3KTeVhanPIJ4rj UGr0YpDMh2pHxB2OG3g17UOZE1DoTXjSFU1z1i7HzV1GpCu2K6DIkogzyH3a2jnLW/Be hjbA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sb5-20020a1709076d8500b00732b3af4687si11662269ejc.873.2022.08.16.15.11.23; Tue, 16 Aug 2022 15:11:49 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237658AbiHPVkb (ORCPT + 99 others); Tue, 16 Aug 2022 17:40:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236666AbiHPVk0 (ORCPT ); Tue, 16 Aug 2022 17:40:26 -0400 Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5950674E19; Tue, 16 Aug 2022 14:40:24 -0700 (PDT) Received: by mail-qk1-f173.google.com with SMTP id n21so9162981qkk.3; Tue, 16 Aug 2022 14:40:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=OFB+vwmFlMkdVZ/s3bOlcrdQ4LPF6bvFIAzYn5YHwNY=; b=EnDfbsKJaP+d1KRnlYL77BU3Zy5ZiFNGu+gvx3abe9Jrh9lJP4Rxztj32WzA/YFbsa ScrGh++vYTDlsti6GcT1zFf7k5YEglO2Hc8EZ0kjBTJ9Ulp1oJGnz4MoSE3oWu7e+qmX 7viTkp4izlmp2pxyYcbdX0v3c5k40O5kG4eHCyB+rqvggLgMt8ta3XdnfWaZDb94fefU RE1Cxa5T+7gM69JrXsD9g6QPcVnTGjjkmHxd/Jo6/mLAHcpt9qLVnIw5D2pPmX6fE5kA NKryUQwdotsQOF/lpGbgz8X9AtDVkNQ64i4d2tIIwv3eYhR1+ItSOX0eifLwBG45R6Z9 jGSg== X-Gm-Message-State: ACgBeo0xjt5E2pa1VjzArhtnh8tFDttttRb8uMsJttuB6J11CuKMV6yW 2jwocqanCQBRRAxpwP3C5eQq4dAFKEIFGcOr X-Received: by 2002:a05:620a:4441:b0:6bb:6034:f1d4 with SMTP id w1-20020a05620a444100b006bb6034f1d4mr3791255qkp.451.1660686023322; Tue, 16 Aug 2022 14:40:23 -0700 (PDT) Received: from maniforge.DHCP.thefacebook.com ([2620:10d:c091:480::a5ed]) by smtp.gmail.com with ESMTPSA id br20-20020a05620a461400b006b8619a67f4sm2454118qkb.34.2022.08.16.14.40.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Aug 2022 14:40:23 -0700 (PDT) Date: Tue, 16 Aug 2022 16:39:59 -0500 From: David Vernet To: Hao Luo Cc: bpf@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, john.fastabend@gmail.com, martin.lau@linux.dev, song@kernel.org, yhs@fb.com, kpsingh@kernel.org, sdf@google.com, jolsa@kernel.org, tj@kernel.org, joannelkoong@gmail.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/5] bpf: Add user-space-publisher ringbuffer map type Message-ID: References: <20220808155248.2475981-1-void@manifault.com> <20220810011510.c3chrli27e6ebftt@maniforge> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2.7 (2022-08-07) X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 On Tue, Aug 16, 2022 at 10:01:38AM -0700, Hao Luo wrote: > On Tue, Aug 16, 2022 at 8:10 AM David Vernet wrote: > > > > On Mon, Aug 15, 2022 at 02:13:13PM -0700, Hao Luo wrote: > > > > > > > > Iters allow userspace to kick the kernel, but IMO they're meant to enable > > > > data extraction from the kernel, and dumping kernel data into user-space. > > > > > > Not necessarily extracting data and dumping data. It could be used to > > > do operations on a set of objects, the operation could be > > > notification. Iterating and notifying are orthogonal IMHO. > > > > > > > What I'm proposing is a more generalizable way of driving logic in the > > > > kernel from user-space. > > > > Does that make sense? Looking forward to hearing your thoughts. > > > > > > Yes, sort of. I see the difference between iter and the proposed > > > interface. But I am not clear about the motivation of a new APis for > > > kicking callbacks from userspace. I guess maybe it will become clear, > > > when you publish a concerte RFC of that interface and integrates with > > > your userspace publisher. > > > > Fair enough -- let me remove this from the cover letter in future > > versions of the patch-set. To your point, there's probably little to be > > gained in debating the merits of adding such APIs until there's a > > concrete use-case. > > > > Yep, sounds good. I don't mean to debate :) I would like to help. If > we could build on top of existing infra and make improvements, IMHO it > would be easier to maintain. Anyway, I'm looking forward to your > proposed APIs. Don't worry, I did not take it that you were debating. I very much appreciate your thoughts and help. If and when I send out that RFC patchset, I'll be sure to cc you (if not reach out beforehand as well to discuss).