]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
samples/bpf: xdp_monitor first 8 bytes are not accessible by bpf
authorJesper Dangaard Brouer <brouer@redhat.com>
Fri, 6 Oct 2017 08:41:41 +0000 (10:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Oct 2017 17:04:35 +0000 (10:04 -0700)
commitf4ce0a0116bc90803adac10865f14429313cb2b6
tree7cfb55bafa296fcadaf5c6a88582293ceb8c0c30
parentc6a157525be5b6cab48b4c86e7473712e3656c36
samples/bpf: xdp_monitor first 8 bytes are not accessible by bpf

The first 8 bytes of the tracepoint context struct are not accessible
by the bpf code.  This is a choice that dates back to the original
inclusion of this code.

See explaination in:
 commit 98b5c2c65c29 ("perf, bpf: allow bpf programs attach to tracepoints")

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/bpf/xdp_monitor_kern.c