diff options
author | 2024-03-06 19:12:26 -0800 | |
---|---|---|
committer | 2024-03-07 14:58:48 -0800 | |
commit | d147357e2e5977c5fe9218457a1e359fd1d36609 (patch) | |
tree | 3460c738a1dd66aeab815a4e10efee871376909a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bpf: Plumb get_unmapped_area() callback into bpf_map_ops (diff) | |
download | wireguard-linux-d147357e2e5977c5fe9218457a1e359fd1d36609.tar.xz wireguard-linux-d147357e2e5977c5fe9218457a1e359fd1d36609.zip |
libbpf: Allow specifying 64-bit integers in map BTF.
__uint() macro that is used to specify map attributes like:
__uint(type, BPF_MAP_TYPE_ARRAY);
__uint(map_flags, BPF_F_MMAPABLE);
It is limited to 32-bit, since BTF_KIND_ARRAY has u32 "number of elements"
field in "struct btf_array".
Introduce __ulong() macro that allows specifying values bigger than 32-bit.
In map definition "map_extra" is the only u64 field, so far.
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/r/20240307031228.42896-5-alexei.starovoitov@gmail.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions