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 86D25A0A0A; Fri, 22 Jan 2021 23:43:38 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0DE32141007; Fri, 22 Jan 2021 23:43:38 +0100 (CET) Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) by mails.dpdk.org (Postfix) with ESMTP id 25D31140D4C for ; Fri, 22 Jan 2021 23:43:37 +0100 (CET) Received: by mail-lj1-f173.google.com with SMTP id t8so998909ljk.10 for ; Fri, 22 Jan 2021 14:43:37 -0800 (PST) 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=3LAsBNVed3zZE23j2X0rH8MvVpzFgtJV7n/aPTZPkmU=; b=VRGFNLA2jbld71ZJNNTocU9fq9wC6f3OPSOtPfmoG6gDsjKoNJ3Y0yF6M/EzlRu/OC tLaNXkd/dFxY/fmo3QYlqPGwRibYITaG1s5f0cArEkWK2tcjyiVV15QQkg8u/k4Ud6M2 LMh4kbaxbMWP+d2dw7U6eeaUoVNm1fRapPuCLxS2ttGNBlfTqbQg9+sYf7NMhdQNtz5V awY5joK8JydaOr02l7DypQP0hHbJPJrk0S1cPmPbFEPODQO9gaF5mKPYxX0hqUoC59zA VKRCFTA994BDNwAte1xXQV6i4xWUxCDr7oa6cjDHdhTpaZ2G3Brk84neB9XNo1BHJD5v +vpw== 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=3LAsBNVed3zZE23j2X0rH8MvVpzFgtJV7n/aPTZPkmU=; b=Wmg+6IKul91qkSjCTUdva43o6czR5FD9mUqL5tYB6UzjLk1Xi6AkCCN3EyBJXbsWkJ A65z7HafEni5JJQGNDPkVJPqsmLMbTnxz2tYMCiUs5Max4TGiAbXEI6JIGwhc3oUMbis xaFcV9qG7XsUjT2a7o605Q+Dpe4zvhMlMdeWl+eorgptFs0KIaxA2C2oUrrmwv62Iy2j I/Sk9X57d/mN8/IUHPwNDISWQju7BA9sAGzS5y+lvY9mssKWr5Br+LoQtc1Ig+Q+YUWY n+WCIkkSJVOn6FVZRW//yxsZxQpKGLt0Dwiz4zz1RAG80em1MOtLRdCSJv4cGL7YjXuy V4rw== X-Gm-Message-State: AOAM531NZjmGWZaOditXvhf8FVH4S71w0QO/8omn8LvaS59kYoU8skQC 3qmgDem1gjYeQ/mXEVrbG/8rI2Irjz1/Rw== X-Google-Smtp-Source: ABdhPJx6LwQIqw3J4JIkj2eGNN/Pb/t7ebs9VnkjyXOJpz+VmrUGPJA//uC4hbt55CsI26brrs+6QQ== X-Received: by 2002:a2e:94d:: with SMTP id 74mr55735ljj.104.1611355416399; Fri, 22 Jan 2021 14:43:36 -0800 (PST) Received: from localhost.localdomain (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id v11sm1119753ljg.128.2021.01.22.14.43.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jan 2021 14:43:35 -0800 (PST) From: Dmitry Kozlyuk To: dev@dpdk.org Cc: Maxime Coquelin , Bruce Richardson , Thomas Monjalon , Dmitry Kozlyuk , Neil Horman , Jie Zhou Date: Sat, 23 Jan 2021 01:43:24 +0300 Message-Id: <20210122224327.5621-1-dmitry.kozliuk@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201020174404.28653-1-dmitry.kozliuk@gmail.com> References: <20201020174404.28653-1-dmitry.kozliuk@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v9 0/3] pmdinfogen: rewrite in Python 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" 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. Canonical JSON formatting of generated strings raises ABI warnings. There are no meaningful changes, which can be checked by comparing output of pmdinfo before and after the patch: find build/drivers -name '*.so' -exec usertools/dpdk-pmdinfo.py Acked-by: Neil Horman Tested-by: Jie Zhou --- Changes in v9: * Document pyelftools requirement for FreeBSD (Thomas). * Add pyelftools to GitHub workflow. Dmitry Kozlyuk (3): pmdinfogen: add Python implementation build: use Python pmdinfogen pmdinfogen: remove C implementation .github/workflows/build.yml | 4 +- .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/freebsd_gsg/build_dpdk.rst | 3 +- doc/guides/linux_gsg/sys_reqs.rst | 6 + drivers/meson.build | 2 +- meson.build | 1 - 13 files changed, 221 insertions(+), 599 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 -- 2.29.2