Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/105006/?format=api
http://patchwork.dpdk.org/api/patches/105006/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1638912263-7054-11-git-send-email-jizh@linux.microsoft.com/", "project": { "id": 1, "url": "http://patchwork.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<1638912263-7054-11-git-send-email-jizh@linux.microsoft.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1638912263-7054-11-git-send-email-jizh@linux.microsoft.com", "date": "2021-12-07T21:24:22", "name": "[v12,10/11] app/test: replace .sh script with .py script", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "ba71f075678a5c7ac79f81bc35982a112a9578f2", "submitter": { "id": 1934, "url": "http://patchwork.dpdk.org/api/people/1934/?format=api", "name": "Jie Zhou", "email": "jizh@linux.microsoft.com" }, "delegate": null, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1638912263-7054-11-git-send-email-jizh@linux.microsoft.com/mbox/", "series": [ { "id": 20888, "url": "http://patchwork.dpdk.org/api/series/20888/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=20888", "date": "2021-12-07T21:24:13", "name": "app/test: enable subset of tests on Windows", "version": 12, "mbox": "http://patchwork.dpdk.org/series/20888/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/105006/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/105006/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id B4A59A00C3;\n\tTue, 7 Dec 2021 22:25:11 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 843524274A;\n\tTue, 7 Dec 2021 22:24:38 +0100 (CET)", "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id 716DA4118F\n for <dev@dpdk.org>; Tue, 7 Dec 2021 22:24:29 +0100 (CET)", "from\n linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net\n (linux.microsoft.com [13.77.154.182])\n by linux.microsoft.com (Postfix) with ESMTPSA id 831B820B718D;\n Tue, 7 Dec 2021 13:24:28 -0800 (PST)" ], "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com 831B820B718D", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1638912268;\n bh=gCEG3uOHtm3FbHM2XPviihXOfnKs1apgXfh71WkwU5Q=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=QERNw4uYK9gQyG5XWKUPk5GK1zYRYhwP6OS6miAPKl4DAnReGYYRNCnZziOIndQs0\n S5Fs8N7GlTItTdwqqxD51livIKsXvjxGT7WqxaxL5fzJ6/WbjAd4xf11zmJJRV0vOL\n RjHJqpANLNv0sfCz/JLypChYg/E6Mnfi52+w5HVY=", "From": "Jie Zhou <jizh@linux.microsoft.com>", "To": "dev@dpdk.org", "Cc": "dmitry.kozliuk@gmail.com, bruce.richardson@intel.com,\n roretzla@microsoft.com, navasile@linux.microsoft.com,\n dmitrym@microsoft.com, pallavi.kadam@intel.com, talshn@nvidia.com,\n thomas@monjalon.net, aconole@redhat.com", "Subject": "[PATCH v12 10/11] app/test: replace .sh script with .py script", "Date": "Tue, 7 Dec 2021 13:24:22 -0800", "Message-Id": "<1638912263-7054-11-git-send-email-jizh@linux.microsoft.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1638912263-7054-1-git-send-email-jizh@linux.microsoft.com>", "References": "<1638490007-9939-1-git-send-email-jizh@linux.microsoft.com>\n <1638912263-7054-1-git-send-email-jizh@linux.microsoft.com>", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <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>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "- Add python script to check if system supports hugepages\n- Remove corresponding .sh script\n- Replace calling of .sh with corresponding .py in meson.build\n\nSigned-off-by: Jie Zhou <jizh@linux.microsoft.com>\nAcked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>\n\n---\n app/test/has-hugepage.sh | 11 -----------\n app/test/has_hugepage.py | 26 ++++++++++++++++++++++++++\n app/test/meson.build | 2 +-\n 3 files changed, 27 insertions(+), 12 deletions(-)\n delete mode 100755 app/test/has-hugepage.sh\n create mode 100644 app/test/has_hugepage.py", "diff": "diff --git a/app/test/has-hugepage.sh b/app/test/has-hugepage.sh\ndeleted file mode 100755\nindex d600fad319..0000000000\n--- a/app/test/has-hugepage.sh\n+++ /dev/null\n@@ -1,11 +0,0 @@\n-#! /bin/sh\n-# SPDX-License-Identifier: BSD-3-Clause\n-# Copyright 2020 Mellanox Technologies, Ltd\n-\n-if [ \"$(uname)\" = \"Linux\" ] ; then\n-\tcat /proc/sys/vm/nr_hugepages || echo 0\n-elif [ \"$(uname)\" = \"FreeBSD\" ] ; then\n-\techo 1 # assume FreeBSD always has hugepages\n-else\n-\techo 0\n-fi\ndiff --git a/app/test/has_hugepage.py b/app/test/has_hugepage.py\nnew file mode 100644\nindex 0000000000..f8e7087d1c\n--- /dev/null\n+++ b/app/test/has_hugepage.py\n@@ -0,0 +1,26 @@\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright (c) 2021 Microsoft Corporation\n+\"\"\"This script checks if the system supports huge pages\"\"\"\n+\n+import platform\n+import ctypes\n+\n+os_name = platform.system()\n+if os_name == \"Linux\":\n+ try:\n+ with open(\"/proc/sys/vm/nr_hugepages\") as file_o:\n+ content = file_o.read()\n+ print(content)\n+ except:\n+ print(\"0\")\n+\n+elif os_name == \"FreeBSD\":\n+ # Assume FreeBSD always has hugepages enabled\n+ print(\"1\")\n+elif os_name == \"Windows\":\n+ if ctypes.windll.kernel32.GetLargePageMinimum() > 0:\n+ print(\"1\")\n+ else:\n+ print(\"0\")\n+else:\n+ print(\"0\")\ndiff --git a/app/test/meson.build b/app/test/meson.build\nindex 2b480adfba..97ee83029e 100644\n--- a/app/test/meson.build\n+++ b/app/test/meson.build\n@@ -492,7 +492,7 @@ dpdk_test = executable('dpdk-test',\n driver_install_path),\n install: true)\n \n-has_hugepage = run_command('has-hugepage.sh').stdout().strip() != '0'\n+has_hugepage = run_command(py3, 'has_hugepage.py').stdout().strip() != '0'\n message('hugepage availability: @0@'.format(has_hugepage))\n \n # some perf tests (eg: memcpy perf autotest)take very long\n", "prefixes": [ "v12", "10/11" ] }{ "id": 105006, "url": "