get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/53484/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 53484,
    "url": "http://patches.dpdk.org/api/patches/53484/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190516175510.27154-3-mattias.ronnblom@ericsson.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": "<20190516175510.27154-3-mattias.ronnblom@ericsson.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190516175510.27154-3-mattias.ronnblom@ericsson.com",
    "date": "2019-05-16T17:55:06",
    "name": "[v2,2/6] eal: add pseudo-random number generation performance test",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "df1296d4c5e52b9c346064ca0fa10f596491dbfe",
    "submitter": {
        "id": 1077,
        "url": "http://patches.dpdk.org/api/people/1077/?format=api",
        "name": "Mattias Rönnblom",
        "email": "mattias.ronnblom@ericsson.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190516175510.27154-3-mattias.ronnblom@ericsson.com/mbox/",
    "series": [
        {
            "id": 4698,
            "url": "http://patches.dpdk.org/api/series/4698/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4698",
            "date": "2019-05-16T17:55:04",
            "name": "Pseudo-random number generation improvements",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/4698/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/53484/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/53484/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 140255F1F;\n\tThu, 16 May 2019 19:55:24 +0200 (CEST)",
            "from sessmg22.ericsson.net (sessmg22.ericsson.net [193.180.251.58])\n\tby dpdk.org (Postfix) with ESMTP id E2D7C4CAB\n\tfor <dev@dpdk.org>; Thu, 16 May 2019 19:55:19 +0200 (CEST)",
            "from ESESBMB501.ericsson.se (Unknown_Domain [153.88.183.114])\n\tby sessmg22.ericsson.net (Symantec Mail Security) with SMTP id\n\t2E.CB.06303.704ADDC5; Thu, 16 May 2019 19:55:19 +0200 (CEST)",
            "from ESESSMB504.ericsson.se (153.88.183.165) by\n\tESESBMB501.ericsson.se (153.88.183.168) with Microsoft SMTP Server\n\t(version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id\n\t15.1.1713.5; Thu, 16 May 2019 19:55:19 +0200",
            "from selio1a020.lmera.ericsson.se (153.88.183.153) by\n\tsmtp.internal.ericsson.com (153.88.183.192) with Microsoft SMTP\n\tServer id\n\t15.1.1713.5 via Frontend Transport; Thu, 16 May 2019 19:55:19 +0200",
            "from breslau.lmera.ericsson.se (breslau.lmera.ericsson.se\n\t[150.132.109.241])\n\tby selio1a020.lmera.ericsson.se (8.15.1+Sun/8.15.1) with ESMTP id\n\tx4GHtHcu023701; Thu, 16 May 2019 19:55:19 +0200 (CEST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801;\n\tc=relaxed/relaxed; \n\tq=dns/txt; i=@ericsson.com; t=1558029319; x=1560621319;\n\th=From:Sender:Reply-To:Subject:Date:Message-ID:To:CC:MIME-Version:Content-Type:\n\tContent-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From:\n\tResent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id:\n\tList-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;\n\tbh=sCbbIv/xOw/DWYTaCt6jmAP/dF/zn8swp9Q9wpMlpc0=;\n\tb=FRe8Sm/Biurh04AoDH5DdSAezk0EGaMBzTcW+/itY9sfnmWHT3gkONv8XuPikACA\n\t89XcEu+vcX/6L9tSJiVPIzigCOlMo1hFQA3lNTODsG5tWi71e+pZ0Wf/sM9AL3Av\n\tO+1Jt663FUWzYZ+xV9ITnZn76vARKBDo0jk+/2AN0Qg=;",
        "X-AuditID": "c1b4fb3a-6f1ff7000000189f-df-5cdda407f657",
        "From": "=?utf-8?q?Mattias_R=C3=B6nnblom?= <mattias.ronnblom@ericsson.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<bruce.richardson@intel.com>, <stephen@networkplumber.org>,\n\t=?utf-8?q?Mattias_R=C3=B6nnblom?= <mattias.ronnblom@ericsson.com>",
        "Date": "Thu, 16 May 2019 19:55:06 +0200",
        "Message-ID": "<20190516175510.27154-3-mattias.ronnblom@ericsson.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20190516175510.27154-1-mattias.ronnblom@ericsson.com>",
        "References": "<20190514092046.30808-1-mattias.ronnblom@ericsson.com>\n\t<20190516175510.27154-1-mattias.ronnblom@ericsson.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"UTF-8\"",
        "Content-Transfer-Encoding": "8bit",
        "X-Brightmail-Tracker": "H4sIAAAAAAAAA+NgFrrOLMWRmVeSWpSXmKPExsUyM2J7kS77krsxBssOGVncWGVv8e7TdiaL\n\txXfkHJg9fi1YyuqxeM9LJo+ek/OYApijuGxSUnMyy1KL9O0SuDLe3vzLVvBSsOLCv4MsDYyH\n\t+boYOTgkBEwk+p6qdDFycQgJHGWUWNHxiQXC+cYocexCEyOEc5FRorPpOJRzmVFi8YE7TF2M\n\tnBxsAp4Sk991s4DYIgJCEks/XmYHKWIWaGWU2PGwkRUkISwQKPH9+D+wBhYBVYn9l7eA2bwC\n\tThLblrxnBrElBOQlVm84AGZzCjhLXD1/AKxXSKBa4mfXGqh6QYmTM5+ALWMW0JRo3f6bHcKW\n\tl2jeOpsZol5L4v6SL8wTGIVmIWmZhaRlFpKWBYzMqxhFi1OLi3PTjYz0Uosyk4uL8/P08lJL\n\tNjECg/vglt9WOxgPPnc8xCjAwajEwxs7526MEGtiWXFl7iFGCQ5mJRHeDe9vxwjxpiRWVqUW\n\t5ccXleakFh9ilOZgURLnjV69J0ZIID2xJDU7NbUgtQgmy8TBKdXAuPT8367vL9QZqr99Yp3a\n\tz7Z2wywxrfQQs4KnK8+qtWZ9OBLpul5/9dTkHT9D2TYrRjfXRt3X/HL4sZd16iWrMzNdc0tj\n\tNV4H/OCdri5y/ALDnxUbHPKvPZhX+DhIx+lqeuUp1t3Zrb80NO5LWOxSzK5aGqapfy465HJ+\n\tx1W2F2/m5Jrpr3C7r8RSnJFoqMVcVJwIALrMzdRqAgAA",
        "Subject": "[dpdk-dev] [PATCH v2 2/6] eal: add pseudo-random number generation\n\tperformance test",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Add performance test for rte_rand().\n\nSigned-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>\n---\n app/test/Makefile         |  1 +\n app/test/test_rand_perf.c | 75 +++++++++++++++++++++++++++++++++++++++\n 2 files changed, 76 insertions(+)\n create mode 100644 app/test/test_rand_perf.c",
    "diff": "diff --git a/app/test/Makefile b/app/test/Makefile\nindex 68d6b4fbc..be0f39227 100644\n--- a/app/test/Makefile\n+++ b/app/test/Makefile\n@@ -73,6 +73,7 @@ SRCS-y += test_reciprocal_division.c\n SRCS-y += test_reciprocal_division_perf.c\n SRCS-y += test_fbarray.c\n SRCS-y += test_external_mem.c\n+SRCS-y += test_rand_perf.c\n \n SRCS-y += test_ring.c\n SRCS-y += test_ring_perf.c\ndiff --git a/app/test/test_rand_perf.c b/app/test/test_rand_perf.c\nnew file mode 100644\nindex 000000000..771713757\n--- /dev/null\n+++ b/app/test/test_rand_perf.c\n@@ -0,0 +1,75 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(c) 2019 Ericsson AB\n+ */\n+\n+#include <inttypes.h>\n+#include <stdio.h>\n+\n+#include <rte_common.h>\n+#include <rte_cycles.h>\n+#include <rte_random.h>\n+\n+#include \"test.h\"\n+\n+static volatile uint64_t vsum;\n+\n+#define ITERATIONS (100000000)\n+\n+enum rand_type {\n+\trand_type_64\n+};\n+\n+static const char *\n+rand_type_desc(enum rand_type rand_type)\n+{\n+\tswitch (rand_type) {\n+\tcase rand_type_64:\n+\t\treturn \"Full 64-bit [rte_rand()]\";\n+\tdefault:\n+\t\treturn NULL;\n+\t}\n+}\n+\n+static __rte_always_inline void\n+test_rand_perf_type(enum rand_type rand_type)\n+{\n+\tuint64_t start;\n+\tuint32_t i;\n+\tuint64_t end;\n+\tuint64_t sum = 0;\n+\tuint64_t op_latency;\n+\n+\tstart = rte_rdtsc();\n+\n+\tfor (i = 0; i < ITERATIONS; i++) {\n+\t\tswitch (rand_type) {\n+\t\tcase rand_type_64:\n+\t\t\tsum += rte_rand();\n+\t\t\tbreak;\n+\t\t}\n+\t}\n+\n+\tend = rte_rdtsc();\n+\n+\t/* to avoid an optimizing compiler removing the whole loop */\n+\tvsum = sum;\n+\n+\top_latency = (end - start) / ITERATIONS;\n+\n+\tprintf(\"%s: %\"PRId64\" TSC cycles/op\\n\", rand_type_desc(rand_type),\n+\t       op_latency);\n+}\n+\n+static int\n+test_rand_perf(void)\n+{\n+\trte_srand(42);\n+\n+\tprintf(\"Pseudo-random number generation latencies:\\n\");\n+\n+\ttest_rand_perf_type(rand_type_64);\n+\n+\treturn 0;\n+}\n+\n+REGISTER_TEST_COMMAND(rand_perf_autotest, test_rand_perf);\n",
    "prefixes": [
        "v2",
        "2/6"
    ]
}