Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
program: support tracing of kernel modules
Allow tracing functions in kernel modules via fentry, fexit, fmod_ret and tp_btf programs. The behaviour follows libbpf and is transparent to the user: if we can't find a target in vmlinux we attempt to find it in any loaded kernel module. Refactor TestProgramTypeLSM to test attaching via BTF. This removes LSM tests for BPF_F_SLEEPABLE, since they don't excercise library behaviour beyond passing ProgramSpec.Flags to the kernel. Updates #705
- Loading branch information
Showing
4 changed files
with
161 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -285,6 +285,7 @@ import ( | |
"fd_array", | ||
"core_relos", | ||
), | ||
choose(20, "attach_btf_obj_fd"), | ||
}, | ||
}, | ||
{ | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters