From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4C531A0C4E; Thu, 21 Oct 2021 16:16:10 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7BA9C411FE; Thu, 21 Oct 2021 16:16:09 +0200 (CEST) Received: from mail-108-mta242.mxroute.com (mail-108-mta242.mxroute.com [136.175.108.242]) by mails.dpdk.org (Postfix) with ESMTP id 0B8184118E for ; Thu, 21 Oct 2021 16:16:07 +0200 (CEST) Received: from filter004.mxroute.com ([149.28.56.236] filter004.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta242.mxroute.com (ZoneMTA) with ESMTPSA id 17ca33576bf0000b55.001 for (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256); Thu, 21 Oct 2021 14:16:02 +0000 X-Zone-Loop: e538f61c32b2d7fbf7de7968af7893eac13f336abd07 X-Originating-IP: [149.28.56.236] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ashroe.eu; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From:References:Cc: To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=YLjmqdnKCkg/OWfkMHevHXU34J+ZGg3Dcl5dRuhoYXs=; b=kEybwiBInS+QygTZ/mUOrPaEic +DBjbWVg7Sjkw4W/VDBrjecxUWcMTKWhU+JXSTjTK44G18eWlPMsDwdTBrV4ttZquGkoqAd9BGNu4 6fA3spDnMxWzckmr0Fj0KDmsPenvlU/WWOO2MlNWz3DklGgmW7u2BWag5Y0GEFf9fetSduMFrzkVu GUFlvICaP9Uq+a8XzTX0mI7ay9ZMUN1YRdmkGRSaE6NS88Njk/Gnl6Z19frXYiJxzXHG1L85gAUc7 PmPFjeKUGDDawB8JMNWwz+pExYSqrMl1RxONJpAgJH486T45840e1b3k8G4wu2t4rkRiiMbMRAdTr x7ET1nOQ==; Message-ID: <8e998d11-e33e-e63c-ae18-5ef6a22cbd41@ashroe.eu> Date: Thu, 21 Oct 2021 15:15:58 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Content-Language: en-US To: Stephen Hemminger , dev@dpdk.org Cc: Konstantin Ananyev References: <20210903004732.109023-1-stephen@networkplumber.org> <20211020214236.71444-1-stephen@networkplumber.org> <20211020214236.71444-6-stephen@networkplumber.org> From: "Kinsella, Ray" In-Reply-To: <20211020214236.71444-6-stephen@networkplumber.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-AuthUser: mdr@ashroe.eu X-Zone-Spam-Resolution: no action X-Zone-Spam-Status: No, score=-0.1, required=15, tests=[ARC_NA=0, FROM_HAS_DN=0, RCPT_COUNT_THREE=0, TO_DN_SOME=0, MIME_GOOD=-0.1, FROM_EQ_ENVFROM=0, MIME_TRACE=0, RCVD_COUNT_ZERO=0, NEURAL_SPAM=0, MID_RHS_MATCH_FROM=0] Subject: Re: [dpdk-dev] [PATCH v15 05/12] bpf: add function to dump eBPF instructions 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 Sender: "dev" On 20/10/2021 22:42, Stephen Hemminger wrote: > When debugging converted (and other) programs it is useful > to see disassembled eBPF output. > > Signed-off-by: Stephen Hemminger > Acked-by: Konstantin Ananyev > --- > lib/bpf/bpf_dump.c | 139 ++++++++++++++++++++++++++++++++++++++++++++ > lib/bpf/meson.build | 1 + > lib/bpf/rte_bpf.h | 14 +++++ > lib/bpf/version.map | 1 + > 4 files changed, 155 insertions(+) > create mode 100644 lib/bpf/bpf_dump.c > Acked-by: Ray Kinsella