lkml.org 
[lkml]   [2021]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH bpf-next v3 4/6] libbpf: Initialize the bpf_seq_printf parameters array field by field
    On Mon, Apr 12, 2021 at 8:38 AM Florent Revest <revest@chromium.org> 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 <revest@chromium.org>
    > ---

    Looks good!

    Acked-by: Andrii Nakryiko <andrii@kernel.org>

    > tools/lib/bpf/bpf_tracing.h | 40 +++++++++++++++++++++++++++----------
    > 1 file changed, 29 insertions(+), 11 deletions(-)
    >

    [...]

    \
     
     \ /
      Last update: 2021-04-14 01:19    [W:7.283 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site