Module bpf_sys::type_gen [−][src]
Expand description
A module for generating C source code (i.e. vmlinux.h) that defines all structs and enums of the Linux kernel.
This module is responsible for generating C source code using BTF of
vmlinux. All data structures even not exported to the Linux kernel headers can
be found in vmlinux.h
.
NOTE BTF does not record macro constants that are defined by #define
syntax. So macro constants can not be generated from vmlinux image. But
type_gen
provides common macro constants by including some C header files in
system.
Structs
Load vmlinux from file and generate vmlinux.h
Enums
An error that occurred during parsing vmlinux and generating C source code from BTF.
Constants
Functions
Find a source of vmlinux BTF and parse it