Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/127816/?format=api
http://patchwork.dpdk.org/api/patches/127816/?format=api", "web_url": "http://patchwork.dpdk.org/project/dts/patch/20230601060125.13278-1-daxuex.gao@intel.com/", "project": { "id": 3, "url": "http://patchwork.dpdk.org/api/projects/3/?format=api", "name": "DTS", "link_name": "dts", "list_id": "dts.dpdk.org", "list_email": "dts@dpdk.org", "web_url": "", "scm_url": "git://dpdk.org/tools/dts", "webscm_url": "http://git.dpdk.org/tools/dts/", "list_archive_url": "https://inbox.dpdk.org/dts", "list_archive_url_format": "https://inbox.dpdk.org/dts/{}", "commit_url_format": "" }, "msgid": "<20230601060125.13278-1-daxuex.gao@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20230601060125.13278-1-daxuex.gao@intel.com", "date": "2023-06-01T06:01:25", "name": "[v1] framework: fix getting single cpu information on freebsd", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "bb3d9a79929caccb24343f3b00c89e09cc4e5259", "submitter": { "id": 2427, "url": "http://patchwork.dpdk.org/api/people/2427/?format=api", "name": "Gao, DaxueX", "email": "daxuex.gao@intel.com" }, "delegate": null, "mbox": "http://patchwork.dpdk.org/project/dts/patch/20230601060125.13278-1-daxuex.gao@intel.com/mbox/", "series": [ { "id": 28290, "url": "http://patchwork.dpdk.org/api/series/28290/?format=api", "web_url": "http://patchwork.dpdk.org/project/dts/list/?series=28290", "date": "2023-06-01T06:01:25", "name": "[v1] framework: fix getting single cpu information on freebsd", "version": 1, "mbox": "http://patchwork.dpdk.org/series/28290/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/127816/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/127816/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dts-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 5124942BFE;\n\tThu, 1 Jun 2023 08:01:24 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3E9DF406B3;\n\tThu, 1 Jun 2023 08:01:24 +0200 (CEST)", "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n by mails.dpdk.org (Postfix) with ESMTP id 88894406A2\n for <dts@dpdk.org>; Thu, 1 Jun 2023 08:01:22 +0200 (CEST)", "from orsmga004.jf.intel.com ([10.7.209.38])\n by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 31 May 2023 23:01:21 -0700", "from unknown (HELO localhost.localdomain) ([10.239.252.161])\n by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 31 May 2023 23:01:20 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1685599282; x=1717135282;\n h=from:to:cc:subject:date:message-id;\n bh=tIAZW7SPypTDYi9f8ZWyWR8myJqedDELf/wk5WLhOW0=;\n b=ZqcQGaZh9FXIDSXNEi+4JZ8X3YGv5W2l5Z2ismlTj5gubRL/AE26Hshm\n qliqXARuAnALnhWW3TJCIQzPnEx04ZH0tDz/ns5+6GIwz5cxj5EjYYxa5\n 6E2kE9EA1zfeiVhjN3K7RGQwfViOJZ7+AXE4nqw63oHHcac8PIz3vmUhy\n MKsdmLdaU9Kf4rrnOMLZQzIhcmGOU3C2Ygj95NRRWdh1nQk2kwEo2cWAM\n mvam+C+SjFXdV7BKLNxNyPJIIzAzoDZlXYdkrDnCFLUe6+RMTzSYKyuqi\n Dz2SOSehxmKkCjbGAt8wqD+EZDFVLj7t4WSqtpSVumbMyApFJAAF/dmDP g==;", "X-IronPort-AV": [ "E=McAfee;i=\"6600,9927,10727\"; a=\"441821372\"", "E=Sophos;i=\"6.00,209,1681196400\"; d=\"scan'208\";a=\"441821372\"", "E=McAfee;i=\"6600,9927,10727\"; a=\"831457327\"", "E=Sophos;i=\"6.00,209,1681196400\"; d=\"scan'208\";a=\"831457327\"" ], "X-ExtLoop1": "1", "From": "Daxue Gao <daxuex.gao@intel.com>", "To": "dts@dpdk.org", "Cc": "Daxue Gao <daxuex.gao@intel.com>", "Subject": "[PATCH v1] framework: fix getting single cpu information on freebsd", "Date": "Thu, 1 Jun 2023 14:01:25 +0800", "Message-Id": "<20230601060125.13278-1-daxuex.gao@intel.com>", "X-Mailer": "git-send-email 2.17.1", "X-BeenThere": "dts@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "test suite reviews and discussions <dts.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dts/>", "List-Post": "<mailto:dts@dpdk.org>", "List-Help": "<mailto:dts-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>", "Errors-To": "dts-bounces@dpdk.org" }, "content": "Fix to get cpu information on freebsd,\nwhen the machine has only one cpu,\nIt cannot match the number of cpus,cores,threads.\nSuch as:\n<groups>\n <group level=\"1\" cache-level=\"0\">\n <cpu count=\"8\" mask=\"ff,0,0,0\">0, 1, 2, 3, 4, 5, 6, 7</cpu>\n </group>\n</groups>\n\nSigned-off-by: Daxue Gao <daxuex.gao@intel.com>\n---\n framework/crb.py | 12 ++++++++++++\n 1 file changed, 12 insertions(+)", "diff": "diff --git a/framework/crb.py b/framework/crb.py\nindex 4ffee558..9e3b0a58 100644\n--- a/framework/crb.py\n+++ b/framework/crb.py\n@@ -721,9 +721,21 @@ class Crb(object):\n socket_id = 0\n \n sockets = cpu_xml.findall(\".//group[@level='2']\")\n+ if not sockets:\n+ sockets = cpu_xml.findall(\".//group[@level='1']\")\n for socket in sockets:\n core_id = 0\n core_elements = socket.findall(\".//children/group/cpu\")\n+ if not core_elements:\n+ core_elements = socket.findall(\"./cpu\")\n+ for core in core_elements:\n+ cores = [int(x) for x in core.text.split(\",\")]\n+ for core in cores:\n+ if self.crb[\"bypass core0\"] and core == 0:\n+ continue\n+ self.cores.append(\n+ {\"socket\": socket_id, \"core\": core, \"thread\": core}\n+ )\n for core in core_elements:\n threads = [int(x) for x in core.text.split(\",\")]\n for thread in threads:\n", "prefixes": [ "v1" ] }{ "id": 127816, "url": "