summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2019-09-25 13:37:45 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2019-09-26 14:38:29 +0200
commit39529a9948d8f67f39cb72bec914c1adab38562d (patch)
tree24023d8202f40bf30143a2956bcdfdd62d7e5159 /kernel
parent4670d68b9254710fdeaf794cad54d8b2c9929e0a (diff)
downloadlinux-stable-39529a9948d8f67f39cb72bec914c1adab38562d.tar.gz
linux-stable-39529a9948d8f67f39cb72bec914c1adab38562d.tar.bz2
linux-stable-39529a9948d8f67f39cb72bec914c1adab38562d.zip
libbpf: Teach btf_dumper to emit stand-alone anonymous enum definitions
BTF-to-C converter previously skipped anonymous enums in an assumption that those are embedded in struct's field definitions. This is not always the case and a lot of kernel constants are defined as part of anonymous enums. This change fixes the logic by eagerly marking all types as either referenced by any other type or not. This is enough to distinguish two classes of anonymous enums and emit previously omitted enum definitions. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20190925203745.3173184-1-andriin@fb.com
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions