Skip to content

btf_encoder: Detect kernel modules

Jiri Olsa bpf dwarves 2 versions – Applied

Status from this message: Thanks, applied the three patches in this series,

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 6 repliesApplied
  2. v1 RFC2 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- 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

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3btf_encoder: Factor filter_functions functionbtf_encoder.c+41 -201 reply
2/3btf_encoder: Use address size based on ELF's classbtf_encoder.c+17 -73 replies
3/3btf_encoder: Detect kernel module ftrace addressesbtf_encoder.c dutil.c dutil.h+109 -32 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchAndrii Nakryiko
1/3A-b
2/3
3/3T-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCHv2 0/3] btf_encoder: Detect kernel modules

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(-)