From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BB09FC433EF for ; Thu, 3 Feb 2022 15:06:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351646AbiBCPGt (ORCPT ); Thu, 3 Feb 2022 10:06:49 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:21774 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351637AbiBCPGo (ORCPT ); Thu, 3 Feb 2022 10:06:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1643900803; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=e8niZzxOerSalLROqW1yaPIfEQIUnjkuK5AiQtq2ICQ=; b=F+cnZmXV8r+DqVxrirJEDgmjKeU47sBiCsL3jPXk+l5CsrZAMJi2A8AU0Rk9wDyw6dcZVs 5jwU3ySyPWC/09gmADrHbiWWIRGtdzdRwh4JcsVa+PrY3vg3MWAfXJsbJ+esHW3vIQ500E jWWcNriSfxDsGc1cLljiJ2ikk61rpBo= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-124-WfTleLtjMamZvapHcelrpg-1; Thu, 03 Feb 2022 10:06:40 -0500 X-MC-Unique: WfTleLtjMamZvapHcelrpg-1 Received: by mail-wm1-f71.google.com with SMTP id bg32-20020a05600c3ca000b00349f2aca1beso1436635wmb.9 for ; Thu, 03 Feb 2022 07:06:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=e8niZzxOerSalLROqW1yaPIfEQIUnjkuK5AiQtq2ICQ=; b=EbfT7nj2N5NE9S3ZlTRt7Fda2M+cMDWHZwBC6eoMPjwhXYqhHF3S423ZZyCntZicyI PhdVSLX+61Ctf+fqAchOnfSHwi/V3yUpmnCH02LnuMvkFhrDaIeVIOmH9HZ5no3t3sJg AnIw+bQlMGF/PCL6vwb0EjIdaWZrhfd0WMpIxdj0bWomvAH7Bli8qSv1zwNmIZkK5win knh/Be5fIRd9Oi3nqDVwwhT8cxcLMo50qYgg5Da/+3J5ivJSZN/I0FozrOVfazRfO5RG ET04IHDG2lhBrc+qJeP3xkY2cL5q1e/pFCqUpQTRS1Vy4ubPU1XhNjvax463KkYdWPIp MaPg== X-Gm-Message-State: AOAM531jm+TKLrRS7M4HdHBz2SU5sVnmnbU1ybXB+G9bZgxAnC/LSBIf WBXgnN/1NFNyYz6U+PlzXUlBaWmTkyxqJ9Bo4DneTduP3FX0QvYSo/yQn22dI4yHwVnsdDQF9bp nWtNOff6fesdO X-Received: by 2002:a5d:584a:: with SMTP id i10mr29740977wrf.305.1643900799582; Thu, 03 Feb 2022 07:06:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJz934L+SQrIz7AUepaOSxtsJhAkKBx/N4nuAG+HSxmSd7bSFbI6AAieW+uCHw3WJ9ij5COWtQ== X-Received: by 2002:a5d:584a:: with SMTP id i10mr29740953wrf.305.1643900799362; Thu, 03 Feb 2022 07:06:39 -0800 (PST) Received: from krava (nat-pool-brq-u.redhat.com. [213.175.37.12]) by smtp.gmail.com with ESMTPSA id o10sm9478745wri.69.2022.02.03.07.06.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Feb 2022 07:06:38 -0800 (PST) Date: Thu, 3 Feb 2022 16:06:36 +0100 From: Jiri Olsa To: Alexei Starovoitov Cc: 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: References: <20220202135333.190761-1-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org 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 ? > > > 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? thanks, jirka