From patchwork Sun Sep 27 21:47:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Kozlyuk X-Patchwork-Id: 78919 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6EA8DA04BC; Sun, 27 Sep 2020 23:47:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8167F1D591; Sun, 27 Sep 2020 23:47:43 +0200 (CEST) Received: from mail-lf1-f66.google.com (mail-lf1-f66.google.com [209.85.167.66]) by dpdk.org (Postfix) with ESMTP id 7CF511D590 for ; Sun, 27 Sep 2020 23:47:41 +0200 (CEST) Received: by mail-lf1-f66.google.com with SMTP id q8so8825424lfb.6 for ; Sun, 27 Sep 2020 14:47:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1VfeKYTnF3OV7731oAHVu6E+gM29UDSJjgZKQlxar2k=; b=AprNAiMjj1e5rTLW6XXq9mbbo9WCzz4+OYPVjmE41MZ1GWFzuK27NRdtNUoM15CR05 rQlVPngzXJldxWJGwnW1xRJ6UcZoe/muGf0nEXJAs2+PFts6BwOuuHgBeppr0Y2bF1Ta cz2FC1fKDJy6QFBvlqBThDht4PoHq1QumV3RVpr+8gdC0VS3nvcRreQA2RO+vqhcYRa2 hAtnOOA88mrwTrgZskzjZEB+z99RwC2BVZBTtd2mWLrIUW8cDQ+ZUma0+OGUCO0tGEnn 8n3+PyltZbnogW6tdOGt8OLs0lE02d7xNzDI4QX6U9hyiyKr8Q1d3omULK4vGhh+yV19 1htQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1VfeKYTnF3OV7731oAHVu6E+gM29UDSJjgZKQlxar2k=; b=tRxFAPq5w5YXAfM6gKEF6PEovpP3MTL87gTiBUueayyxCqOoZ9STwYtICtL6iEJdb0 c+AtYr1CBo08TjPrNSvGZEh36DIQLWXT5BHlKi0iCv4PMECKxuimSjU0Fb2QuLlHpyb4 ++0EjhK1k4TaOFwXpGHDeiVoXILiCwK9ih6TgmAta+lXmnSETyD5zc0R3Of/Dr8t6a/5 dyZm7cfUU1n2kS2weXwprJc1DyR/7hmRflqAqXHcJ3E8xi6qkap9wUJP9Cz10lj1h6+a 5IwrVTzdBegsKSJiAG4BAjTn3MCXQ4kXyUZO1kyquguAqQpsV/AkzcWXT/qg8RDt1RRi POZQ== X-Gm-Message-State: AOAM533B2Upz+CnEQ8hABn5w6nkifSSTdZAcdFeOyYMOaBIS32Y1wsiy KXgttNL0AqOmyR/7vVYT0bUY3AAN14aeeA== X-Google-Smtp-Source: ABdhPJz1aZYRebzLuKNjDiaasCvRmEPhtj+f0PHyXKq6oGpbcPtwjkBC7KBdy8Bydbmhkd+bmw7Bew== X-Received: by 2002:ac2:46d1:: with SMTP id p17mr3137264lfo.216.1601243259751; Sun, 27 Sep 2020 14:47:39 -0700 (PDT) Received: from localhost.localdomain (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id u20sm2559435lfo.156.2020.09.27.14.47.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Sep 2020 14:47:38 -0700 (PDT) From: Dmitry Kozlyuk To: dev@dpdk.org Cc: Dmitry Kozlyuk , Neil Horman Date: Mon, 28 Sep 2020 00:47:29 +0300 Message-Id: <20200927214732.12783-1-dmitry.kozliuk@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200708212335.25338-1-dmitry.kozliuk@gmail.com> References: <20200708212335.25338-1-dmitry.kozliuk@gmail.com> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v5 0/3] pmdinfogen: rewrite in Python X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" This patchset implements existing pmdinfogen logic in Python, replaces and removes the old code. The goals of rewriting are: * easier maintenance by using a more high-level language, * simpler build process without host application and libelf. Travis CI script is adjusted to install python3-pyelftools, but other CI systems may need similar tweaking. Particularly, testing on FreeBSD and big-endian targets is desired. From v4: Acked-by: Neil Horman --- Changes in v5: 1. Rebase on ToT, remove Makefile changes. 2. Squash doc changes into patch 2/3. Changes in v4: Fix build by removing redundant check. Changes in v3: 1. Rebase on ToT, add package to CI. 2. Add copyrights, fixup maintainers file. 3. Remove C implementation. Changes in v2: 1. pyelftools is used instead of hand-written ELF parser. 2. Makefiles are adjusted. 3. f-strings replaced with % formatting to support Python 3.5. 4. Wrapper script does not hide stderr from ar and pmdinfogen. Dmitry Kozlyuk (3): pmdinfogen: add Python implementation build: use Python pmdinfogen pmdinfogen: remove C implementation .travis.yml | 2 +- MAINTAINERS | 2 +- buildtools/gen-pmdinfo-cfile.sh | 6 +- buildtools/meson.build | 1 + buildtools/pmdinfogen.py | 188 ++++++++++++ buildtools/pmdinfogen/meson.build | 14 - buildtools/pmdinfogen/pmdinfogen.c | 456 ----------------------------- buildtools/pmdinfogen/pmdinfogen.h | 119 -------- doc/guides/linux_gsg/sys_reqs.rst | 6 + drivers/meson.build | 2 +- meson.build | 1 - 11 files changed, 201 insertions(+), 596 deletions(-) create mode 100755 buildtools/pmdinfogen.py delete mode 100644 buildtools/pmdinfogen/meson.build delete mode 100644 buildtools/pmdinfogen/pmdinfogen.c delete mode 100644 buildtools/pmdinfogen/pmdinfogen.h