ietf-wg-bpf / ebpf-docs

eBPF Standard Documentation
37 stars 5 forks source link

ISA: clarify PC #130

Closed dthaler closed 2 months ago

dthaler commented 2 months ago

It may be obvious to some but seems worth calling out explicitly... a jump offset is in units of # of instructions (not bytes) and is relative to the instruction after the jump. E.g., if a jump is at PC = 5, then offset 1 means to go to PC = 7. Also the term "PC" is never defined and should be defined as the program counter.

dthaler commented 2 months ago

Proposed patch posted at https://mailarchive.ietf.org/arch/msg/bpf/zP-PrOsUbOkqgFybS_6rTGpuxhQ/

dthaler commented 2 months ago

Fixed in draft-02