[PATCH v2 2/2] bpf: dump additional instructions
Konstantin Ananyev
konstantin.ananyev at huawei.com
Fri Dec 19 14:04:51 CET 2025
> Fix issues with rte_bpf_dump not supporting or printing incorrectly some
> instructions that lib/bpf supports, and add warnings when it doesn't:
>
> * Conditional jump with condition between two registers was incorrectly
> printed by rte_bpf_dump as one with condition between register and
> immediate. Add missing handling of BPF_X flag.
>
> * Call instruction was printed by rte_bpf_dump as conditional jump. Add
> explicit handling for it.
>
> * We only support stx and ldx instructions in BPF_MEM mode, but were not
> checking the mode in rte_bpf_dump. Check for mode and only print
> mnemonic if the mode is BPF_MEM, otherwise print an error.
>
> * Atomic instructions were not previously supported by rte_bpf_dump. Add
> necessary handling.
>
> * Some instructions have variations with previously unused src_reg or
> offset fields set to non-zero value. We do not support any of these
> variations yet, and were printing them as a standard instruction.
> Print small note after such instructions warning the user that this is
> a variation.
>
> Signed-off-by: Marat Khalili <marat.khalili at huawei.com>
> ---
Acked-by: Konstantin Ananyev <konstantin.ananyev at huawei.com>
> --
> 2.43.0
More information about the dev
mailing list