bpf2c should show BPF assembly not names of uBPF specific macros, in comments #3176
Labels
blocked
Blocked on another issue that must be done first
enhancement
New feature or request
help wanted
Extra attention is needed
triaged
Discussed in a triage meeting
Milestone
Describe the feature you'd like supported
Today bpf2c generteas comments like:
whereas bpf assembly would be:
The latter is more consistent with llvm-objdump, bpf_conformance, and other such tools.
It also avoids using a uBPF specific define (EBPF_OP_ADD64_IMM) in bpf2c which shouldn't depend on uBPF.
Proposed solution
Use BPF assembler syntax in comments instead
Additional context
No response
The text was updated successfully, but these errors were encountered: