Skip to content

Add riscv64 support#604

Merged
brb merged 4 commits intocilium:mainfrom
hack3ric:riscv64
Nov 3, 2025
Merged

Add riscv64 support#604
brb merged 4 commits intocilium:mainfrom
hack3ric:riscv64

Conversation

@hack3ric
Copy link
Contributor

vmlinux.h is generated on Linux 6.4; for kprobe_pwru, applied the same technique for detecting trampoline FP as on arm64.

Tested on real riscv64 hardware (Milk-V Pioneer) with Arch Linux RISC-V and Linux 6.16.

@hack3ric hack3ric requested a review from a team as a code owner September 25, 2025 17:29
@hack3ric hack3ric requested review from rgo3 and removed request for a team September 25, 2025 17:29
hack3ric added a commit to hack3ric/archriscv-packages that referenced this pull request Sep 25, 2025
felixonmars pushed a commit to felixonmars/archriscv-packages that referenced this pull request Sep 25, 2025
@brb brb self-requested a review September 30, 2025 14:26
@brb
Copy link
Member

brb commented Sep 30, 2025

Thanks! Did you consider adding riscv64 to the build process? Grep for GOARCH in Makefile.

@hack3ric
Copy link
Contributor Author

Added riscv64 to local-release :)

@brb
Copy link
Member

brb commented Oct 21, 2025

@hack3ric Could you rebase against the latest main branch and resolve the merge conflict?

Generated on Linux 6.4.
Similar to arm64, BPF's r10 also does not map directly to RISC-V fp, so just reuse the existing FP detection code for arm64.
@hack3ric
Copy link
Contributor Author

Done. Sorry for the late action!

@brb brb merged commit c1150b9 into cilium:main Nov 3, 2025
11 checks passed
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.

2 participants