diff options
| author | Andrii Nakryiko <[email protected]> | 2022-01-24 19:42:51 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2022-01-26 01:59:06 +0000 |
| commit | 39748db1d6bc12b9f749a0aebe7ec71b00bd60eb (patch) | |
| tree | a8d1d26b5688a23ae449037f869aac628a4102eb /samples/bpf/map_perf_test_user.c | |
| parent | libbpf: deprecate bpf_program__is_<type>() and bpf_program__set_<type>() APIs (diff) | |
| download | kernel-39748db1d6bc12b9f749a0aebe7ec71b00bd60eb.tar.gz kernel-39748db1d6bc12b9f749a0aebe7ec71b00bd60eb.zip | |
bpftool: use preferred setters/getters instead of deprecated ones
Use bpf_program__type() instead of discouraged bpf_program__get_type().
Also switch to bpf_map__set_max_entries() instead of bpf_map__resize().
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'samples/bpf/map_perf_test_user.c')
0 files changed, 0 insertions, 0 deletions
