forked from bpftrace/bpftrace
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix fentry probes wrt. missing_probes config
Currently, fentry/fexit probes do not correctly respect the missing_probes config, especially for the "ignore" and "warn" settings. The reason is that while a warning is correctly displayed (or not for "ignore"), the probe is still attempted to be loaded which causes the loading of the entire BPF object fail as libbpf fails on not finding the symbol in BTF. Fix this issue by disabling auto-load for missing probes. Note that this means that the code for the missing probes is still generated into the BPF object. This is a bit inefficient but will be necessary for AOT as we will not know which symbols exist on the target machine in advance. Also fix the error/warning message a bit to show "symbol" instead of ":symbol" in case when module name is not given.
- Loading branch information
1 parent
a1568e6
commit c11adab
Showing
4 changed files
with
26 additions
and
2 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
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
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