Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/116244/?format=api
http://patches.dpdk.org/api/patches/116244/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220913131941.582819-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": "<20220913131941.582819-3-kevin.laatz@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220913131941.582819-3-kevin.laatz@intel.com", "date": "2022-09-13T13:19:39", "name": "[v6,2/4] eal: add cpuset lcore telemetry entries", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "12e23cdc7511008c450aa7199c3f9d8ac6d52853", "submitter": { "id": 921, "url": "http://patches.dpdk.org/api/people/921/?format=api", "name": "Kevin Laatz", "email": "kevin.laatz@intel.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220913131941.582819-3-kevin.laatz@intel.com/mbox/", "series": [ { "id": 24646, "url": "http://patches.dpdk.org/api/series/24646/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=24646", "date": "2022-09-13T13:19:37", "name": "Add lcore poll busyness telemetry", "version": 6, "mbox": "http://patches.dpdk.org/series/24646/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/116244/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/116244/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 28E82A0032;\n\tTue, 13 Sep 2022 15:16:47 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 915F44281A;\n\tTue, 13 Sep 2022 15:16:37 +0200 (CEST)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by mails.dpdk.org (Postfix) with ESMTP id 3530440685\n for <dev@dpdk.org>; Tue, 13 Sep 2022 15:16:35 +0200 (CEST)", "from orsmga003.jf.intel.com ([10.7.209.27])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Sep 2022 06:16:35 -0700", "from silpixa00401122.ir.intel.com ([10.237.213.42])\n by orsmga003.jf.intel.com with ESMTP; 13 Sep 2022 06:16:34 -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=1663074996; x=1694610996;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=goGfCfKeRIjWTh9MRITV2iRZf+g9vrTB1dS7/fkK2FA=;\n b=LRZpqfioVVcZPfvV+iKgUE+fakU43Kp5PILJlPdSQy3eLjnhGBL8y28S\n nkSTNnWIbdFXXKbbSJdhu1GHcB2dE1pOBr5vIl15+0DoIkvoDCgAfulZE\n Ix7Csqa8iHh8BCvZbanxSbFzDpKpy5OsW6fkzcP3cd4pMtyDG+J2Qqnjg\n QNHl81FNfOcW5tc8MOxTZMthOYvWHIOj3POpNKbcyFAMCjvm9HSOjrFjT\n 1crIUugfcUJbTVm4aTypcH1FjFSjzQqKN1z9M03PhhfPHj8JxzhZxtQrw\n I7K2Fsz2KSrqs0/QziPiHamTHn0j0bc4I0sHqsGOtFsMI5e/t/fnF4UED g==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10468\"; a=\"295724487\"", "E=Sophos;i=\"5.93,312,1654585200\"; d=\"scan'208\";a=\"295724487\"", "E=Sophos;i=\"5.93,312,1654585200\"; d=\"scan'208\";a=\"567581183\"" ], "X-ExtLoop1": "1", "From": "Kevin Laatz <kevin.laatz@intel.com>", "To": "dev@dpdk.org", "Cc": "anatoly.burakov@intel.com", "Subject": "[PATCH v6 2/4] eal: add cpuset lcore telemetry entries", "Date": "Tue, 13 Sep 2022 14:19:39 +0100", "Message-Id": "<20220913131941.582819-3-kevin.laatz@intel.com>", "X-Mailer": "git-send-email 2.31.1", "In-Reply-To": "<20220913131941.582819-1-kevin.laatz@intel.com>", "References": "\n <24c49429394294cfbf0d9c506b205029bac77c8b.1657890378.git.anatoly.burakov@intel.com>\n <20220913131941.582819-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 abef1ff86d..796a4a6a73 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 @@ rte_atomic32_t __rte_lcore_telemetry_enabled;\n \n #ifdef RTE_LCORE_POLL_BUSYNESS\n \n+#include \"eal_private.h\"\n+\n struct lcore_telemetry {\n \tint poll_busyness;\n \t/**< Calculated poll busyness (gets set/returned by the API) */\n@@ -247,6 +249,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 void\n lcore_telemetry_free(void)\n {\n@@ -273,6 +317,9 @@ RTE_INIT(lcore_init_telemetry)\n \trte_telemetry_register_cmd(\"/eal/lcore/poll_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 \trte_atomic32_set(&__rte_lcore_telemetry_enabled, true);\n }\n \n", "prefixes": [ "v6", "2/4" ] }{ "id": 116244, "url": "