eunomia-bpf/bpftime

[FEATURE] Add CI to test bpftrace

Opened this issue · 6 comments

Is your feature request related to a problem? Please describe.

bpftrace is an important tool bpftime currently support. We need a CI test to ensure future development will not bring new bugs with bpftrace.

Describe the solution you'd like

Describe alternatives you've considered

Add a CI to test some bpftrace scripts in GitHub Actions.

The CI file can be similar to https://github.com/eunomia-bpf/bpftime/blob/master/.github/workflows/test-examples.yml

And the bpftrace commands can be taken from https://github.com/eunomia-bpf/bpftime/blob/master/example/bpftrace/README.md.

Provide usage examples

Additional context

Hey @yunwei37 I am already onto a workflow related issue, I think I got the idea what needs to be done, feel free to assign this to me!

Hey @yunwei37 I am already onto a workflow related issue, I think I got the idea what needs to be done, feel free to assign this to me!

Hello, how's this issue going?

Hey @yunwei37 I am already onto a workflow related issue, I think I got the idea what needs to be done, feel free to assign this to me!

Hello, how's this issue going?

I have exams this week, If anyone else wants to work on this feel free to assign this to them.

Test shows error on my site:

  • ubt 22.04 Jammy / make release-llvm-jit / bpftrace version 0.9.4
image

Tried some other versions of ubuntu (23.04 as bpftime requires), bpftime of other compilation commands (vm or not, jit or not), bpftrace versions(0.15+). Error stills.
Could you please give further information about your successful test?

Test shows error on my site:

  • ubt 22.04 Jammy / make release-llvm-jit / bpftrace version 0.9.4
image

Tried some other versions of ubuntu (23.04 as bpftime requires), bpftime of other compilation commands (vm or not, jit or not), bpftrace versions(0.15+). Error stills.

Could you please give further information about your successful test?

Please enable ENABLE_LLVM_SHARED when configuring using CMake. This should be enabled by default in the recent versions of bpftime