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 eBPF Testing #1412

Open
dave-tucker opened this issue May 8, 2024 · 1 comment
Open

Add eBPF Testing #1412

dave-tucker opened this issue May 8, 2024 · 1 comment
Labels
kind/feature New feature or request

Comments

@dave-tucker
Copy link
Collaborator

What would you like to be added?

There is currently a single BCC unit test which appears to be skipped on CI.
We should have a test that:

  1. Load the eBPF probes
  2. Makes some assertions about the probes (i.e map sizes are correct, global variables are set etc...)

This test will need to be run using sudo.
It should run in CI.
It should NOT leave the host in a dirty state (i.e leaving eBPF probes attached).

Furthermore, it would be nice to unit test the eBPF code. I'll spend some time looking at that also.

Why is this needed?

There have been a number of regressions since I've re-formatted and simplified some of the eBPF code that could have been caught in code review and/or automated testing. We should ensure that these (or similar) regressions don't occur again.

@dave-tucker dave-tucker added the kind/feature New feature or request label May 8, 2024
@dave-tucker
Copy link
Collaborator Author

Also related - testing on different kernels. See #1402 as something we might want to test for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant