]> git.baikalelectronics.ru Git - 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)
commit4baadf0ad3a120e2c826b5855523a429c804b763
tree7cfb55bafa296fcadaf5c6a88582293ceb8c0c30
parentd3deda67406f57835a59d8e1dc5c71287a88d13d
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 f7bfae4e24bc ("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