[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <41a654b1-db73-1c18-221c-e055e2d3ff37@fb.com>
Date: Mon, 2 Mar 2020 08:36:05 -0800
From: Yonghong Song <yhs@...com>
To: Andrii Nakryiko <andriin@...com>, <bpf@...r.kernel.org>,
<netdev@...r.kernel.org>, <ast@...com>, <daniel@...earbox.net>,
<ethercflow@...il.com>
CC: <andrii.nakryiko@...il.com>, <kernel-team@...com>
Subject: Re: [PATCH bpf-next 2/3] bpf: generate directly-usable raw_tp_##call
structs for raw tracepoints
On 3/1/20 12:10 AM, Andrii Nakryiko wrote:
> In addition to btf_trace_##call typedefs to func protos, generate a struct
> raw_tp_##call with memory layout directly usable from BPF programs to access
> raw tracepoint arguments. This allows for user BPF programs to directly use
> such structs for their raw tracepoint BPF programs when using vmlinux.h,
> without having to manually copy/paste and maintain raw tracepoint argument
> declarations. Additionally, due to CO-RE and preserve_access_index attribute,
> such structs are relocatable, all the CO-RE relocations and field existence
> checks are available automatically to such BPF programs.
>
> runqslower example in next patch will demonstrate this usage.
>
> Signed-off-by: Andrii Nakryiko <andriin@...com>
Acked-by: Yonghong Song <yhs@...com>
Powered by blists - more mailing lists