-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BTF support for tracepoints defined in modules
For tracepoints defined in vmlinux, we support usage of BTF for type parsing which can automatically resolve types from tracepoint defs. Thanks to this feature, users do not have to include headers with necessary types manually. This commit enables the same for tracepoints defined in kernel modules. Since parsing BTF for modules is already supported for kfuncs, it is sufficient to add the tracepoint subsystem name to the list of modules. If the name of the subsystem does not correspond to a loaded module, it will be ignored. Note that this is only supported for single-subsystem tracepoints at the moment. The reason is that tracepoints require dumping of C definitions from BTF which is not possible for multiple modules at once (as it could introduce type redefinitions).
- Loading branch information
1 parent
4b337a1
commit 74a5604
Showing
4 changed files
with
23 additions
and
4 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