From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by smtp.lore.kernel.org (Postfix) with ESMTP id B2CDCCDE001 for ; Thu, 25 Jun 2026 14:22:26 +0000 (UTC) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CC1F340430; Thu, 25 Jun 2026 16:22:25 +0200 (CEST) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by mails.dpdk.org (Postfix) with ESMTP id 250A0402B0 for ; Thu, 25 Jun 2026 16:22:25 +0200 (CEST) Received: from mail.maildlp.com (unknown [172.18.224.107]) by frasgout.his.huawei.com (SkyGuard) with ESMTPS id 4gmLbF57mQzJ46bR; Thu, 25 Jun 2026 22:21:45 +0800 (CST) Received: from frapema100002.china.huawei.com (unknown [7.182.19.63]) by mail.maildlp.com (Postfix) with ESMTPS id 1F4F14058B; Thu, 25 Jun 2026 22:22:24 +0800 (CST) Received: from frapema500003.china.huawei.com (7.182.19.114) by frapema100002.china.huawei.com (7.182.19.63) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.36; Thu, 25 Jun 2026 16:22:23 +0200 Received: from frapema500003.china.huawei.com ([7.182.19.114]) by frapema500003.china.huawei.com ([7.182.19.114]) with mapi id 15.02.1544.011; Thu, 25 Jun 2026 16:22:23 +0200 From: Marat Khalili To: Stephen Hemminger CC: Konstantin Ananyev , "dev@dpdk.org" Subject: RE: [PATCH v5 02/24] bpf: add format instruction function Thread-Topic: [PATCH v5 02/24] bpf: add format instruction function Thread-Index: AQHdA9Ok+rIbL7zfmUW1GT4o2wYPOLZNz0YAgAGAmxA= Date: Thu, 25 Jun 2026 14:22:23 +0000 Message-ID: References: <20260623143215.95318-1-marat.khalili@huawei.com> <20260624121800.40635-1-marat.khalili@huawei.com> <20260624121800.40635-3-marat.khalili@huawei.com> <20260624100934.00e99af1@phoenix.local> In-Reply-To: <20260624100934.00e99af1@phoenix.local> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.206.137.78] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > On Wed, 24 Jun 2026 13:17:35 +0100 > Marat Khalili wrote: >=20 > > BPF library already contains BPF instruction formatting functions, but > > they could only be used via `rte_bpf_dump` to dump result into file. Ad= d > > 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 > > Acked-by: Konstantin Ananyev > > --- >=20 > 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 :)