-
Notifications
You must be signed in to change notification settings - Fork 705
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
btf: Add support for
bpf_core_type_matches()
This commit adds support for the latest edition to CO-RE. The `bpf_core_type_matches()` function allows you to check if a given type matches. This is a stricter check than the normal compatibility check. An example use case for this feature is to implement fallback code for cases where kernel types changed over time, such as the `block_rq_insert` tracepoint. The tracepoint lost an argument in the v5.11 kernel, so this feature can be used to handle the change in provided context in a CO-RE manner. Signed-off-by: Dylan Reimerink <[email protected]> Co-authored-by: Lorenz Bauer <[email protected]>
- Loading branch information
1 parent
d4bceb5
commit 1d00992
Showing
7 changed files
with
482 additions
and
18 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
Oops, something went wrong.