Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5507328pxj; Wed, 26 May 2021 12:10:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb76xMQNbLXZHDjdsEnzvCumDzhd/TA7GUu2/Nps1bXYIS8xqdMkQORJdWVtk/NA5W3uxj X-Received: by 2002:a05:6402:2547:: with SMTP id l7mr39854799edb.73.1622056244046; Wed, 26 May 2021 12:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622056244; cv=none; d=google.com; s=arc-20160816; b=bAPNvb5I+L6P7FrU7sX0df1TBRT+bQr1xUBSWki/ZLdl//76PQemZ4IFgKFbq/Bu03 9+7jT0/5zOyv9zdOE80yzKc0+zX7d9W5X+u+uHFgr8NXccdmT6osZaF5CwT0EGTF8Qn6 7vUY0ZEc6ubhb6+EfImNPdQfARxZGbaraIP0Wl/hY1W1+PTI7ISI1P9Crhsn3wS0kkQT uunejCu7+OH39guZZVelyCTLbEk6rr6iPTDjGrIdfK6XTVjL9Cb9KoLlPodg8AbmTc5D 3TMzh0iZ82vpdD/bHV0ZLYhDP+4+GO36ymhfyIbu0V2kUQsdMj2RE9I7rLBHa4MX1+yV 9f8w== 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=qTd05BB9u83g9Rw1TR7BTuNQ98y93oaBclDpda30Nz4=; b=Ng+lJVF8pF3zgYbKlTG6Hg8QWQAW0nuogAxgwUd6+WJg6KB/qWemIdAz8Lwyu6YhA/ O3HoHBvj2Ginxgb2ggt6xmnlEBmmlyOYQMHP39aJ7lup2p6Ay39//+E8AhtGoPtawSxI ThI7EJRvueNOy3JbPyl9LSCxQstHKaXPsKFTUABNgntZGBspJmd3N86tOD5ZxL+i+qA8 d+376i8UCSHN7YttqDlZ/PnSoaWphDAF2qe7sM/obl5UWx19pm+G4Ph1/zC1zDb2FVhw BdnOb2LYReK4zJcZEuQwCDJeTlzalSqQqlgcnilUG+08hYoWJo254049Mq2UBL87C0d2 2gqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=G4yR6k+t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f14si122089edv.149.2021.05.26.12.10.20; Wed, 26 May 2021 12:10:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=G4yR6k+t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234772AbhEZQjC (ORCPT + 99 others); Wed, 26 May 2021 12:39:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234997AbhEZQiy (ORCPT ); Wed, 26 May 2021 12:38:54 -0400 Received: from mail-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7F1BC061756 for ; Wed, 26 May 2021 09:37:20 -0700 (PDT) Received: by mail-il1-x129.google.com with SMTP id o10so1429151ilm.13 for ; Wed, 26 May 2021 09:37:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qTd05BB9u83g9Rw1TR7BTuNQ98y93oaBclDpda30Nz4=; b=G4yR6k+tl95mFcr1sMEmd3PD2OAkaWyNW+VPhShlhzmuhfgGbnr41IapWtGPOhk0Vo +o4IGM7k3eKtoHuWeKlBw1oUp5P1DlBJXcKDkG2jIlK/ydAr4zfKmZD3CcLCbjAyudrE MQWdV2jojDkeRnQeloln9JaLJwfWvTelca2rY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qTd05BB9u83g9Rw1TR7BTuNQ98y93oaBclDpda30Nz4=; b=tgd8aIMwInv+b/4QyCKVgege9EdzZW5g2fMynU3AiEtF0TrUAw6+OBqOI7cJiA4Mjc hCu3PV4VcEVQZie5ApXppgNi/MNV7Q1nFOoBjdUNrNNyXImWW9i7upR6gi8kg+cn8xcr aXpP8JFoXEuvMF5qAg54UY8h/fJMI15KnayU1bnZHPn0Eo7yXdP4ATzFUcwMcTnUJUeT Kto1fMBvSyDtnq4bu1j+VQXB6c2bqZ+c62l8h/+3c/qnhKdAJEYLqs9NK6sU8JO73IbW FzZJvop1WAW+mlUnWFrLb114TqWJc8zof9GQx8mefeVY+mzY9DKBPGaegHNPdBGUsdwE u3Aw== X-Gm-Message-State: AOAM532dsgsm29xJOu4/9U1AR0TtBc0/a/D0wTTehNXsE0aqtvYuCUXK 26f6Q+EYJBDMYBMUIcYYimfInLmOvIyt/YzuZW/YYw== X-Received: by 2002:a05:6e02:1b05:: with SMTP id i5mr30226678ilv.204.1622047039981; Wed, 26 May 2021 09:37:19 -0700 (PDT) MIME-Version: 1.0 References: <20210525201825.2729018-1-revest@chromium.org> In-Reply-To: From: Florent Revest Date: Wed, 26 May 2021 18:37:09 +0200 Message-ID: Subject: Re: [PATCH bpf v2] libbpf: Move BPF_SEQ_PRINTF and BPF_SNPRINTF to bpf_helpers.h To: Andrii Nakryiko Cc: Daniel Borkmann , bpf , Alexei Starovoitov , Andrii Nakryiko , KP Singh , Brendan Jackman , open list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 26, 2021 at 6:35 PM Andrii Nakryiko wrote: > > On Wed, May 26, 2021 at 8:01 AM Florent Revest wrote: > > > > On Wed, May 26, 2021 at 8:35 AM Daniel Borkmann wrote: > > > > > > On 5/25/21 10:18 PM, Florent Revest wrote: > > > > These macros are convenient wrappers around the bpf_seq_printf and > > > > bpf_snprintf helpers. They are currently provided by bpf_tracing.h which > > > > targets low level tracing primitives. bpf_helpers.h is a better fit. > > > > > > > > The __bpf_narg and __bpf_apply macros are needed in both files so > > > > provided twice and guarded by ifndefs. > > > > > > > > Reported-by: Andrii Nakryiko > > > > Signed-off-by: Florent Revest > > > > > > Given v1/v2 both target bpf tree in the subject, do you really mean bpf or > > > rather bpf-next? > > > > I don't have a preference, it's up to you :) > > > > On one hand, I see no urgency in fixing this: BPF_SEQ_PRINTF has been > > in bpf_tracing.h for a while already so it can wait for another kernel > > release. Applying this to bpf-next would do. > > On the other hand, BPF_SNPRINTF hasn't made it to a kernel release yet > > so we still have a chance to do it right before users start including > > bpf_tracing.h and we'd break them in the next release. That's why I > > tagged it as bpf. > > > > The patch applies cleanly on both trees so if you prefer landing it in > > bpf-next it's fine by me. > > I think it should go through bpf-next. It's not really a bug fix. And > we are not going to break anyone with this move. And libbpf 0.4 is > officially released without this change anyway. So, bpf-next. Sounds good, I'll send a v3 tagged with bpf-next ;)