Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5326179pxb; Sun, 6 Feb 2022 22:18:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJwfh9DqtfJ+KslJ1q9itcGtq5yo2IjzX+ge0yupkn21FZj34DuEw+LIPQODSu+IkUxbzmY6 X-Received: by 2002:a17:907:234b:: with SMTP id we11mr736785ejb.5.1644214692674; Sun, 06 Feb 2022 22:18:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644214692; cv=none; d=google.com; s=arc-20160816; b=y7vltTdIHsDk7R3Pj43KSj+KbNr+9FWt+DujrxMwwIXYvKgt2yuZMXLwF++BLp7CHs 2aQCNF0w2GFNUpBIIjDtOV5yq4zTpPPT69pTgdL95aRkJgQ6AaGIrmurth8FZTyZprxk nHRVXfE+/JEJgr49dg6Gx26xnLQyQWMi3BqU11IpxW/LjEb1hDPhqwzT41pG2EVPt7bt GFqLWAi/8z1uTGKs37C/x9D/tnYr4sY1Hxc+l++zGrF9JkACTeNbfNJoHBZfeOIwGRks A7u2I4MRRNxsxFPKRCGe5PghPlFO9Tse/r/ZrnwZA71kuKtCaD7yw9EVpdXjou+Km5e7 SfxA== 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=fLtyLI7w0F+067AJk95vN7vO4SSzI3DgtmjUEdow9Ec=; b=1BnF8Ol7P64EonKLJvSy8FLELSIvqwVXAmtfZ4f8NFAsL95HkeYu+cqwY8BTO6EXw5 l3zdGljXLWJSO8ZT9dxDnucwIAGOQXCJjCKmJqa+MJdLSya7H4GEhb905+CBcFPq2c+w 67N7o5sXTWIgGZSPtCk+Yyb6x9vEa3x4lLpQojBmUUyfV97cbyadk1Yx7SmygIwdu2bm yysl7zTBH8hFZoIpRkkd4ahBnyt4EqwvQimwP5C7aLykp6sWHkeZfqiABxTuOXCTPhFm C9F5GWQsdDMIZkXQLFgVatDQ7RDBTp6n6z5CII1cIBjGmHlrZVe08rwyP4QC9nrVJEX/ MF6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ScABi76H; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b6si6761645edu.231.2022.02.06.22.17.48; Sun, 06 Feb 2022 22:18:12 -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=@gmail.com header.s=20210112 header.b=ScABi76H; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356620AbiBDCM1 (ORCPT + 99 others); Thu, 3 Feb 2022 21:12:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233976AbiBDCMX (ORCPT ); Thu, 3 Feb 2022 21:12:23 -0500 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3797C061714; Thu, 3 Feb 2022 18:12:22 -0800 (PST) Received: by mail-pj1-x1034.google.com with SMTP id my12-20020a17090b4c8c00b001b528ba1cd7so4848864pjb.1; Thu, 03 Feb 2022 18:12:22 -0800 (PST) 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=fLtyLI7w0F+067AJk95vN7vO4SSzI3DgtmjUEdow9Ec=; b=ScABi76HI6EMk7snBw0N2+/wJ8lYQ7I6QNhJIWai/xL2NzV0UyEkrjbvLi5w751+jW jJ1mbGqupyK7aDO+AwR1pkk7kjdkCl3tvsDedwBGzSlS+3Mu6w2LwymVuBr4k7JonOC9 Z1Vk/iOeVR9KHPvRMiLXi3nmdVkGvHEvJQvKHvrtr632FnDrot56fLOXQCThWWeF9QUC 82Y6iNuhxKDbnWQFDQLVMmMyVq9/UfDPU2ADjo2sFB9wdyIS7gX4ezav2RjpRZODGAAC djwo3Fb24wkkkiTT0/lb33N1CqRE/N5tFNSL5OhV+sCRXonCiIMhHhrT1AlENdVHglTy OZsQ== 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=fLtyLI7w0F+067AJk95vN7vO4SSzI3DgtmjUEdow9Ec=; b=AaOECB0+VK4PRqRLyBg912npVNVwt27IkFXFeE8TIqnsOiRVSzPvRvHV0L7RyBkrwR 00G9dpOcbVj6Pw5d391+6gLWpPTb2/EUysyO06UBMxbLVD6mqkzqlTw50B9BNIkYtcva iYQRVkGHVC6ADXHRqWWhg5Z4yE/Mh/gFTu9DKSi+4giVZ714XF6qnoHPSpS1ENCbIocy alNoLf4eGbz6SEPvl5XypfpN2ULdgCrtgxbtnlL8kvVlIGbeooCq6qAchiuWeZVpap+C sTe648EkuCTzqf6oSdflvp4b0RhYjJItBiAIVBN7s7Xa1rkBIVFDatXkezs06UPWnfYS O4Mw== X-Gm-Message-State: AOAM532pxPwbboLZfClj16ZiokvKlyzR82LIV8JkEGlYwxg1vd73RS6i NOUvpvSOOZfkpUA9v5j8vBVNK1bgi5Z/obd9/JQ= X-Received: by 2002:a17:902:b682:: with SMTP id c2mr801290pls.126.1643940742341; Thu, 03 Feb 2022 18:12:22 -0800 (PST) MIME-Version: 1.0 References: <20220202135333.190761-1-jolsa@kernel.org> <20220204094619.2784e00c0b7359356458ca57@kernel.org> <20220204110704.7c6eaf43ff9c8f5fe9bf3179@kernel.org> In-Reply-To: <20220204110704.7c6eaf43ff9c8f5fe9bf3179@kernel.org> From: Alexei Starovoitov Date: Thu, 3 Feb 2022 18:12:11 -0800 Message-ID: Subject: Re: [PATCH 0/8] bpf: Add fprobe link To: Masami Hiramatsu Cc: Jiri Olsa , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Network Development , bpf , lkml , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Steven Rostedt , Jiri Olsa Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 3, 2022 at 6:07 PM Masami Hiramatsu wrote: > > On Thu, 3 Feb 2022 17:34:54 -0800 > Alexei Starovoitov wrote: > > > On Thu, Feb 3, 2022 at 4:46 PM Masami Hiramatsu wrote: > > > > > > I thought What Alexei pointed was that don't expose the FPROBE name > > > to user space. If so, I agree with that. We can continue to use > > > KPROBE for user space. Using fprobe is just for kernel implementation. > > > > Clearly that intent is not working. > > Thanks for confirmation :-) > > > The "fprobe" name is already leaking outside of the kernel internals. > > The module interface is being proposed. > > Yes, but that is only for making the example module. > It is easy for me to enclose it inside kernel. I'm preparing KUnit > selftest code for next version. After integrated that, we don't need > that example module anymore. > > > You'd need to document it, etc. > > Yes, I've added a document of the APIs for the series. :-) > > > I think it's only causing confusion to users. > > The new name serves no additional purpose other than > > being new and unheard of. > > fprobe is kprobe on ftrace. That's it. > > No, fprobe is NOT kprobe on ftrace, kprobe on ftrace is already implemented > transparently. Not true. fprobe is nothing but _explicit_ kprobe on ftrace. There was an implicit optimization for kprobe when ftrace could be used. All this new interface is doing is making it explicit. So a new name is not warranted here. > from that viewpoint, fprobe and kprobe interface are similar but different. What is the difference? I don't see it.