Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/131198/?format=api
http://patchwork.dpdk.org/api/patches/131198/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230906162226.1618088-2-thomas@monjalon.net/", "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": "<20230906162226.1618088-2-thomas@monjalon.net>", "list_archive_url": "https://inbox.dpdk.org/dev/20230906162226.1618088-2-thomas@monjalon.net", "date": "2023-09-06T16:12:18", "name": "[01/11] devtools: warn when adding some pthread calls", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "1c943f957a5806a7c46969b7c581b038174353a6", "submitter": { "id": 685, "url": "http://patchwork.dpdk.org/api/people/685/?format=api", "name": "Thomas Monjalon", "email": "thomas@monjalon.net" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230906162226.1618088-2-thomas@monjalon.net/mbox/", "series": [ { "id": 29438, "url": "http://patchwork.dpdk.org/api/series/29438/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29438", "date": "2023-09-06T16:12:17", "name": "rework thread management", "version": 1, "mbox": "http://patchwork.dpdk.org/series/29438/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/131198/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/131198/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 566B942529;\n\tWed, 6 Sep 2023 18:22:54 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 66D9F402D1;\n\tWed, 6 Sep 2023 18:22:46 +0200 (CEST)", "from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com\n [64.147.123.19]) by mails.dpdk.org (Postfix) with ESMTP id C5A2E402D0\n for <dev@dpdk.org>; Wed, 6 Sep 2023 18:22:45 +0200 (CEST)", "from compute4.internal (compute4.nyi.internal [10.202.2.44])\n by mailout.west.internal (Postfix) with ESMTP id 9D7DE320031A;\n Wed, 6 Sep 2023 12:22:44 -0400 (EDT)", "from mailfrontend2 ([10.202.2.163])\n by compute4.internal (MEProxy); Wed, 06 Sep 2023 12:22:45 -0400", "by mail.messagingengine.com (Postfix) with ESMTPA; Wed,\n 6 Sep 2023 12:22:43 -0400 (EDT)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=\n cc:cc:content-transfer-encoding:content-type:date:date:from:from\n :in-reply-to:in-reply-to:message-id:mime-version:references\n :reply-to:sender:subject:subject:to:to; s=fm1; t=1694017364; x=\n 1694103764; bh=o7X+JH83KDILLQ+AXBN0uumHj/dS70o4vgFk7IRx5uo=; b=Q\n VKm1LP8IRCYryaeJxF8BPJGlL7FLW6b2EPDMHxVTzOkMcSVydVQRKRVRS1+Nau7Z\n IGOYeaI2Vz02UGuBNhiyuMMBrzW2r77zhjMkiYG3Qaq4m5Wj+IpIzI+yPl4kDq8e\n N75AFYoiok1uYXwUDl/PVh3+kEvDTT7ror8Yo2OghtoeWc9pgTSD9Sw3J1VNo5IF\n ctq7X2sU46jZQi544YuOoOlSer8sdqFMXFmSG1fg2JXb/JRBJYDdI6nKgVG4aZjy\n YDa2t4H7lAmJ7Jtr1Vl8ua13rsOoCgzKTzUjNYwRF1UNuhTFyxBQaOO/X+94bTPE\n YdVcuBFZ5pRF8wS14wy3g==", "v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n messagingengine.com; h=cc:cc:content-transfer-encoding\n :content-type:date:date:feedback-id:feedback-id:from:from\n :in-reply-to:in-reply-to:message-id:mime-version:references\n :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy\n :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1694017364; x=\n 1694103764; bh=o7X+JH83KDILLQ+AXBN0uumHj/dS70o4vgFk7IRx5uo=; b=J\n ZMSDVSZJ9ya9GXuNrJcSoXdK+Xvm3ZbLvGVQY8k6rNjG6Eg/3CI/tafW0+FHX9/z\n maVYarVZdNtaQP0/7/tp7KnvwS+7bZaeKSWIaYWnRwSfXXop0NCswViWakteRxOv\n VHd/03FV9w4KW39j1k9FR2YqWQj0YOimrHFROQWOAeFhfXRXWlSyM5+BA9o6c8Yz\n Kbot8chginvl5lAzkUYvMKzT/AjMWpbxirLS9oNH6oqg7M/93Ng2v/gODrFMwTmm\n 0sm1X3WlXC/FmMySJfQbOMK8HUtUXxHATxJwfS6HS18PedJ/tTMSTwhYmrzkT1kG\n 1rC747F0BGXeJhiGrRuIw==" ], "X-ME-Sender": "<xms:U6f4ZAQn1QJXrg0HwnkT22__jIYRW9zVsVfJmamHgTK3xhplz8Ig_A>\n <xme:U6f4ZNxQdW1tMshEmGuDlBxe5-LrpMVeTBAZfR5w1fs1iIxXYBMowMvYYYnEubBPp\n kcw54TvVy0ZO_kboQ>", "X-ME-Received": "\n <xmr:U6f4ZN1tyUt6G7xoOZBiMfsBzhGmdzligz9Dpqdw4gXiA6aNxXRKZLJjNKEZMjQMRke8kWcaayh6a7eXyGQST7d3vxuzX0o>", "X-ME-Proxy-Cause": "\n gggruggvucftvghtrhhoucdtuddrgedviedrudehfedgleelucetufdoteggodetrfdotf\n fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen\n uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne\n cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhhohhm\n rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc\n ggtffrrghtthgvrhhnpedvjefhudeghedvtdeijeeigeetuedugfejueekieeltdfhteev\n keehhfeilefhtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh\n hrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght", "X-ME-Proxy": "<xmx:U6f4ZEDBF3BX-9aiUxHtqPS0Ja2-KN6H5t76H03Oo8fCFHJRsN_R6Q>\n <xmx:U6f4ZJiMAPXh3N-mx05rQnjdhThDAwReb9YMQkCV7MZTViAoPaDY_A>\n <xmx:U6f4ZAoJk7yjarev7X54EQqzFort9rMheTWh2WeJqmlprvgoNSQNtQ>\n <xmx:VKf4ZMuUJ2Ny-WBiiuLUNFR3Gy3utXRRl7iHAUs9AGTQAsMkMdH4AQ>", "Feedback-ID": "i47234305:Fastmail", "From": "Thomas Monjalon <thomas@monjalon.net>", "To": "dev@dpdk.org", "Cc": "Tyler Retzlaff <roretzla@linux.microsoft.com>,\n David Marchand <david.marchand@redhat.com>,\n Ferruh Yigit <ferruh.yigit@amd.com>", "Subject": "[PATCH 01/11] devtools: warn when adding some pthread calls", "Date": "Wed, 6 Sep 2023 18:12:18 +0200", "Message-ID": "<20230906162226.1618088-2-thomas@monjalon.net>", "X-Mailer": "git-send-email 2.42.0", "In-Reply-To": "<20230906162226.1618088-1-thomas@monjalon.net>", "References": "<20230906162226.1618088-1-thomas@monjalon.net>", "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": "All pthread functions below have an equivalent in rte_thread API:\n\t- pthread_create\n\t- pthread_join\n\t- pthread_detach\n\t- pthread_setname_np\n\t- pthread_set_name_np\n\t- pthread_setaffinity_np\n\t- pthread_attr_setinheritsched\n\t- pthread_attr_setschedpolicy\nUsage of these functions will be raised to encourage rte_thread adoption.\n\nThe pthread functions for locks and cancel are still allowed.\n\nSigned-off-by: Thomas Monjalon <thomas@monjalon.net>\n---\n devtools/checkpatches.sh | 8 ++++++++\n 1 file changed, 8 insertions(+)", "diff": "diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh\nindex 55fabc5458..131ffbcebe 100755\n--- a/devtools/checkpatches.sh\n+++ b/devtools/checkpatches.sh\n@@ -119,6 +119,14 @@ check_forbidden_additions() { # <patch>\n \t\t-f $(dirname $(readlink -f $0))/check-forbidden-tokens.awk \\\n \t\t\"$1\" || res=1\n \n+\t# refrain from using some pthread functions\n+\tawk -v FOLDERS=\"lib drivers app examples\" \\\n+\t\t-v EXPRESSIONS=\"pthread_(create|join|detach|set((|_)name_np|affinity_np)|attr_set(inheritsched|schedpolicy))\\\\\\(\" \\\n+\t\t-v RET_ON_FAIL=1 \\\n+\t\t-v MESSAGE='Using pthread functions, prefer rte_thread' \\\n+\t\t-f $(dirname $(readlink -f $0))/check-forbidden-tokens.awk \\\n+\t\t\"$1\" || res=1\n+\n \t# forbid use of __reserved which is a reserved keyword in Windows system headers\n \tawk -v FOLDERS=\"lib drivers app examples\" \\\n \t\t-v EXPRESSIONS='\\\\<__reserved\\\\>' \\\n", "prefixes": [ "01/11" ] }{ "id": 131198, "url": "