ietf-wg-bpf / ebpf-docs

eBPF Standard Documentation
40 stars 5 forks source link

tools: Add scripts to "validate" ELF files #2

Closed qmonnet closed 1 year ago

qmonnet commented 1 year ago

Add a set of scripts to:

This is work in progress and should not be considered an official validation tool at this stage.

Once the eBPF specification gets closer to a final version, we will probably stop converting the table from the RST file and keep a reference JSON list instead (so we can also add constraints on the offset and destination register fields). In the meantime, it is easier to pull the latest adjustments this way.

Besides validation of existing programs, the scripts can be helpful to check we cover instructions existing today in deployed eBPF programs.