lkml.org 
[lkml]   [2019]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH bpf-next v4 1/5] bpf: add writable context for raw tracepoints
Date


On 4/24/19 12:07 PM, Matt Mullins wrote:
> This is an opt-in interface that allows a tracepoint to provide a safe
> buffer that can be written from a BPF_PROG_TYPE_RAW_TRACEPOINT program.
> The size of the buffer must be a compile-time constant, and is checked
> before allowing a BPF program to attach to a tracepoint that uses this
> feature.
>
> The pointer to this buffer will be the first argument of tracepoints
> that opt in; the pointer is valid and can be bpf_probe_read() by both
> BPF_PROG_TYPE_RAW_TRACEPOINT and BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE
> programs that attach to such a tracepoint, but the buffer to which it
> points may only be written by the latter.
>
> Signed-off-by: Matt Mullins <mmullins@fb.com>

Acked-by: Yonghong Song <yhs@fb.com>

\
 
 \ /
  Last update: 2019-04-25 00:39    [W:0.201 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site