diff options
| author | Ilya Leoshkevich <[email protected]> | 2023-02-14 23:12:17 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2023-02-16 23:32:45 +0000 |
| commit | c0ca277bb8bc43152d2b2fa60b47a1e1d609da45 (patch) | |
| tree | fc7404fd85e6086032e2770c8880a866a3ac9d3c /samples/bpf/test_map_in_map_user.c | |
| parent | bpftool: Use bpf_{btf,link,map,prog}_get_info_by_fd() (diff) | |
| download | kernel-c0ca277bb8bc43152d2b2fa60b47a1e1d609da45.tar.gz kernel-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 <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'samples/bpf/test_map_in_map_user.c')
| -rw-r--r-- | samples/bpf/test_map_in_map_user.c | 2 |
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 9e79df4071f5..55dca43f3723 100644 --- a/samples/bpf/test_map_in_map_user.c +++ b/samples/bpf/test_map_in_map_user.c @@ -38,7 +38,7 @@ static void check_map_id(int inner_map_fd, int map_in_map_fd, uint32_t key) uint32_t info_len = sizeof(info); int ret, id; - ret = bpf_obj_get_info_by_fd(inner_map_fd, &info, &info_len); + ret = bpf_map_get_info_by_fd(inner_map_fd, &info, &info_len); assert(!ret); ret = bpf_map_lookup_elem(map_in_map_fd, &key, &id); |
