Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/91015/?format=api
http://patches.dpdk.org/api/patches/91015/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1618051221-19962-6-git-send-email-humin29@huawei.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": "<1618051221-19962-6-git-send-email-humin29@huawei.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1618051221-19962-6-git-send-email-humin29@huawei.com", "date": "2021-04-10T10:40:19", "name": "[5/7] examples/performance-thread: support set thread name", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "e5d0a14c1237c5ec8e43fe0c33859a86041799d8", "submitter": { "id": 1944, "url": "http://patches.dpdk.org/api/people/1944/?format=api", "name": "humin (Q)", "email": "humin29@huawei.com" }, "delegate": { "id": 24651, "url": "http://patches.dpdk.org/api/users/24651/?format=api", "username": "dmarchand", "first_name": "David", "last_name": "Marchand", "email": "david.marchand@redhat.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1618051221-19962-6-git-send-email-humin29@huawei.com/mbox/", "series": [ { "id": 16263, "url": "http://patches.dpdk.org/api/series/16263/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=16263", "date": "2021-04-10T10:40:19", "name": "support set thread name", "version": 1, "mbox": "http://patches.dpdk.org/series/16263/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/91015/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/91015/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 C1249A0546;\n\tSat, 10 Apr 2021 12:40:08 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id A93601411F8;\n\tSat, 10 Apr 2021 12:40:08 +0200 (CEST)", "from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190])\n by mails.dpdk.org (Postfix) with ESMTP id 74EBB1411E5\n for <dev@dpdk.org>; Sat, 10 Apr 2021 12:40:07 +0200 (CEST)", "from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60])\n by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FHWf40PRxzpVWS;\n Sat, 10 Apr 2021 18:37:16 +0800 (CST)", "from localhost.localdomain (10.69.192.56) by\n DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id\n 14.3.498.0; Sat, 10 Apr 2021 18:40:02 +0800" ], "From": "\"Min Hu (Connor)\" <humin29@huawei.com>", "To": "<dev@dpdk.org>", "CC": "<ferruh.yigit@intel.com>, <shepard.siegel@atomicrules.com>,\n <qiming.yang@intel.com>, <rosen.xu@intel.com>, <john.mcnamara@intel.com>,\n <ciara.power@intel.com>, <maxime.coquelin@redhat.com>", "Date": "Sat, 10 Apr 2021 18:40:19 +0800", "Message-ID": "<1618051221-19962-6-git-send-email-humin29@huawei.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1618051221-19962-1-git-send-email-humin29@huawei.com>", "References": "<1618051221-19962-1-git-send-email-humin29@huawei.com>", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-Originating-IP": "[10.69.192.56]", "X-CFilter-Loop": "Reflected", "Subject": "[dpdk-dev] [PATCH 5/7] examples/performance-thread: support set\n thread name", "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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "From: Chengwen Feng <fengchengwen@huawei.com>\n\nThis patch supports set helloworld thread name which is helpful for\ndebugging.\n\nSigned-off-by: Chengwen Feng <fengchengwen@huawei.com>\nSigned-off-by: Min Hu (Connor) <humin29@huawei.com>\n---\n examples/performance-thread/pthread_shim/main.c | 5 +++++\n 1 file changed, 5 insertions(+)", "diff": "diff --git a/examples/performance-thread/pthread_shim/main.c b/examples/performance-thread/pthread_shim/main.c\nindex 23e3b5e..4ce3622 100644\n--- a/examples/performance-thread/pthread_shim/main.c\n+++ b/examples/performance-thread/pthread_shim/main.c\n@@ -27,6 +27,7 @@\n \n #define DEBUG_APP 0\n #define HELLOW_WORLD_MAX_LTHREADS 10\n+#define THREAD_NAME_LEN\t16\n \n #ifndef __GLIBC__ /* sched_getcpu() is glibc-specific */\n #define sched_getcpu() rte_lcore_id()\n@@ -149,6 +150,7 @@ static void *initial_lthread(void *args __rte_unused)\n \t\t */\n \t\tpthread_attr_t attr;\n \t\trte_cpuset_t cpuset;\n+\t\tchar name[THREAD_NAME_LEN];\n \n \t\tCPU_ZERO(&cpuset);\n \t\tCPU_SET(lcore, &cpuset);\n@@ -160,6 +162,9 @@ static void *initial_lthread(void *args __rte_unused)\n \t\t\t\thelloworld_pthread, (void *) i);\n \t\tif (ret != 0)\n \t\t\trte_exit(EXIT_FAILURE, \"Cannot create helloworld thread\\n\");\n+\n+\t\tsnprintf(name, sizeof(name), \"helloworld-%u\", (uint32_t)i);\n+\t\trte_thread_setname(tid[i], name);\n \t}\n \n \t/* wait for 1s to allow threads\n", "prefixes": [ "5/7" ] }{ "id": 91015, "url": "