get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 54409,
    "url": "http://patches.dpdk.org/api/patches/54409/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190605104400.24484-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": "<20190605104400.24484-3-mattias.ronnblom@ericsson.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190605104400.24484-3-mattias.ronnblom@ericsson.com",
    "date": "2019-06-05T10:43:56",
    "name": "[v3,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": {
        "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/20190605104400.24484-3-mattias.ronnblom@ericsson.com/mbox/",
    "series": [
        {
            "id": 4905,
            "url": "http://patches.dpdk.org/api/series/4905/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4905",
            "date": "2019-06-05T10:43:54",
            "name": "Pseudo-random number generation improvements",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/4905/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/54409/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/54409/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 38E341B9F0;\n\tWed,  5 Jun 2019 12:44:31 +0200 (CEST)",
            "from sesbmg23.ericsson.net (sesbmg23.ericsson.net [193.180.251.37])\n\tby dpdk.org (Postfix) with ESMTP id C01641B9B2\n\tfor <dev@dpdk.org>; Wed,  5 Jun 2019 12:44:27 +0200 (CEST)",
            "from ESESSMB504.ericsson.se (Unknown_Domain [153.88.183.122])\n\tby sesbmg23.ericsson.net (Symantec Mail Security) with SMTP id\n\t5C.3A.10736.B0D97FC5; Wed,  5 Jun 2019 12:44:27 +0200 (CEST)",
            "from ESESSMB504.ericsson.se (153.88.183.165) by\n\tESESSMB504.ericsson.se (153.88.183.165) 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; Wed, 5 Jun 2019 12:44:26 +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; Wed, 5 Jun 2019 12:44:26 +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\tx55AiQRC025408; Wed, 5 Jun 2019 12:44:27 +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=1559731467; x=1562323467;\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=RAcu0KejPxm9PsQwRrT1ncrArElQbJjmyoF3GQyOlYE=;\n\tb=UaZQMVX++ZTqNPcevUAJD7oD0+tvB4YiCWvXOMHFKviYmVr+NpIhK+1E1rUseFex\n\tm2g3DAo8GNeQ+HgTkeDg+zaPKxvKwqTHMk+TwpQZHkkhQ8QOaHtG1CBkLbVWx4X0\n\tQI/cSuDZpYK34u+S6APsdSG146mjsmhQ7yIpyOE3LjM=;",
        "X-AuditID": "c1b4fb25-399ff700000029f0-88-5cf79d0b6d67",
        "From": "=?utf-8?q?Mattias_R=C3=B6nnblom?= <mattias.ronnblom@ericsson.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<nhorman@tuxdriver.com>, <stephen@networkplumber.org>,\n\t<david.marchand@redhat.com>, <bruce.richardson@intel.com>, \n\t=?utf-8?q?Mattias_R=C3=B6nnblom?= <mattias.ronnblom@ericsson.com>",
        "Date": "Wed, 5 Jun 2019 12:43:56 +0200",
        "Message-ID": "<20190605104400.24484-3-mattias.ronnblom@ericsson.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20190605104400.24484-1-mattias.ronnblom@ericsson.com>",
        "References": "<20190516203529.GA642@bricha3-MOBL.ger.corp.intel.com>\n\t<20190605104400.24484-1-mattias.ronnblom@ericsson.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"UTF-8\"",
        "Content-Transfer-Encoding": "8bit",
        "X-Brightmail-Tracker": "H4sIAAAAAAAAA+NgFnrNLMWRmVeSWpSXmKPExsUyM2J7lS733O8xBtfOiFncWGVvsX1FF5vF\n\tu0/bmSxuNZ9ks1h8R86B1ePXgqWsHov3vGTy6Dk5j8nj/b6rbB5Xvq9mDGCN4rJJSc3JLEst\n\t0rdL4Mq4sfwzY8EioYp7r3kaGL/zdTFyckgImEjMvrOSpYuRi0NI4CijRPfE/WwQzldGid+9\n\tL6EyFxglHq9bzQ7hXGKUeLC1hRmkn03AU2Lyu24WEFtEQEhi6cfLYEXMAnsZJV6tmweWEBYI\n\tlFjcMosdxGYRUJE4uWczE4jNK+AkMbdpPTPEIfISqzccALM5BZwlHk/fD1YjJFAtMeFtM1S9\n\toMTJmU/AZjILaEq0bv/NDmHLSzRvnc0MUa8lcX/JF+YJjEKzkLTMQtIyC0nLAkbmVYyixanF\n\tSbnpRsZ6qUWZycXF+Xl6eaklmxiBUXBwy2/VHYyX3zgeYhTgYFTi4X3R/T1GiDWxrLgy9xCj\n\tBAezkghv4u0vMUK8KYmVValF+fFFpTmpxYcYpTlYlMR5o1fviRESSE8sSc1OTS1ILYLJMnFw\n\tSjUwFku/PPNny4ob2SePaDzZdn1NctnvM0lCl28mP5/zOHZe5tcbU2xe7ezl3qS1ynNqTc+x\n\txe+yLxZUffQNMGYsmRtwz9Kf6W9r4GvB9kMmXlwWHUYyFyf7nvJ2Uzve568w9ekfl2SnG9NW\n\t/vq88tOJbTlrrtstXrmjMkKo63NrQf6Gb7UF3R+b9ZRYijMSDbWYi4oTAX/gIrR+AgAA",
        "Subject": "[dpdk-dev] [PATCH v3 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>\nAcked-by: Bruce Richardson <bruce.richardson@intel.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": [
        "v3",
        "2/6"
    ]
}