aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/bpf.h
diff options
context:
space:
mode:
authorMartin KaFai Lau <kafai@fb.com>2018-05-22 15:04:24 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2018-05-23 12:03:32 +0200
commit61746dbe1aa27c9e23293621665b8442dfed7698 (patch)
tree10cf3d584e25f564d0cbc3653eb428dd21962f1d /tools/lib/bpf/bpf.h
parentbpf: btf: Sync bpf.h and btf.h to tools (diff)
downloadlinux-dev-61746dbe1aa27c9e23293621665b8442dfed7698.tar.xz
linux-dev-61746dbe1aa27c9e23293621665b8442dfed7698.zip
bpf: btf: Add tests for the btf uapi changes
This patch does the followings: 1. Modify libbpf and test_btf to reflect the uapi changes in btf 2. Add test for the btf_header changes 3. Add tests for array->index_type 4. Add err_str check to the tests 5. Fix a 4 bytes hole in "struct test #1" by swapping "m" and "n" Signed-off-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/lib/bpf/bpf.h')
-rw-r--r--tools/lib/bpf/bpf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lib/bpf/bpf.h b/tools/lib/bpf/bpf.h
index 15bff7728cf1..d12344f66d4e 100644
--- a/tools/lib/bpf/bpf.h
+++ b/tools/lib/bpf/bpf.h
@@ -36,8 +36,8 @@ struct bpf_create_map_attr {
__u32 max_entries;
__u32 numa_node;
__u32 btf_fd;
- __u32 btf_key_id;
- __u32 btf_value_id;
+ __u32 btf_key_type_id;
+ __u32 btf_value_type_id;
__u32 map_ifindex;
};