Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3356633pxb; Wed, 14 Apr 2021 03:42:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNo0xHj7Nk0+Gvg460j+8Fb+Rpmc2wdgvzLxWQ1d0t50R5YIxRvfBocfQ3GrOhrObIuIRZ X-Received: by 2002:a17:902:9043:b029:e9:3900:5590 with SMTP id w3-20020a1709029043b02900e939005590mr37271878plz.76.1618396964720; Wed, 14 Apr 2021 03:42:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618396964; cv=none; d=google.com; s=arc-20160816; b=kfEXkznVULjtfYUOFTaoFoYPVURO6Usl2LpY2OHp7zct9aFfniDBljFXyV4M2lHvUE QR2CJNRnlKkWZ9Ofjq8mrWQ3dEmSlhJVhaB+wX7E/XmRvpCUwp97lDxwnqSINoMRV0dr 08md3VuSaH6fYaBqkBKsBNcUa+qbs6FwJPfWLaVialteMr9DttDEJxV/kvNjZdgKOvGN g5pNCiaGhICeFLMlh7mATeRREBRCJ7RU8RPwqHqPQ/OX8IuNeNcFPQs3WpTbcgomT5hB 1qGAZCFfcbt1WzpzR3sIxhxN2LT3fAlsyJ9x4ls+7K1FVIjUHrG9RoFmSTEjir0TrPiW ZyVA== 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=xoZuauWdKG6wQbThFxJJq+ycUIdgRef2r4Hhu31DdiE=; b=cKB9/j6QgB947BcYlmxaoPE3JvVh3t8tNTuq/sHua21scde7rdMe1n5Ma9vTXtFY56 VAaTrPp8Ry7eAIh9LKwtPgwJRO9qaqozwdXU/KbQYfukhf8VY5M4dDmH4KqYUsIk1Oii 4lISN6vdE+JMlYZnhUtNaoSzwj/szzuglMSQLHlFdkPFGCRlRn5EpM/lSuBIOfIB0JgJ Ikk7Ql0zkdyHITYsXDlPCpKz7nWCzIXeN/8EOoK0KjRF6tT1VR/iH5tp3GxCcjhXRDOP P/jtJEIQNgbuzvSLOSUVY34o9NRZnJfpoXoi9PWU0hlXreGKjpTc6MEKcIBcQkFBk4Cz wZgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WyL7wmq2; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g12si9088981plg.93.2021.04.14.03.42.32; Wed, 14 Apr 2021 03:42: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=@gmail.com header.s=20161025 header.b=WyL7wmq2; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348009AbhDMXSf (ORCPT + 99 others); Tue, 13 Apr 2021 19:18:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230123AbhDMXSf (ORCPT ); Tue, 13 Apr 2021 19:18:35 -0400 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0C0AC061574; Tue, 13 Apr 2021 16:18:14 -0700 (PDT) Received: by mail-yb1-xb2d.google.com with SMTP id 82so20034686yby.7; Tue, 13 Apr 2021 16:18:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xoZuauWdKG6wQbThFxJJq+ycUIdgRef2r4Hhu31DdiE=; b=WyL7wmq2k2qpj04p7+7N8guSbbHZmOGwHRmk+HH4YpRoRws+6OHbBpcTh7vpGoj0gi cXyIKcdWYvPs7gSDTrz3xxxHbHMRVf8VZxnMjr6/KqkjaHskH3xQ1GgTVSzxQgRExWXL H2FyKFHfIJGdlxTyDsYVeuNt/1OdL7jetkH7lH1vMq0NATY/omoyHQg32pi2lXhRLDCz 2gVyyrcSNzEDYNfltdlRXTd43m+EQU9sjnqE6oWC8iezwVFFOu5NrJvZHSYnVLRxtS5o UfgplGlehH66Ej1NBstVDeOVooMbAsJYrPf53w4jk310sN6WoA8sAyVhtjJlRz383FWM tMHA== 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=xoZuauWdKG6wQbThFxJJq+ycUIdgRef2r4Hhu31DdiE=; b=r0EjRUXDMsvakhCALAkoW6RZyc9+wJLkHvSRqBmg8YyjHtGFrvty+el9kxtKFNydz0 ZU+tWRRxLSXpNXbfyh37jw5vBI5mICj9J9qJiW29mO+0kp/TgFdvbJCXhr/DREZnIxRF ln7OZhH5p8RkFLPbrGOdSEsNLygIcwfykJXOWVZaFS7Zgi7gQSZvqguPqS6MBB+Wf/Dg 0ZWJoX7iDdOBRCAJTYZ8/q9HvewmlrpuIVQyKP2NqebuCxqR8qtn06gsc5SoK4EKNgH5 9PEVI8P3UjUl+64BtW4LxgC1SEM+z/jea5R6tPTvN1+KrxwLhkhcNO247P2lAgFgnkL8 0Hmg== X-Gm-Message-State: AOAM530OIZP3UtgMocnwT+kzGHYTszdEdUgobEMYs6cCFlwDPgEBua7u MFPbU4GgtSU2VcRB4GXOo4oYk+wHpLtPlLFOjTceV64TIcs= X-Received: by 2002:a25:d70f:: with SMTP id o15mr36679045ybg.403.1618355894254; Tue, 13 Apr 2021 16:18:14 -0700 (PDT) MIME-Version: 1.0 References: <20210412153754.235500-1-revest@chromium.org> <20210412153754.235500-5-revest@chromium.org> In-Reply-To: <20210412153754.235500-5-revest@chromium.org> From: Andrii Nakryiko Date: Tue, 13 Apr 2021 16:18:03 -0700 Message-ID: Subject: Re: [PATCH bpf-next v3 4/6] libbpf: Initialize the bpf_seq_printf parameters array field by field To: Florent Revest Cc: bpf , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Yonghong Song , 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 Mon, Apr 12, 2021 at 8:38 AM Florent Revest wrote: > > When initializing the __param array with a one liner, if all args are > const, the initial array value will be placed in the rodata section but > because libbpf does not support relocation in the rodata section, any > pointer in this array will stay NULL. > > Fixes: c09add2fbc5a ("tools/libbpf: Add bpf_iter support") > Signed-off-by: Florent Revest > --- Looks good! Acked-by: Andrii Nakryiko > tools/lib/bpf/bpf_tracing.h | 40 +++++++++++++++++++++++++++---------- > 1 file changed, 29 insertions(+), 11 deletions(-) > [...]