aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2022-12-12 13:15:01 -0800
committerDaniel Borkmann <[email protected]>2022-12-15 00:05:12 +0100
commit21a9a1bcccaa4f0337a24d666fe55944abcb171e (patch)
tree9637adaf711405a85ba15ef57412bd9bdce56c86 /tools/perf/scripts/python
parent872aec4b5f635d94111d48ec3c57fbe078d64e7d (diff)
libbpf: Handle non-standardly sized enums better in BTF-to-C dumper
Turns out C allows to force enum to be 1-byte or 8-byte explicitly using mode(byte) or mode(word), respecticely. Linux sources are using this in some cases. This is imporant to handle correctly, as enum size determines corresponding fields in a struct that use that enum type. And if enum size is incorrect, this will lead to invalid struct layout. So add mode(byte) and mode(word) attribute support to btf_dump APIs. Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions