Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2226672pxb; Wed, 30 Mar 2022 19:58:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQN07qSair86h6NQ0+OX4AKLU9MkhF6i2tV6J8uhhYBKlAbzWD48mcy1woJoAdD7yXWnox X-Received: by 2002:a17:90b:350e:b0:1c6:cd4e:303a with SMTP id ls14-20020a17090b350e00b001c6cd4e303amr3409983pjb.141.1648695519578; Wed, 30 Mar 2022 19:58:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648695519; cv=none; d=google.com; s=arc-20160816; b=Q9dezfJqQKwFko+BXbShnBxhBguhMEmdUAUcF2nxRV+DGP4q6G+aHS0L1t50SurXrn a7oxhSRKT98D25eDmLeF/9A8GJbZpcEYL4Rry6+J/fBYikG3DGRy3hts/09b1cdjd+Ag 5wYA/ExSC8KMo3KGxT+3EaNj+i0RCoLIxrqzsOMFZb+GWY2EH9gjQe65gW9ebt0uXZQ+ rj96CMYQNmVMlj8J++tpo8BIAAN9PvFIIpWWtUIyerIZabDq9KXE3ARX72Y/wEHrGhei G2jDBGCTcC7N2YG4dlX5Nqy/k9tigQMFVv/Ldlz8bcQh7RbI2U+yOCw2qcPQXmLuNtjx fCig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=W+3wVxsLtAbTsL8nxtMoxIj7SMW+0TqIqxYDApc8pGg=; b=Ro798bXAIgbj2xhUnA2idXki6W2wA9dF0OpueDtuN1pQpZAcy1zAdIfssnIstGUA5Y P33ib+xjEJbyN0xl8jU3FG65cWNXjfhCZBm62IuBnylat0DKgzVcmfeMXih5h9YjzKvm gmIMh4q8HYN7H8CozSiE6Mk2imo6arpmVoZlnwH9Q3jwfHAHRDoUnIvQkZ8qwsH8yAGd zIgLMSU9EVEJ675AY5pBbI35+CQ5gMpq2hyECiHgmZkO6uKlQDC3wXtt2vOmNx8xS0Q7 Id0gQvUE547Pyd3/R6CUo2FHp11hWkkvCHD2pYMUafTsgt03NYBRt2dhhPh6WnyHGLXh wM4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="RiJR8/VE"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id z33-20020a631921000000b00383c70e8e18si22439108pgl.439.2022.03.30.19.58.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 19:58:39 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="RiJR8/VE"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A7ECDA0BEE; Wed, 30 Mar 2022 19:42:03 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241045AbiC2Twg (ORCPT + 99 others); Tue, 29 Mar 2022 15:52:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234769AbiC2Twf (ORCPT ); Tue, 29 Mar 2022 15:52:35 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E013D17A5B3; Tue, 29 Mar 2022 12:50:51 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id gb19so18525534pjb.1; Tue, 29 Mar 2022 12:50:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=W+3wVxsLtAbTsL8nxtMoxIj7SMW+0TqIqxYDApc8pGg=; b=RiJR8/VEpiExHjFbW3Ep536IZrw+3lizQ1IqT5oU+O6pE/irxH0UsqSQbjOuZJTi95 hl2MwVjHuY9gVurjtF2Q4H0HKxWMsfDrLR/rmxojcrLCuz9RAvBepnl2xcYbTqK8Wmdj 3DKcAOW0b5BT8ic9YfE7z3gRyK1ghnZgQ4JsvA0fHRVIqDFlaIKAP9gOlFwcW01ZNj/1 5FCQ249p5y2QEeVd4h52c84ARB4P6I0MwXPLAGhrIVP9yStSp1QMTtVWRMpA/bIssqXP qV33OS5ENB3xJnhXPsJiKYVNNaPA7Xp/obm1Eje35+vq5AGVlx7UIHLb86fPqm/WoTgf q+5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=W+3wVxsLtAbTsL8nxtMoxIj7SMW+0TqIqxYDApc8pGg=; b=QX0BF0TeY7MfPkL0uoRbqoRzdEqO/ZumKUQQpRvlNTr01H2u4BloQMmTLfcPuuZx6J GtlhN/vsoa75HdmLJFFLBf/906wceSwkVwxNQ5KUtpFuUn5jz5opuFUJJFe5cODpwqrd jt7ksMbs0d461wMVoO5N4ohqE2Jbto+NXDzjO+QLrAe19gzoii0N4ANXpmle06rJ0s3N M1S1+mU0uGvo7bSb8stpwXDCGlsxUaHH8iNdfnsx3iKflvmZUQL+WeRJepvgPzcphqgk lVUMdcJas24GSjCzIpiy9DeCMRLieVE4xgGHxRPS4eK1oLlfZZFzgqazCr40saFPhrhS Rucg== X-Gm-Message-State: AOAM531wRVKUNsxyGPGoT7ry+7cuBZRtdkh9E1UDJHBTWEagg4WxSD3F iIRgygz6ehlUtysuN+BEXoLI7e5lvTVC3p6omQQ= X-Received: by 2002:a17:90b:3003:b0:1c9:9751:cf9c with SMTP id hg3-20020a17090b300300b001c99751cf9cmr797454pjb.20.1648583451388; Tue, 29 Mar 2022 12:50:51 -0700 (PDT) MIME-Version: 1.0 References: <20220329181935.2183-1-beaub@linux.microsoft.com> In-Reply-To: <20220329181935.2183-1-beaub@linux.microsoft.com> From: Alexei Starovoitov Date: Tue, 29 Mar 2022 12:50:40 -0700 Message-ID: Subject: Re: [PATCH] tracing/user_events: Add eBPF interface for user_event created events To: Beau Belgrave Cc: Steven Rostedt , Masami Hiramatsu , linux-trace-devel , LKML , bpf , Network Development , linux-arch , Mathieu Desnoyers Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,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, Mar 29, 2022 at 11:19 AM Beau Belgrave wrote: > > Send user_event data to attached eBPF programs for user_event based perf > events. > > Add BPF_ITER flag to allow user_event data to have a zero copy path into > eBPF programs if required. > > Update documentation to describe new flags and structures for eBPF > integration. > > Signed-off-by: Beau Belgrave The commit describes _what_ it does, but says nothing about _why_. At present I see no use out of bpf and user_events connection. The whole user_events feature looks redundant to me. We have uprobes and usdt. It doesn't look to me that user_events provide anything new that wasn't available earlier.