[PATCH v5 02/24] bpf: add format instruction function
Marat Khalili
marat.khalili at huawei.com
Thu Jun 25 16:22:23 CEST 2026
> On Wed, 24 Jun 2026 13:17:35 +0100
> Marat Khalili <marat.khalili at huawei.com> wrote:
>
> > BPF library already contains BPF instruction formatting functions, but
> > they could only be used via `rte_bpf_dump` to dump result into file. Add
> > new function `rte_bpf_format` to format instruction in various way
> > (hexadecimal, disassembly) into a user-provided buffer, as well as a
> > service function `rte_bpf_insn_is_wide` to detect wide instructions.
> >
> > Signed-off-by: Marat Khalili <marat.khalili at huawei.com>
> > Acked-by: Konstantin Ananyev <konstantin.ananyev at huawei.com>
> > ---
>
> Is this format similar to what tcpdump -d and objdump produce?
Closest I could find is bpf_dbg, the rest are slightly different.
Git log says it was originally added by you :)
More information about the dev
mailing list