diff options
author | Daniel T. Lee <danieltimlee@gmail.com> | 2023-01-15 08:16:09 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-01-15 22:32:45 +0100 |
commit | a1f93c8fb0a836b6c891e51729f6cb98a1da47ba (patch) | |
tree | a37d83ff9e419de041007e34eb30ce24fc86a6e5 /samples/bpf/syscall_tp_user.c | |
parent | samples/bpf: replace broken overhead microbenchmark with fib_table_lookup (diff) | |
download | linux-a1f93c8fb0a836b6c891e51729f6cb98a1da47ba.tar.xz linux-a1f93c8fb0a836b6c891e51729f6cb98a1da47ba.zip |
samples/bpf: replace legacy map with the BTF-defined map
With libbpf 1.0 release, support for legacy BPF map declaration syntax
had been dropped. If you run a program using legacy BPF in the latest
libbpf, the following error will be output.
libbpf: map 'lwt_len_hist_map' (legacy): legacy map definitions are deprecated, use BTF-defined maps instead
libbpf: Use of BPF_ANNOTATE_KV_PAIR is deprecated, use BTF-defined maps in .maps section instead
This commit replaces legacy map with the BTF-defined map.
Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com>
Link: https://lore.kernel.org/r/20230115071613.125791-7-danieltimlee@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'samples/bpf/syscall_tp_user.c')
0 files changed, 0 insertions, 0 deletions