Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3137771pxb; Fri, 4 Feb 2022 02:05:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJxY/x+cCV87dL+TFwaWAHkcYao/u0SXevD/D5VjSCx2CEnByYWXr1IT1ev8VTUylGS+o2cY X-Received: by 2002:a05:6402:2804:: with SMTP id h4mr2192141ede.241.1643969129266; Fri, 04 Feb 2022 02:05:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643969129; cv=none; d=google.com; s=arc-20160816; b=c+/6Nn51KhdU3n9dpVR9lUtCBL2SIcdEXgmA9dvC+lL0F5RBB9BYNVBssQyhWPLoqy VHX8ku2K/PBQaCwLL99y9PfOFJEKcA1Vbt0ON7tF1218k20NRLoZva82MuOowsedbUJz 0zpqOsjCOzKs2BrUf6Jcj5n3PsuM3DWYxbKJIByChnd6cnpAWsb46o67zE9RSUo4cHxi uMo6fs3rTkGNLwX7qPtyZwMCHRvg9lxJnf00WsKsfjlBGSoCY8cSLbWdbNY/k1xAkvCF gC0NoRSz9yjfgR9cd/qrLxxlLwJmjLqgnwbcgu9dSMuEjTY4uNWPuyvyCqn82wnd9Dug dYbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=8MvF16Fa8atHEuV62aZ7Dotyq639l/vJ9w+0/gZoxnY=; b=WouBvgysHPNyey2lDGlHI840Gj2+m63sGOpk4RJK0WMJ7D9AKjDZ84CAli3LBLlM26 4dqSKNPQx+JW2Vb2mMepCoE8N0Qfnh+a3LVyu3qqorLvcL8uxq+y/WekXiv7twOWiHYB YW2pteVC/pLg1D6rrWCGAW/wgTQqaAqn/wkLnm+h0jjh3nPErZhgIUPXlhaS0UgXgfxF KPcDrf7cQ4WpVrMl8IPcN3lg4K4gQjYm2gSoPQfSR5zgz7DYUWY7A6amIG8OoXkykVoU UL+rcrEtgUal4NXsbDynUrL4NG3gJXS60kLwnLSd4lE2RtxY4rSwNrPP613O4ueSkR1K uM3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VzNMyLHs; 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 h15si975407edb.428.2022.02.04.02.05.04; Fri, 04 Feb 2022 02:05:29 -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=VzNMyLHs; 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 S1356287AbiBDAq0 (ORCPT + 99 others); Thu, 3 Feb 2022 19:46:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230386AbiBDAq0 (ORCPT ); Thu, 3 Feb 2022 19:46:26 -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 27F62C061714; Thu, 3 Feb 2022 16:46:26 -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 BA6716194A; Fri, 4 Feb 2022 00:46:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DCAD1C340E8; Fri, 4 Feb 2022 00:46:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643935585; bh=KnasKzPC2rpJ48+6l141M8t0itDGXTYhKozsZuyWfwE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=VzNMyLHs39xZVHVY4WDNUfezDCHiOS96hm/rk8Kgo1uAe0noKV2Rqe/ywnVMU95k4 GghhgewCeMMUhO/GVY+pBiIPij16bA2G2OgZH0FhR6fo4mGfz263OxZVqKFxPlp+Ux iD0OjRptj+gb0+0h1nAYo7OTjwLY1H6EZlNT/gAF6kKDbOFxog4W97pVvMRs+oKJEZ XAKuBodVLJpyMR8LYLpV0nRK0L+Aq5+8eHTl+oqFTEcyQkdgOM/Ab0+cQ2XpvOOVWY DHcpDG761xcF/UUwlXCx519tMkXcIBA77LaPpmjsg+yCrmRl3ZTB+tkgy3svTMkbN0 Vetsh4AIzMUVw== Date: Fri, 4 Feb 2022 09:46:19 +0900 From: Masami Hiramatsu To: Jiri Olsa Cc: Alexei Starovoitov , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Masami Hiramatsu , Network Development , bpf , lkml , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Steven Rostedt , Jiri Olsa Subject: Re: [PATCH 0/8] bpf: Add fprobe link Message-Id: <20220204094619.2784e00c0b7359356458ca57@kernel.org> In-Reply-To: References: <20220202135333.190761-1-jolsa@kernel.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 3 Feb 2022 16:06:36 +0100 Jiri Olsa wrote: > On Wed, Feb 02, 2022 at 09:30:21AM -0800, Alexei Starovoitov wrote: > > On Wed, Feb 2, 2022 at 9:24 AM Jiri Olsa wrote: > > > > > > On Wed, Feb 02, 2022 at 09:09:53AM -0800, Alexei Starovoitov wrote: > > > > On Wed, Feb 2, 2022 at 5:53 AM Jiri Olsa wrote: > > > > > > > > > > hi, > > > > > this patchset adds new link type BPF_LINK_TYPE_FPROBE that attaches kprobe > > > > > program through fprobe API [1] instroduced by Masami. > > > > > > > > No new prog type please. > > > > I thought I made my reasons clear earlier. > > > > It's a multi kprobe. Not a fprobe or any other name. > > > > The kernel internal names should not leak into uapi. > > > > > > > > > > well it's not new prog type, it's new link type that allows > > > to attach kprobe program to multiple functions > > > > > > the original change used BPF_LINK_TYPE_RAW_KPROBE, which did not > > > seem to fit anymore, so I moved to FPROBE, because that's what > > > it is ;-) > > > > Now I don't like the fprobe name even more. > > Why invent new names? It's an ftrace interface. > > how about ftrace_probe ? 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. It means that we may better to keep simple mind model (there are only static event or dynamic kprobe event). > > > but if you don't want new name in uapi we could make this more > > > obvious with link name: > > > BPF_LINK_TYPE_MULTI_KPROBE > > > > > > and bpf_attach_type: > > > BPF_TRACE_MULTI_KPROBE > > > > I'd rather get rid of fprobe name first. > > > > Masami, any idea? Can't we continue to use kprobe prog type for user interface and internally, if there are multiple kprobes or kretprobes required, switch to use fprobe? Thank you, > > thanks, > jirka > -- Masami Hiramatsu