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

llvm-jit: patch lddw helpers at compile time #323

Merged
merged 4 commits into from
Aug 10, 2024

Conversation

Officeyutong
Copy link
Contributor

@Officeyutong Officeyutong commented Aug 10, 2024

This PR updated llvm-jit so it will execute lddw helpers (https://docs.kernel.org/bpf/standardization/instruction-set.html#id33) at runtime and hardcodes generated values into LLVM IR, thus reducing runtime oveahead

Also set default implementation for map_by_fd and map_by_idx: returning its input value

  • One exception is that map_val won't be patched for AOT compilations, since AOT-ed programs could be migrated among processed, and map_val (a memory address) may be invalided among processes

@Officeyutong Officeyutong marked this pull request as ready for review August 10, 2024 08:38
@Officeyutong Officeyutong requested a review from yunwei37 August 10, 2024 08:38
@Officeyutong Officeyutong merged commit dd95d8e into eunomia-bpf:master Aug 10, 2024
70 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants