hi, adding support to detect kernel module and use its mcount_loc section data as function filter. v2 changes: - initialize return arguments in get_vmlinux_addrs [Andrii] - use elf_getscn in elf_section_by_idx [Andrii] - use address size from ELF's class for both kmod and vmlinux thanks, jirka --- Jiri Olsa (3): btf_encoder: Factor filter_functions function btf_encoder: Use address size based on ELF's class btf_encoder: Detect kernel module ftrace addresses btf_encoder.c | 179 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------- dutil.c | 10 ++++++++ dutil.h | 2 ++ 3 files changed, 164 insertions(+), 27 deletions(-)