Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2214144pxb; Thu, 3 Feb 2022 01:42:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJzvxZrm6PmlDACk/ntT5R9mAihpft24qUk3ESgdag/HB86TcroCVKUi0nT6qbmytGH0c+rr X-Received: by 2002:a17:90b:1b46:: with SMTP id nv6mr12822935pjb.105.1643881361438; Thu, 03 Feb 2022 01:42:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643881361; cv=none; d=google.com; s=arc-20160816; b=lAcZfKafYByosteEL8takgzDbZRKRuGbd1BGQtH6tQDRy4UsB0uSx2mnYzVCUkL805 qFVk0kq/cdlXPpxoXJXbsloAf8mPoUYBQm2CIDhhaLFYNlWKyoYR5Fj+xhzJZFoeWv0h zEt2xLD0NItZE92kMqTESUUYJiZshY8umuk2BLC5UadMqOZv7Pw23TNH/OCPj94GJN2o 3KJb44Tk33mFQt9S1B4LE72aSgtcwRawKlxE09MbmAlXbtQ+p/G/NlSGvI9dy/0f7DC2 rSNj9YEfiAetWcjCwLD9wPoEF7ZcFOhiRWyNI+gBmaU0Kj+TNspmrxwY7uQgNLCeBPrN GFHQ== 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=xdhYsHsZ6GcM52cBZ3hWzm8M2TNSQxqnbArcpF/Qhc0=; b=TLKRafNn4PEO9rJvzAX0AU2tSe7pNS5T4Ug7twZPwZ88GxXsL8m/J7qFRb0d+V6wel FPG8Ujp2EIOl9Ez8yj5ZLxOAAY81T0nI4r3PDOBuvxyRTl8PjaxG+dQvskquJX3NcvoR e9tpcW7ryFIUERRYlIOb1c04oNEEHL1CWw85w8N8CXVDRhlNev2OUFDV5puGyyx3H7/c fzyQ26bqpExSqPGDc/kVEW2EF0qhArxei8quxxjiaxCiDR3jIShJYfUjepffkoiMNbmu YnvWscJxwut4aKC0NFGEIydOJxuRdrZ8UzwCb+Y3PlDYVhGz5bT9GlQLjspQj9kFyg/H enAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Rxg1nA2Z; 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 s14si20051098pgr.704.2022.02.03.01.42.29; Thu, 03 Feb 2022 01:42:41 -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=Rxg1nA2Z; 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 S1346265AbiBBRae (ORCPT + 99 others); Wed, 2 Feb 2022 12:30:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229588AbiBBRad (ORCPT ); Wed, 2 Feb 2022 12:30:33 -0500 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68099C061714; Wed, 2 Feb 2022 09:30:33 -0800 (PST) Received: by mail-pl1-x62f.google.com with SMTP id d1so18912208plh.10; Wed, 02 Feb 2022 09:30:33 -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=xdhYsHsZ6GcM52cBZ3hWzm8M2TNSQxqnbArcpF/Qhc0=; b=Rxg1nA2ZyobRs5qmnZTUqWBxhRyiOJ42MD4WC/Io+/7Gr4kBmnc3l9W8V+Ep8DrdHE LeEsDe/3e8OxEwFlluZKIo8/Z9WPuwHZcuWYSnk4y0CfXSAcw8q1GxOnPPp0OPZbxrIR ElQE2fUQddaaYcZB0xDrnPIx3VLSGN6G30AEN/ua7fov82YJz12vVjRDU9uNbeUZe/+m 2VAoHJE4J1FW/wOOTRSd/Jl4mpDGPFWJ2ZanK6maolOmAYlnecdanqZgrkRpOCnWK9yH 4CnRc1ptW9MPKZW0t8Z4V6+f1MccGBVfhJ1mJBCvz9PsdZzCjrPhhLD9sOS8PrPoF1KP TCnQ== 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=xdhYsHsZ6GcM52cBZ3hWzm8M2TNSQxqnbArcpF/Qhc0=; b=S57PWEGa8XCkRaw17GVVmGy9YA5VZX7oHYtaa/SN/TYJSJrGBOfDbcSgdqBD4+gnfk balDrcHTkBlPVyNvHg+GjTc8g0kw0oUOF5tuEtoHoLEcfepoEnL3t7KadRCfB1ryNrXg /evzOOjaZBWZGU+/pJHZ5VjOHpDn8MsIdV/pQcgI4M6wBn4nreSQLzbUvwX1uFaj0mYi FrWYzaBRoSMCkp10fYmu5BmcirNsIgb2EgHtDB85tKCr2UdNtxeNMEjkmwnjzKXVm7gS dpXnb8TIB+xVR4JKir34IRkbWUgK3SGN4NYZlL0IG3Te2+Pw5pFkodQxxxtzk8hrYUcy yXqg== X-Gm-Message-State: AOAM531JoKCQ/LoFFhLfeimo3lMCQmYCCPfs5IDdn+5P9wQt2AcaFlqR zCN2dhuXkKi3YLi1k4JxehP6RVORQRfml5auL44= X-Received: by 2002:a17:90b:1e41:: with SMTP id pi1mr9065420pjb.62.1643823032844; Wed, 02 Feb 2022 09:30:32 -0800 (PST) MIME-Version: 1.0 References: <20220202135333.190761-1-jolsa@kernel.org> In-Reply-To: From: Alexei Starovoitov Date: Wed, 2 Feb 2022 09:30:21 -0800 Message-ID: Subject: Re: [PATCH 0/8] bpf: Add fprobe link To: Jiri Olsa 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > 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.