diff options
author | Jesper Dangaard Brouer <brouer@redhat.com> | 2017-10-06 10:41:46 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-06 10:04:35 -0700 |
commit | 280b058d4801cb431477dc101a776e4b24995f2f (patch) | |
tree | 993a220ce48d529b5b3cd71a4af56429eaf4ef1b /samples/bpf/offwaketime_kern.c | |
parent | f4ce0a0116bc90803adac10865f14429313cb2b6 (diff) | |
download | op-kernel-dev-280b058d4801cb431477dc101a776e4b24995f2f.zip op-kernel-dev-280b058d4801cb431477dc101a776e4b24995f2f.tar.gz |
samples/bpf: xdp_monitor also record xdp_exception tracepoint
Also monitor the tracepoint xdp_exception. This tracepoint is usually
invoked by the drivers. Programs themselves can activate this by
returning XDP_ABORTED, which will drop the packet but also trigger the
tracepoint. This is useful for distinguishing intentional (XDP_DROP)
vs. ebpf-program error cases that cased a drop (XDP_ABORTED).
Drivers also use this tracepoint for reporting on XDP actions that are
unknown to the specific driver. This can help the user to detect if a
driver e.g. doesn't implement XDP_REDIRECT yet.
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/bpf/offwaketime_kern.c')
0 files changed, 0 insertions, 0 deletions