summaryrefslogtreecommitdiff
path: root/samples/bpf/test_map_in_map_user.c
diff options
context:
space:
mode:
authorDaniel T. Lee <danieltimlee@gmail.com>2023-01-15 10:16:13 +0300
committerAlexei Starovoitov <ast@kernel.org>2023-01-16 00:32:45 +0300
commite04946f54cd99fa1bd92e22f4540720d76d88058 (patch)
tree059e4cedf8d2015617268672584b31c5db88c6ff /samples/bpf/test_map_in_map_user.c
parente8acf8f47a5d58a00fbfa0f3592bbaaff557cec3 (diff)
downloadlinux-e04946f54cd99fa1bd92e22f4540720d76d88058.tar.xz
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");