Alan-Jowett / bpf_conformance

Measures the conformance of a BPF runtime to the ISA.
Other
27 stars 14 forks source link

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

Open Alan-Jowett opened 1 year ago

Alan-Jowett commented 1 year ago

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 commented 1 year ago

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

Alan-Jowett commented 1 year ago

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

Alan-Jowett commented 1 year ago

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

dthaler commented 10 months ago

@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 commented 10 months ago

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.