aboutsummaryrefslogtreecommitdiff
path: root/samples/bpf/test_map_in_map_user.c
diff options
context:
space:
mode:
authorGravatar Daniel T. Lee <danieltimlee@gmail.com> 2023-01-15 16:16:13 +0900
committerGravatar Alexei Starovoitov <ast@kernel.org> 2023-01-15 13:32:45 -0800
commite04946f54cd99fa1bd92e22f4540720d76d88058 (patch)
tree059e4cedf8d2015617268672584b31c5db88c6ff /samples/bpf/test_map_in_map_user.c
parentsamples/bpf: use vmlinux.h instead of implicit headers in BPF test program (diff)
downloadlinux-e04946f54cd99fa1bd92e22f4540720d76d88058.tar.gz
linux-e04946f54cd99fa1bd92e22f4540720d76d88058.tar.bz2
linux-e04946f54cd99fa1bd92e22f4540720d76d88058.zip
samples/bpf: change _kern suffix to .bpf with BPF test programs
This commit changes the _kern suffix to .bpf with the BPF test programs. With this modification, test programs will inherit the benefit of the new CLANG-BPF compile target. Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com> Link: https://lore.kernel.org/r/20230115071613.125791-11-danieltimlee@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'samples/bpf/test_map_in_map_user.c')
-rw-r--r--samples/bpf/test_map_in_map_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/bpf/test_map_in_map_user.c b/samples/bpf/test_map_in_map_user.c
index 652ec720533d..9e79df4071f5 100644
--- a/samples/bpf/test_map_in_map_user.c
+++ b/samples/bpf/test_map_in_map_user.c
@@ -120,7 +120,7 @@ int main(int argc, char **argv)
struct bpf_object *obj;
char filename[256];
- snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]);
+ snprintf(filename, sizeof(filename), "%s.bpf.o", argv[0]);
obj = bpf_object__open_file(filename, NULL);
if (libbpf_get_error(obj)) {
fprintf(stderr, "ERROR: opening BPF object file failed\n");