Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/115383/?format=api
http://patches.dpdk.org/api/patches/115383/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220824162442.631456-3-kevin.laatz@intel.com/", "project": { "id": 1, "url": "http://patches.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": "<20220824162442.631456-3-kevin.laatz@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220824162442.631456-3-kevin.laatz@intel.com", "date": "2022-08-24T16:24:41", "name": "[v2,2/3] eal: add cpuset lcore telemetry entries", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "bb2d695dd169532a46c1da7980594193b731a6a3", "submitter": { "id": 921, "url": "http://patches.dpdk.org/api/people/921/?format=api", "name": "Kevin Laatz", "email": "kevin.laatz@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220824162442.631456-3-kevin.laatz@intel.com/mbox/", "series": [ { "id": 24401, "url": "http://patches.dpdk.org/api/series/24401/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=24401", "date": "2022-08-24T16:24:39", "name": "Add lcore poll busyness telemetry", "version": 2, "mbox": "http://patches.dpdk.org/series/24401/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/115383/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/115383/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 F0634A0543;\n\tWed, 24 Aug 2022 18:23:12 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 54C1F42802;\n\tWed, 24 Aug 2022 18:23:07 +0200 (CEST)", "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by mails.dpdk.org (Postfix) with ESMTP id BACA6415D7\n for <dev@dpdk.org>; Wed, 24 Aug 2022 18:23:03 +0200 (CEST)", "from fmsmga003.fm.intel.com ([10.253.24.29])\n by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 24 Aug 2022 09:21:53 -0700", "from silpixa00401122.ir.intel.com ([10.237.213.42])\n by FMSMGA003.fm.intel.com with ESMTP; 24 Aug 2022 09:21:52 -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=1661358183; x=1692894183;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=v3UphZ98e5s70i0JAns9ZiwO304zuzaVTbveNkabfCs=;\n b=d9pz5GKCKA6SZMfV6z0Y7EYHqF1MV8HHVR0W4m/irYFNP7ctpUwE58BY\n uRHA8mXUB2Q1V3kkjHBZ+D/j5WD35Gr6h/kM5vL9if94Soacj6KnDV37h\n Y2J8X4mmNqh0UjD1uC6sW8NTPxaKvTt6JF5vAD6fEhdXRARzJ7E9K6wmI\n ylS3e/RngIZyFYgwnz/W/F5XNxNqcj6llbDMO4laH14TFUGXUIWmm+yMQ\n 9BVncwwCeBNw1rovdBP3jpA27t5kIjBWObcNDhdNtns+C9P/b93gu4FXF\n VRzSVcIKr4TNqixwP++M/sM6t/WpAsit/Lvc/vbAP1zgB7knjBn7yaCQj Q==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10449\"; a=\"292755993\"", "E=Sophos;i=\"5.93,260,1654585200\"; d=\"scan'208\";a=\"292755993\"", "E=Sophos;i=\"5.93,260,1654585200\"; d=\"scan'208\";a=\"699128521\"" ], "X-ExtLoop1": "1", "From": "Kevin Laatz <kevin.laatz@intel.com>", "To": "dev@dpdk.org", "Cc": "anatoly.burakov@intel.com", "Subject": "[PATCH v2 2/3] eal: add cpuset lcore telemetry entries", "Date": "Wed, 24 Aug 2022 17:24:41 +0100", "Message-Id": "<20220824162442.631456-3-kevin.laatz@intel.com>", "X-Mailer": "git-send-email 2.31.1", "In-Reply-To": "<20220824162442.631456-1-kevin.laatz@intel.com>", "References": "\n <24c49429394294cfbf0d9c506b205029bac77c8b.1657890378.git.anatoly.burakov@intel.com>\n <20220824162442.631456-1-kevin.laatz@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "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": "From: Anatoly Burakov <anatoly.burakov@intel.com>\n\nExpose per-lcore cpuset information to telemetry.\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n lib/eal/common/eal_common_lcore_telemetry.c | 47 +++++++++++++++++++++\n 1 file changed, 47 insertions(+)", "diff": "diff --git a/lib/eal/common/eal_common_lcore_telemetry.c b/lib/eal/common/eal_common_lcore_telemetry.c\nindex e6b58788c8..646b0fbb55 100644\n--- a/lib/eal/common/eal_common_lcore_telemetry.c\n+++ b/lib/eal/common/eal_common_lcore_telemetry.c\n@@ -19,6 +19,8 @@ int __rte_lcore_telemetry_enabled;\n \n #ifdef RTE_LCORE_POLL_BUSYNESS\n \n+#include \"eal_private.h\"\n+\n struct lcore_telemetry {\n \tint busyness;\n \t/**< Calculated busyness (gets set/returned by the API) */\n@@ -254,6 +256,48 @@ lcore_handle_poll_busyness(const char *cmd __rte_unused,\n \treturn 0;\n }\n \n+static int\n+lcore_handle_cpuset(const char *cmd __rte_unused,\n+\t\t const char *params __rte_unused,\n+\t\t struct rte_tel_data *d)\n+{\n+\tchar corenum[64];\n+\tint i;\n+\n+\trte_tel_data_start_dict(d);\n+\n+\tRTE_LCORE_FOREACH(i) {\n+\t\tconst struct lcore_config *cfg = &lcore_config[i];\n+\t\tconst rte_cpuset_t *cpuset = &cfg->cpuset;\n+\t\tstruct rte_tel_data *ld;\n+\t\tunsigned int cpu;\n+\n+\t\tif (!rte_lcore_is_enabled(i))\n+\t\t\tcontinue;\n+\n+\t\t/* create an array of integers */\n+\t\tld = rte_tel_data_alloc();\n+\t\tif (ld == NULL)\n+\t\t\treturn -ENOMEM;\n+\t\trte_tel_data_start_array(ld, RTE_TEL_INT_VAL);\n+\n+\t\t/* add cpu ID's from cpuset to the array */\n+\t\tfor (cpu = 0; cpu < CPU_SETSIZE; cpu++) {\n+\t\t\tif (!CPU_ISSET(cpu, cpuset))\n+\t\t\t\tcontinue;\n+\t\t\trte_tel_data_add_array_int(ld, cpu);\n+\t\t}\n+\n+\t\t/* add array to the per-lcore container */\n+\t\tsnprintf(corenum, sizeof(corenum), \"%d\", i);\n+\n+\t\t/* tell telemetry library to free this array automatically */\n+\t\trte_tel_data_add_dict_container(d, corenum, ld, 0);\n+\t}\n+\n+\treturn 0;\n+}\n+\n RTE_INIT(lcore_init_telemetry)\n {\n \t__rte_lcore_telemetry_enabled = true;\n@@ -268,6 +312,9 @@ RTE_INIT(lcore_init_telemetry)\n \n \trte_telemetry_register_cmd(\"/eal/lcore/busyness_disable\", lcore_poll_busyness_disable,\n \t\t\t\t \"disable lcore poll busyness measurement\");\n+\n+\trte_telemetry_register_cmd(\"/eal/lcore/cpuset\", lcore_handle_cpuset,\n+\t\t\t\t \"list physical core affinity for each lcore\");\n }\n \n #else\n", "prefixes": [ "v2", "2/3" ] }{ "id": 115383, "url": "