[PATCH bpf-next 0/2] libbpf: support modules in set_attach_target() API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add support for finding BTF-based kernel attach targets (fentry/fexit
functions, tp_btf tracepoints, etc) with programmatic
bpf_program__set_attach_target() API. It is now as capable as libbpf's
SEC()-based logic.

Andrii Nakryiko (2):
  libbpf: support modules in bpf_program__set_attach_target() API
  selftests/bpf: add set_attach_target() API selftest for module target

 tools/lib/bpf/libbpf.c                        | 64 ++++++++++++-------
 .../selftests/bpf/prog_tests/module_attach.c  | 11 +++-
 .../selftests/bpf/progs/test_module_attach.c  | 11 ++++
 3 files changed, 61 insertions(+), 25 deletions(-)

-- 
2.24.1




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux