diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2023-02-15 00:12:17 +0100 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2023-02-17 00:32:45 +0100 |
commit | c0ca277bb8bc43152d2b2fa60b47a1e1d609da45 (patch) | |
tree | fc7404fd85e6086032e2770c8880a866a3ac9d3c /samples/bpf/xdp_adjust_tail_user.c | |
parent | bpftool: Use bpf_{btf,link,map,prog}_get_info_by_fd() (diff) | |
download | linux-c0ca277bb8bc43152d2b2fa60b47a1e1d609da45.tar.xz linux-c0ca277bb8bc43152d2b2fa60b47a1e1d609da45.zip |
samples/bpf: Use bpf_{btf,link,map,prog}_get_info_by_fd()
Use the new type-safe wrappers around bpf_obj_get_info_by_fd().
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20230214231221.249277-5-iii@linux.ibm.com
Diffstat (limited to 'samples/bpf/xdp_adjust_tail_user.c')
-rw-r--r-- | samples/bpf/xdp_adjust_tail_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/bpf/xdp_adjust_tail_user.c b/samples/bpf/xdp_adjust_tail_user.c index 167646077c8f..e9426bd65420 100644 --- a/samples/bpf/xdp_adjust_tail_user.c +++ b/samples/bpf/xdp_adjust_tail_user.c @@ -184,7 +184,7 @@ int main(int argc, char **argv) return 1; } - err = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); + err = bpf_prog_get_info_by_fd(prog_fd, &info, &info_len); if (err) { printf("can't get prog info - %s\n", strerror(errno)); return 1; |