-
Notifications
You must be signed in to change notification settings - Fork 715
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add haveV4ISA probe for verifying ISA v4 support in the kernel
This commit introduces the haveV4ISA probe and HaveV4ISA API to check in the running kernel if instructions of the v4 ISA are supported. The upstream commit used as reference is 1f9a1ea821ff ("bpf: Support new sign-extension load insns"). The probes tests the new asm.LongJump insn given by `BPF_JMP32 | BPF_JA`. On arm64 with kernel prior to ISA v4 support (<= v6.6), this would return sys.ENOTSUPP: handle this case by returning our ebpf.ErrNotSupported instead. Signed-off-by: Simone Magnani <[email protected]>
- Loading branch information
1 parent
5ffd2ed
commit 6da9a71
Showing
3 changed files
with
28 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