[PATCH v5 02/24] bpf: add format instruction function

Stephen Hemminger stephen at networkplumber.org
Wed Jun 24 19:09:34 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?


More information about the dev mailing list