diff options
author | Jesper Dangaard Brouer <brouer@redhat.com> | 2019-12-20 17:19:36 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-12-20 16:13:43 -0800 |
commit | f9e6bfdbaf0cf304d72c70a05d81acac01a04f48 (patch) | |
tree | ac70f4b3f3111f5c8001e2beec6510d527279109 /tools/lib | |
parent | 6cd6e64e3603bd5d1677365cf935c2d8e9f496e0 (diff) | |
download | linux-f9e6bfdbaf0cf304d72c70a05d81acac01a04f48.tar.gz linux-f9e6bfdbaf0cf304d72c70a05d81acac01a04f48.tar.bz2 linux-f9e6bfdbaf0cf304d72c70a05d81acac01a04f48.zip |
samples/bpf: Xdp_redirect_cpu fix missing tracepoint attach
When sample xdp_redirect_cpu was converted to use libbpf, the
tracepoints used by this sample were not getting attached automatically
like with bpf_load.c. The BPF-maps was still getting loaded, thus
nobody notice that the tracepoints were not updating these maps.
This fix doesn't use the new skeleton code, as this bug was introduced
in v5.1 and stable might want to backport this. E.g. Red Hat QA uses
this sample as part of their testing.
Fixes: bbaf6029c49c ("samples/bpf: Convert XDP samples to libbpf usage")
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/157685877642.26195.2798780195186786841.stgit@firesoul
Diffstat (limited to 'tools/lib')
0 files changed, 0 insertions, 0 deletions