Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add haveV4ISA probe #1608

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

smagnani96
Copy link
Contributor

This PR 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 long jump given by BPF_JMP32 | BPF_JA.

I'm attempting to submit an identical patch to bpftool, so that bpftool feature probe will output also ISAv4 support.

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 long jump given by `BPF_JMP32 | BPF_JA`.

Signed-off-by: Simone Magnani <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant