diff options
| author | 2020-03-02 16:32:32 -0800 | |
|---|---|---|
| committer | 2020-03-04 17:00:06 +0100 | |
| commit | 7cb30aaab3f277aa88e20a008faf57e0fb1119ec (patch) | |
| tree | 6c4b74c76a30b236f29194e04c01d292f171e862 /kernel/bpf/bpf_struct_ops.c | |
| parent | bpf: Switch BPF UAPI #define constants used from BPF program side to enums (diff) | |
| download | linux-dev-7cb30aaab3f277aa88e20a008faf57e0fb1119ec.tar.xz linux-dev-7cb30aaab3f277aa88e20a008faf57e0fb1119ec.zip | |
libbpf: Assume unsigned values for BTF_KIND_ENUM
Currently, BTF_KIND_ENUM type doesn't record whether enum values should be
interpreted as signed or unsigned. In Linux, most enums are unsigned, though,
so interpreting them as unsigned matches real world better.
Change btf_dump test case to test maximum 32-bit value, instead of negative
value.
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200303003233.3496043-3-andriin@fb.com
Diffstat (limited to 'kernel/bpf/bpf_struct_ops.c')
0 files changed, 0 insertions, 0 deletions
