DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Marat Khalili <marat.khalili@huawei.com>
Cc: Konstantin Ananyev <konstantin.ananyev@huawei.com>, <dev@dpdk.org>
Subject: Re: [PATCH v5 02/24] bpf: add format instruction function
Date: Wed, 24 Jun 2026 10:09:34 -0700	[thread overview]
Message-ID: <20260624100934.00e99af1@phoenix.local> (raw)
In-Reply-To: <20260624121800.40635-3-marat.khalili@huawei.com>

On Wed, 24 Jun 2026 13:17:35 +0100
Marat Khalili <marat.khalili@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@huawei.com>
> Acked-by: Konstantin Ananyev <konstantin.ananyev@huawei.com>
> ---

Is this format similar to what tcpdump -d and objdump produce?

  reply	other threads:[~2026-06-24 17:09 UTC|newest]

Thread overview: 135+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-06 17:38 [PATCH 00/25] bpf: test and fix issues in verifier Marat Khalili
2026-05-06 17:38 ` [PATCH 01/25] bpf: format and dump jlt, jle, jslt, and jsle Marat Khalili
2026-05-06 17:38 ` [PATCH 02/25] bpf: add format instruction function Marat Khalili
2026-05-06 17:38 ` [PATCH 03/25] bpf/validate: break on error in evaluate Marat Khalili
2026-05-06 17:38 ` [PATCH 04/25] bpf/validate: expand comments in evaluate cycle Marat Khalili
2026-05-06 17:38 ` [PATCH 05/25] bpf/validate: introduce debugging interface Marat Khalili
2026-05-06 17:38 ` [PATCH 06/25] bpf/validate: fix BPF_ADD of pointer to a scalar Marat Khalili
2026-05-06 17:38 ` [PATCH 07/25] bpf/validate: fix BPF_LDX | EBPF_DW signed range Marat Khalili
2026-05-06 17:38 ` [PATCH 08/25] test/bpf_validate: add setup and basic tests Marat Khalili
2026-05-06 17:38 ` [PATCH 09/25] test/bpf_validate: add harness for pointer tests Marat Khalili
2026-05-06 17:38 ` [PATCH 10/25] bpf/validate: fix EBPF_JSLT | BPF_X evaluation Marat Khalili
2026-05-06 17:38 ` [PATCH 11/25] bpf/validate: fix BPF_NEG of INT64_MIN and 0 Marat Khalili
2026-05-06 17:38 ` [PATCH 12/25] bpf/validate: fix BPF_DIV and BPF_MOD signed part Marat Khalili
2026-05-06 17:38 ` [PATCH 13/25] bpf/validate: fix BPF_MUL ranges minimum typo Marat Khalili
2026-05-06 17:38 ` [PATCH 14/25] bpf/validate: fix BPF_MUL signed overflow UB Marat Khalili
2026-05-06 17:38 ` [PATCH 15/25] bpf/validate: fix BPF_JGT/EBPF_JSGT no-jump max Marat Khalili
2026-05-06 17:38 ` [PATCH 16/25] bpf/validate: fix BPF_JMP source range calculation Marat Khalili
2026-05-06 17:38 ` [PATCH 17/25] bpf/validate: fix BPF_JMP empty range handling Marat Khalili
2026-05-06 17:38 ` [PATCH 18/25] bpf/validate: fix BPF_AND min calculations Marat Khalili
2026-05-06 17:38 ` [PATCH 19/25] bpf/validate: fix BPF_LSH shift-out-of-bounds UB Marat Khalili
2026-05-06 17:38 ` [PATCH 20/25] bpf/validate: fix BPF_OR min calculations Marat Khalili
2026-05-06 17:38 ` [PATCH 21/25] bpf/validate: fix BPF_SUB signed max zero case Marat Khalili
2026-05-06 17:38 ` [PATCH 22/25] bpf/validate: fix BPF_XOR signed min calculation Marat Khalili
2026-05-06 17:38 ` [PATCH 23/25] bpf/validate: prevent overflow when building graph Marat Khalili
2026-05-06 17:38 ` [PATCH 24/25] doc: add release notes for BPF validation fixes Marat Khalili
2026-05-06 17:38 ` [PATCH 25/25] doc: add BPF validate debug to programmer's guide Marat Khalili
2026-05-08 17:41   ` Stephen Hemminger
2026-05-09 12:36 ` [PATCH 00/25] bpf: test and fix issues in verifier Konstantin Ananyev
2026-05-19  9:31 ` [PATCH v2 " Marat Khalili
2026-05-19  9:31   ` [PATCH v2 01/25] bpf: format and dump jlt, jle, jslt, and jsle Marat Khalili
2026-05-19  9:31   ` [PATCH v2 02/25] bpf: add format instruction function Marat Khalili
2026-05-19  9:31   ` [PATCH v2 03/25] bpf/validate: break on error in evaluate Marat Khalili
2026-05-19  9:31   ` [PATCH v2 04/25] bpf/validate: expand comments in evaluate cycle Marat Khalili
2026-05-19  9:31   ` [PATCH v2 05/25] bpf/validate: introduce debugging interface Marat Khalili
2026-05-19  9:31   ` [PATCH v2 06/25] bpf/validate: fix BPF_ADD of pointer to a scalar Marat Khalili
2026-05-19  9:31   ` [PATCH v2 07/25] bpf/validate: fix BPF_LDX | EBPF_DW signed range Marat Khalili
2026-05-19  9:31   ` [PATCH v2 08/25] test/bpf_validate: add setup and basic tests Marat Khalili
2026-05-19  9:31   ` [PATCH v2 09/25] test/bpf_validate: add harness for pointer tests Marat Khalili
2026-05-19  9:31   ` [PATCH v2 10/25] bpf/validate: fix EBPF_JSLT | BPF_X evaluation Marat Khalili
2026-05-19  9:31   ` [PATCH v2 11/25] bpf/validate: fix BPF_NEG of INT64_MIN and 0 Marat Khalili
2026-05-19  9:31   ` [PATCH v2 12/25] bpf/validate: fix BPF_DIV and BPF_MOD signed part Marat Khalili
2026-05-19  9:31   ` [PATCH v2 13/25] bpf/validate: fix BPF_MUL ranges minimum typo Marat Khalili
2026-05-19  9:31   ` [PATCH v2 14/25] bpf/validate: fix BPF_MUL signed overflow UB Marat Khalili
2026-05-19  9:31   ` [PATCH v2 15/25] bpf/validate: fix BPF_JGT/EBPF_JSGT no-jump max Marat Khalili
2026-05-19  9:31   ` [PATCH v2 16/25] bpf/validate: fix BPF_JMP source range calculation Marat Khalili
2026-05-19  9:31   ` [PATCH v2 17/25] bpf/validate: fix BPF_JMP empty range handling Marat Khalili
2026-05-19  9:31   ` [PATCH v2 18/25] bpf/validate: fix BPF_AND min calculations Marat Khalili
2026-05-19  9:31   ` [PATCH v2 19/25] bpf/validate: fix BPF_LSH shift-out-of-bounds UB Marat Khalili
2026-05-19  9:31   ` [PATCH v2 20/25] bpf/validate: fix BPF_OR min calculations Marat Khalili
2026-05-19  9:31   ` [PATCH v2 21/25] bpf/validate: fix BPF_SUB signed max zero case Marat Khalili
2026-05-19  9:31   ` [PATCH v2 22/25] bpf/validate: fix BPF_XOR signed min calculation Marat Khalili
2026-05-19  9:31   ` [PATCH v2 23/25] bpf/validate: prevent overflow when building graph Marat Khalili
2026-05-19  9:31   ` [PATCH v2 24/25] doc: add release notes for BPF validation fixes Marat Khalili
2026-05-19  9:31   ` [PATCH v2 25/25] doc: add BPF validate debug to programmer's guide Marat Khalili
2026-06-12 10:47   ` [PATCH v3 00/25] bpf: test and fix issues in verifier Marat Khalili
2026-06-12 10:47     ` [PATCH v3 01/25] bpf: format and dump jlt, jle, jslt, and jsle Marat Khalili
2026-06-12 10:47     ` [PATCH v3 02/25] bpf: add format instruction function Marat Khalili
2026-06-12 10:47     ` [PATCH v3 03/25] bpf/validate: break on error in evaluate Marat Khalili
2026-06-12 10:47     ` [PATCH v3 04/25] bpf/validate: expand comments in evaluate cycle Marat Khalili
2026-06-12 10:47     ` [PATCH v3 05/25] bpf/validate: introduce debugging interface Marat Khalili
2026-06-23 10:18       ` Thomas Monjalon
2026-06-23 10:29         ` Marat Khalili
2026-06-23 12:29           ` Thomas Monjalon
2026-06-23 16:14             ` Marat Khalili
2026-06-12 10:47     ` [PATCH v3 06/25] bpf/validate: fix BPF_ADD of pointer to a scalar Marat Khalili
2026-06-12 10:47     ` [PATCH v3 07/25] bpf/validate: fix BPF_LDX | EBPF_DW signed range Marat Khalili
2026-06-12 10:47     ` [PATCH v3 08/25] test/bpf_validate: add setup and basic tests Marat Khalili
2026-06-12 10:47     ` [PATCH v3 09/25] test/bpf_validate: add harness for pointer tests Marat Khalili
2026-06-12 10:47     ` [PATCH v3 10/25] bpf/validate: fix EBPF_JSLT | BPF_X evaluation Marat Khalili
2026-06-12 10:47     ` [PATCH v3 11/25] bpf/validate: fix BPF_NEG of INT64_MIN and 0 Marat Khalili
2026-06-12 10:47     ` [PATCH v3 12/25] bpf/validate: fix BPF_DIV and BPF_MOD signed part Marat Khalili
2026-06-12 10:47     ` [PATCH v3 13/25] bpf/validate: fix BPF_MUL ranges minimum typo Marat Khalili
2026-06-12 10:47     ` [PATCH v3 14/25] bpf/validate: fix BPF_MUL signed overflow UB Marat Khalili
2026-06-12 10:47     ` [PATCH v3 15/25] bpf/validate: fix BPF_JGT/EBPF_JSGT no-jump max Marat Khalili
2026-06-12 10:47     ` [PATCH v3 16/25] bpf/validate: fix BPF_JMP source range calculation Marat Khalili
2026-06-12 10:47     ` [PATCH v3 17/25] bpf/validate: fix BPF_JMP empty range handling Marat Khalili
2026-06-12 10:47     ` [PATCH v3 18/25] bpf/validate: fix BPF_AND min calculations Marat Khalili
2026-06-12 10:47     ` [PATCH v3 19/25] bpf/validate: fix BPF_LSH shift-out-of-bounds UB Marat Khalili
2026-06-12 10:47     ` [PATCH v3 20/25] bpf/validate: fix BPF_OR min calculations Marat Khalili
2026-06-12 10:47     ` [PATCH v3 21/25] bpf/validate: fix BPF_SUB signed max zero case Marat Khalili
2026-06-12 10:47     ` [PATCH v3 22/25] bpf/validate: fix BPF_XOR signed min calculation Marat Khalili
2026-06-12 10:47     ` [PATCH v3 23/25] bpf/validate: prevent overflow when building graph Marat Khalili
2026-06-12 10:47     ` [PATCH v3 24/25] doc: add release notes for BPF validation fixes Marat Khalili
2026-06-12 10:47     ` [PATCH v3 25/25] doc: add BPF validate debug to programmer's guide Marat Khalili
2026-06-23 14:31     ` [PATCH v4 00/24] bpf: test and fix issues in verifier Marat Khalili
2026-06-23 14:31       ` [PATCH v4 01/24] bpf: format and dump jlt, jle, jslt, and jsle Marat Khalili
2026-06-23 14:31       ` [PATCH v4 02/24] bpf: add format instruction function Marat Khalili
2026-06-23 14:31       ` [PATCH v4 03/24] bpf/validate: break on error in evaluate Marat Khalili
2026-06-23 14:31       ` [PATCH v4 04/24] bpf/validate: expand comments in evaluate cycle Marat Khalili
2026-06-23 14:31       ` [PATCH v4 05/24] bpf/validate: introduce debugging interface Marat Khalili
2026-06-23 14:31       ` [PATCH v4 06/24] bpf/validate: fix BPF_ADD of pointer to a scalar Marat Khalili
2026-06-23 14:31       ` [PATCH v4 07/24] bpf/validate: fix BPF_LDX | EBPF_DW signed range Marat Khalili
2026-06-23 14:31       ` [PATCH v4 08/24] test/bpf_validate: add setup and basic tests Marat Khalili
2026-06-23 14:31       ` [PATCH v4 09/24] test/bpf_validate: add harness for pointer tests Marat Khalili
2026-06-23 14:31       ` [PATCH v4 10/24] bpf/validate: fix EBPF_JSLT | BPF_X evaluation Marat Khalili
2026-06-23 14:31       ` [PATCH v4 11/24] bpf/validate: fix BPF_NEG of INT64_MIN and 0 Marat Khalili
2026-06-23 14:31       ` [PATCH v4 12/24] bpf/validate: fix BPF_DIV and BPF_MOD signed part Marat Khalili
2026-06-23 14:32       ` [PATCH v4 13/24] bpf/validate: fix BPF_MUL ranges minimum typo Marat Khalili
2026-06-23 14:32       ` [PATCH v4 14/24] bpf/validate: fix BPF_MUL signed overflow UB Marat Khalili
2026-06-23 14:32       ` [PATCH v4 15/24] bpf/validate: fix BPF_JGT/EBPF_JSGT no-jump max Marat Khalili
2026-06-23 14:32       ` [PATCH v4 16/24] bpf/validate: fix BPF_JMP source range calculation Marat Khalili
2026-06-23 14:32       ` [PATCH v4 17/24] bpf/validate: fix BPF_JMP empty range handling Marat Khalili
2026-06-23 14:32       ` [PATCH v4 18/24] bpf/validate: fix BPF_AND min calculations Marat Khalili
2026-06-23 14:32       ` [PATCH v4 19/24] bpf/validate: fix BPF_LSH shift-out-of-bounds UB Marat Khalili
2026-06-23 14:32       ` [PATCH v4 20/24] bpf/validate: fix BPF_OR min calculations Marat Khalili
2026-06-23 14:32       ` [PATCH v4 21/24] bpf/validate: fix BPF_SUB signed max zero case Marat Khalili
2026-06-23 14:32       ` [PATCH v4 22/24] bpf/validate: fix BPF_XOR signed min calculation Marat Khalili
2026-06-23 14:32       ` [PATCH v4 23/24] bpf/validate: prevent overflow when building graph Marat Khalili
2026-06-23 14:32       ` [PATCH v4 24/24] doc: add release notes for BPF validation fixes Marat Khalili
2026-06-24 12:17       ` [PATCH v5 00/24] bpf: test and fix issues in verifier Marat Khalili
2026-06-24 12:17         ` [PATCH v5 01/24] bpf: format and dump jlt, jle, jslt, and jsle Marat Khalili
2026-06-24 12:17         ` [PATCH v5 02/24] bpf: add format instruction function Marat Khalili
2026-06-24 17:09           ` Stephen Hemminger [this message]
2026-06-24 12:17         ` [PATCH v5 03/24] bpf/validate: break on error in evaluate Marat Khalili
2026-06-24 12:17         ` [PATCH v5 04/24] bpf/validate: expand comments in evaluate cycle Marat Khalili
2026-06-24 12:17         ` [PATCH v5 05/24] bpf/validate: introduce debugging interface Marat Khalili
2026-06-24 12:17         ` [PATCH v5 06/24] bpf/validate: fix BPF_ADD of pointer to a scalar Marat Khalili
2026-06-24 12:17         ` [PATCH v5 07/24] bpf/validate: fix BPF_LDX | EBPF_DW signed range Marat Khalili
2026-06-24 12:17         ` [PATCH v5 08/24] test/bpf_validate: add setup and basic tests Marat Khalili
2026-06-24 12:17         ` [PATCH v5 09/24] test/bpf_validate: add harness for pointer tests Marat Khalili
2026-06-24 12:17         ` [PATCH v5 10/24] bpf/validate: fix EBPF_JSLT | BPF_X evaluation Marat Khalili
2026-06-24 12:17         ` [PATCH v5 11/24] bpf/validate: fix BPF_NEG of INT64_MIN and 0 Marat Khalili
2026-06-24 12:17         ` [PATCH v5 12/24] bpf/validate: fix BPF_DIV and BPF_MOD signed part Marat Khalili
2026-06-24 12:17         ` [PATCH v5 13/24] bpf/validate: fix BPF_MUL ranges minimum typo Marat Khalili
2026-06-24 12:17         ` [PATCH v5 14/24] bpf/validate: fix BPF_MUL signed overflow UB Marat Khalili
2026-06-24 12:17         ` [PATCH v5 15/24] bpf/validate: fix BPF_JGT/EBPF_JSGT no-jump max Marat Khalili
2026-06-24 12:17         ` [PATCH v5 16/24] bpf/validate: fix BPF_JMP source range calculation Marat Khalili
2026-06-24 12:17         ` [PATCH v5 17/24] bpf/validate: fix BPF_JMP empty range handling Marat Khalili
2026-06-24 12:17         ` [PATCH v5 18/24] bpf/validate: fix BPF_AND min calculations Marat Khalili
2026-06-24 12:17         ` [PATCH v5 19/24] bpf/validate: fix BPF_LSH shift-out-of-bounds UB Marat Khalili
2026-06-24 12:17         ` [PATCH v5 20/24] bpf/validate: fix BPF_OR min calculations Marat Khalili
2026-06-24 12:17         ` [PATCH v5 21/24] bpf/validate: fix BPF_SUB signed max zero case Marat Khalili
2026-06-24 12:17         ` [PATCH v5 22/24] bpf/validate: fix BPF_XOR signed min calculation Marat Khalili
2026-06-24 12:17         ` [PATCH v5 23/24] bpf/validate: prevent overflow when building graph Marat Khalili
2026-06-24 12:17         ` [PATCH v5 24/24] doc: add release notes for BPF validation fixes Marat Khalili

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260624100934.00e99af1@phoenix.local \
    --to=stephen@networkplumber.org \
    --cc=dev@dpdk.org \
    --cc=konstantin.ananyev@huawei.com \
    --cc=marat.khalili@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox