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 option to parse map info from test and pass to plugin #68

Open
Alan-Jowett opened this issue Dec 1, 2022 · 5 comments
Open

Add option to parse map info from test and pass to plugin #68

Alan-Jowett opened this issue Dec 1, 2022 · 5 comments

Comments

@Alan-Jowett
Copy link
Owner

Some of the BPF lddw instructions modes require maps to operate on.

To test this, the bpf_conformance_runner needs to parse out map information and pass it to the BPF runner.

@Alan-Jowett
Copy link
Owner Author

Proposal is to simplify this and use array map and have this as a fixed known fd.

@Alan-Jowett
Copy link
Owner Author

Fixed known fd doesn't work as there is no control over what fd are passed to the test.

@Alan-Jowett
Copy link
Owner Author

Best option is to provide option pass an ELF file to the BPF runtime.

@dthaler
Copy link
Collaborator

dthaler commented Jan 16, 2024

@Alan-Jowett PR #80 added an option to pass an ELF file to the plugin instead of an array of BPF byte code. Is that sufficient to close this issue or is there more remaining?

@Alan-Jowett
Copy link
Owner Author

The test suite needs to parse map info from the test and add a .btf section to the ELF file with a description of the map.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants