Message ID | 20201014183136.22239-1-dmitry.kozliuk@gmail.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> 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 EA606A04DB; Wed, 14 Oct 2020 20:31:50 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7981A1DB13; Wed, 14 Oct 2020 20:31:47 +0200 (CEST) Received: from mail-lj1-f193.google.com (mail-lj1-f193.google.com [209.85.208.193]) by dpdk.org (Postfix) with ESMTP id 948791BA6F; Wed, 14 Oct 2020 20:31:45 +0200 (CEST) Received: by mail-lj1-f193.google.com with SMTP id c21so525699ljj.0; Wed, 14 Oct 2020 11:31:45 -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=TcymtE/zVyi2Cg9htn56FwSPHT2uxeO8dPVM92Rsdjw=; b=YQHDP07lg9g605TX4zbTI4aMqI0Y3ZMz6vTRmbDg7EuUwwSA85rU2vghE1T8FYqzIw J7esBG33KtTTLHy0EWKObWglN7u0u+zUSNPfOMHJeSEZiNEB5IRF/Pko3qvQK19yujGb olBqCogNXRzdiuCeEgeAWUNjEfMpq67FmFN3a6K+A/Kpd5KQkESPZ/52dIay7MKjUvYV sS78qejXaOo4iJMONK5JkGx3GNLGGK8tWLikPRPvxtNCMtxE+qkL05BEbvQAjyjFkTOa mcbiKerbeC9IQ67cXFlgZhbZVgb7Zic8atONC7Zr8RyM/YwpuopmlKvOJLmaJpfpYRtz 81+A== 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=TcymtE/zVyi2Cg9htn56FwSPHT2uxeO8dPVM92Rsdjw=; b=T/U/jD+xaT8HtgXuLs9i4JiHEQZB2bnkITvvruKawLRF05ZkrNJq6xGehQWNeiwPWZ B2boqjjYx3AAD9Dpc1RdF1RBnNgd1XZGeXj29leZHqxAV3xKXDrdzXa7CcsnqsQAhqN7 FmXIeH6rByh8qVeXtv8CyViNMDjmsB6uFPHuyWjEiMzf2gW5wZF/PADuN2fjCaHanwY2 0IZx5iNw4rcz47ZBqU3ps/7LSW52gORn1VjhGn7aFctYsOQWLS4M3aHevb7XbyiYPv0J Q1Z2QQoe0pVGszN7Q+BRn7AyVTWj6qTLFGJCYUzFXK8VAQbanRNnlXYSsf/VK2hLpYXl YYJg== X-Gm-Message-State: AOAM533EwZwhgT7Mw5lPoNI1uMfhuDh2tN5wxP53mxBL0Unszofmut9P rQ8t5O9f0deQzStUWrEtWmi7FmXrnLvFbg== X-Google-Smtp-Source: ABdhPJyvfiwcpNOZH7X92Sw5nAuxcI1gQc0dsRB26m8SuDxVDiZK3PWf70jjdJw9D5/Uu+CItdJIXQ== X-Received: by 2002:a2e:b169:: with SMTP id a9mr18463ljm.84.1602700303725; Wed, 14 Oct 2020 11:31:43 -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 d21sm32942lfl.62.2020.10.14.11.31.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2020 11:31:43 -0700 (PDT) From: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com> To: dev@dpdk.org Cc: ci@dpdk.org, Stephen Hemminger <stephen@networkplumber.org>, David Marchand <david.marchand@redhat.com>, Thomas Monjalon <thomas@monjalon.net>, Maxime Coquelin <maxime.coquelin@redhat.com>, Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>, Neil Horman <nhorman@tuxdriver.com> Date: Wed, 14 Oct 2020 21:31:33 +0300 Message-Id: <20201014183136.22239-1-dmitry.kozliuk@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201004015947.9012-1-dmitry.kozliuk@gmail.com> References: <20201004015947.9012-1-dmitry.kozliuk@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v7 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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
pmdinfogen: rewrite in Python
|
|
Message
Dmitry Kozlyuk
Oct. 14, 2020, 6:31 p.m. UTC
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,
* foundation for adding Windows support.
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.
Acked-by: Neil Horman <nhorman@tuxdriver.com>
---
Changes in v7:
Add configure-time check for elftools module (Maxime Coquelin).
Dmitry Kozlyuk (3):
pmdinfogen: add Python implementation
build: use Python pmdinfogen
pmdinfogen: remove C implementation
.travis.yml | 2 +-
MAINTAINERS | 3 +-
buildtools/gen-pmdinfo-cfile.sh | 6 +-
buildtools/meson.build | 15 +
buildtools/pmdinfogen.py | 189 ++++++++++++
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, 217 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
Comments
Hello Dmitry, On Wed, Oct 14, 2020 at 8:31 PM Dmitry Kozlyuk <dmitry.kozliuk@gmail.com> wrote: > > 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, > * foundation for adding Windows support. > > 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. > - Travis reported an error in meson: https://travis-ci.com/github/ovsrobot/dpdk/jobs/399762460#L478 Build machine cpu: x86_64 buildtools/meson.build:27:10: ERROR: Expecting endforeach got eol_cont. script = \ ^ For a block that started at 26,0 foreach module : python3_required_modules ^ - In a thread on ci@dpdk.org http://inbox.dpdk.org/ci/CAOeXdvbosqRGouSX06_phVTCam57XUt0s=sf_kpe-VmiwFTgMA@mail.gmail.com/T/#m9bb193c74ca979c151f2dbfa35664f95093a9e71, UNH people confirmed that python3-elftools should be available, but the last test had an error too, which might be linked to incorrect meson syntax: http://mails.dpdk.org/archives/test-report/2020-October/159038.html ninja: error: loading 'build.ninja': No such file or directory - As far as Intel CI systems are concerned, there might be an issue with the Windows system: http://mails.dpdk.org/archives/test-report/2020-October/159123.html OS: WIN10-64 Target: x86_64-windows-clang Program binutils-avx512-check.sh found: YES Program python3 found: YES (c:\program files\python37\python.exe) buildtools\meson.build:32:2: ERROR: Problem encountered: missing python module: elftools A full log can be found at C:\windows-dpdk\dpdk\build\meson-logs\meson-log.txt ninja: Entering directory `build' DPDK STV team
Hello David, > - Travis reported an error in meson: > https://travis-ci.com/github/ovsrobot/dpdk/jobs/399762460#L478 > > Build machine cpu: x86_64 > buildtools/meson.build:27:10: ERROR: Expecting endforeach got eol_cont. > script = \ > ^ > For a block that started at 26,0 > foreach module : python3_required_modules > ^ My bad, meson 0.47.1 doesn't understand this indeed, fixed in v8. > - In a thread on ci@dpdk.org > http://inbox.dpdk.org/ci/CAOeXdvbosqRGouSX06_phVTCam57XUt0s=sf_kpe-VmiwFTgMA@mail.gmail.com/T/#m9bb193c74ca979c151f2dbfa35664f95093a9e71, > UNH people confirmed that python3-elftools should be available, but > the last test had an error too, which might be linked to incorrect > meson syntax: > http://mails.dpdk.org/archives/test-report/2020-October/159038.html > > ninja: error: loading 'build.ninja': No such file or directory Makes sense. > - As far as Intel CI systems are concerned, there might be an issue > with the Windows system: > http://mails.dpdk.org/archives/test-report/2020-October/159123.html > > OS: WIN10-64 > Target: x86_64-windows-clang > Program binutils-avx512-check.sh found: YES > Program python3 found: YES (c:\program files\python37\python.exe) > > buildtools\meson.build:32:2: ERROR: Problem encountered: missing > python module: elftools This is the check added in the last revision per Maxime's suggestion. Disabled the check on Windows in v8 until pmdinfogen supports COFF (and this will probably introduce an alternative dependency). I'll watch new CI results, haven't been doing so closely because failures were expected for these patches. Tested v8 build on Linux->Linux, Linux->Windows, Windows->Windows (GCC & clang, without pyelftools installed).
Hi IOL team, The following error persists in v8: > - In a thread on ci@dpdk.org > http://inbox.dpdk.org/ci/CAOeXdvbosqRGouSX06_phVTCam57XUt0s=sf_kpe-VmiwFTgMA@mail.gmail.com/T/#m9bb193c74ca979c151f2dbfa35664f95093a9e71, > UNH people confirmed that python3-elftools should be available, but > the last test had an error too, which might be linked to incorrect > meson syntax: > http://mails.dpdk.org/archives/test-report/2020-October/159038.html > > ninja: error: loading 'build.ninja': No such file or directory https://inbox.dpdk.org/test-report/20201020181426.1BC8788FC9@noxus.dpdklab.iol.unh.edu/T/#u The message isn't very informative. I suspect meson failed to configure, but there's no way to tell what went wrong. How can I get more information about this failure or specification of your environment to reproduce it?