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

Test bpftrace arm64 binary #11

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Test bpftrace arm64 binary #11

wants to merge 6 commits into from

Conversation

theihor
Copy link
Contributor

@theihor theihor commented Feb 14, 2025

No description provided.

Introduce matrix strategy to test workflow, testing different gcc
compiler versions. Factor out build steps into a build.sh script.

Signed-off-by: Ihor Solodrai <[email protected]>
Optionally build bpftrace from source.

Signed-off-by: Ihor Solodrai <[email protected]>
The "struct_by_val_reg" case of arg_types tests fails with BPF
verifier error when compiled with clang.

It appears that bpftrace generates a faulty program in such case,
possibly due to the difference between how clang and gcc encode USDT
probe arguments.

Since this is the only problematic test case for LLVM, make it
conditional on __clang__ for now.

Signed-off-by: Ihor Solodrai <[email protected]>
Update CI scripts to also build the tests with various versions of
LLVM. Versions below 17 can't be installed with the official llvm.sh
script, so for now let's test only 17+.

Signed-off-by: Ihor Solodrai <[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