summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMartin KaFai Lau <kafai@fb.com>2020-03-18 20:16:37 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2020-03-20 17:51:35 +0300
commitca7e6e45d108f5712aec4407e6c757af59d43d0f (patch)
treed5ec98e971734053d9b103ea38bdecf6b99f5bba /tools/perf/scripts/python/export-to-postgresql.py
parent90ceddcb495008ac8ba7a3dce297841efcd7d584 (diff)
downloadlinux-ca7e6e45d108f5712aec4407e6c757af59d43d0f.tar.xz
bpftool: Print the enum's name instead of value
This patch prints the enum's name if there is one found in the array of btf_enum. The commit 9eea98497951 ("bpf: fix BTF verification of enums") has details about an enum could have any power-of-2 size (up to 8 bytes). This patch also takes this chance to accommodate these non 4 byte enums. Signed-off-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Quentin Monnet <quentin@isovalent.com> Link: https://lore.kernel.org/bpf/20200318171637.128862-1-kafai@fb.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions