#[repr(C)]pub struct blaze_symbolize_src_kernel {
pub type_size: usize,
pub kallsyms: *const c_char,
pub vmlinux: *const c_char,
pub debug_syms: bool,
pub reserved: [u8; 23],
}Expand description
The parameters to load symbols and debug information from a kernel.
Fields§
§type_size: usizeThe size of this object’s type.
Make sure to initialize it to sizeof(<type>). This member is used to
ensure compatibility in the presence of member additions.
kallsyms: *const c_charThe path of a kallsyms file to use.
When NULL, this will refer to kallsyms of the running kernel.
If set to '\0' ("") usage of kallsyms will be disabled.
Otherwise the copy at the given path will be used.
If both a vmlinux as well as a kallsyms file are found,
vmlinux will generally be given preference and kallsyms acts
as a fallback.
vmlinux: *const c_charThe path of the vmlinux file to use.
vmlinux is generally an uncompressed and unstripped object
file that is typically used in debugging, profiling, and
similar use cases.
When NULL, the library will search for vmlinux candidates in
various locations, taking into account the currently running
kernel version. If set to '\0' ("") discovery and usage of a
vmlinux will be disabled. Otherwise the copy at the given path
will be used.
If both a vmlinux as well as a kallsyms file are found,
vmlinux will generally be given preference and kallsyms acts
as a fallback.
debug_syms: boolWhether or not to consult debug symbols from vmlinux to
satisfy the request (if present).
reserved: [u8; 23]Unused member available for future expansion. Must be initialized to zero.