aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/samples/bpf/xdp_redirect_cpu_user.c
diff options
context:
space:
mode:
authorDaniel T. Lee <danieltimlee@gmail.com>2020-09-04 15:34:33 +0900
committerDaniel Borkmann <daniel@iogearbox.net>2020-09-04 16:37:48 +0200
commit698584dffd4bca834ac4733fc6a659a0a0d213e7 (patch)
tree410116106c57e96dc5a780a039caecff7a7b8ae0 /samples/bpf/xdp_redirect_cpu_user.c
parentlibbpf: Fix potential multiplication overflow (diff)
downloadwireguard-linux-698584dffd4bca834ac4733fc6a659a0a0d213e7.tar.xz
wireguard-linux-698584dffd4bca834ac4733fc6a659a0a0d213e7.zip
samples, bpf: Replace bpf_program__title() with bpf_program__section_name()
From commit 521095842027 ("libbpf: Deprecate notion of BPF program "title" in favor of "section name""), the term title has been replaced with section name in libbpf. Since the bpf_program__title() has been deprecated, this commit switches this function to bpf_program__section_name(). Due to this commit, the compilation warning issue has also been resolved. Fixes: 521095842027 ("libbpf: Deprecate notion of BPF program "title" in favor of "section name"") Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20200904063434.24963-1-danieltimlee@gmail.com
Diffstat (limited to 'samples/bpf/xdp_redirect_cpu_user.c')
-rw-r--r--samples/bpf/xdp_redirect_cpu_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/bpf/xdp_redirect_cpu_user.c b/samples/bpf/xdp_redirect_cpu_user.c
index 004c0622c913..3dd366e9474d 100644
--- a/samples/bpf/xdp_redirect_cpu_user.c
+++ b/samples/bpf/xdp_redirect_cpu_user.c
@@ -111,7 +111,7 @@ static void print_avail_progs(struct bpf_object *obj)
bpf_object__for_each_program(pos, obj) {
if (bpf_program__is_xdp(pos))
- printf(" %s\n", bpf_program__title(pos, false));
+ printf(" %s\n", bpf_program__section_name(pos));
}
}