BPF (Debugging with GDB)
From Get docs
Gdb/docs/latest/gdb/BPF
Next: M68K, Previous: ARM, Up: Embedded Processors [Contents][Index]
21.3.3 BPF
target sim [simargs] …
- The GDB BPF simulator accepts the following optional arguments.
--skb-data-offset=offset
- Tell the simulator the offset, measured in bytes, of the
skb_data
field in the kernelstruct sk_buff
structure. This offset is used by some BPF specific-purpose load/store instructions. Defaults to 0.