Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/56148/?format=api
https://patches.dpdk.org/api/patches/56148/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1562325340-3891-3-git-send-email-fiona.trahe@intel.com/", "project": { "id": 1, "url": "https://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": "<1562325340-3891-3-git-send-email-fiona.trahe@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1562325340-3891-3-git-send-email-fiona.trahe@intel.com", "date": "2019-07-05T11:15:36", "name": "[v7,2/6] app/test-compress-perf: add ptest command line option", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "e7115199ff22562d58c5974c34d16a99a6329e32", "submitter": { "id": 423, "url": "https://patches.dpdk.org/api/people/423/?format=api", "name": "Fiona Trahe", "email": "fiona.trahe@intel.com" }, "delegate": { "id": 6690, "url": "https://patches.dpdk.org/api/users/6690/?format=api", "username": "akhil", "first_name": "akhil", "last_name": "goyal", "email": "gakhil@marvell.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1562325340-3891-3-git-send-email-fiona.trahe@intel.com/mbox/", "series": [ { "id": 5362, "url": "https://patches.dpdk.org/api/series/5362/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=5362", "date": "2019-07-05T11:15:36", "name": null, "version": 7, "mbox": "https://patches.dpdk.org/series/5362/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/56148/comments/", "check": "fail", "checks": "https://patches.dpdk.org/api/patches/56148/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 0A5B91BE6C;\n\tFri, 5 Jul 2019 13:16:35 +0200 (CEST)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby dpdk.org (Postfix) with ESMTP id 9EB6E1BE7E\n\tfor <dev@dpdk.org>; Fri, 5 Jul 2019 13:16:32 +0200 (CEST)", "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t05 Jul 2019 04:16:32 -0700", "from sivswdev09.ir.intel.com (HELO localhost.localdomain)\n\t([10.237.217.48])\n\tby orsmga002.jf.intel.com with ESMTP; 05 Jul 2019 04:16:30 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.63,454,1557212400\"; d=\"scan'208\";a=\"175474140\"", "From": "Fiona Trahe <fiona.trahe@intel.com>", "To": "dev@dpdk.org", "Cc": "akhil.goyal@nxp.com, shallyv@marvell.com, arturx.trybula@intel.com,\n\ttjozwiakgm@gmail.com, fiona.trahe@intel.com,\n\tTomasz Jozwiak <tomaszx.jozwiak@intel.com>", "Date": "Fri, 5 Jul 2019 12:15:36 +0100", "Message-Id": "<1562325340-3891-3-git-send-email-fiona.trahe@intel.com>", "X-Mailer": "git-send-email 1.7.0.7", "In-Reply-To": "<20190703152418.8601-1-arturx.trybula@intel.com>", "References": "<20190703152418.8601-1-arturx.trybula@intel.com>", "Subject": "[dpdk-dev] [PATCH v7 2/6] app/test-compress-perf: add ptest command\n\tline option", "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": "From: Tomasz Jozwiak <tomaszx.jozwiak@intel.com>\n\nThis patch adds --ptest option to make possible to choose\ntest case from command line.\n\nSigned-off-by: Tomasz Jozwiak <tjozwiakgm@gmail.com>\nSigned-off-by: Tomasz Jozwiak <tomaszx.jozwiak@intel.com>\nAcked-by: Artur Trybula <arturx.trybula@intel.com>\n---\n app/test-compress-perf/comp_perf_options_parse.c | 32 ++++++++++++++++++++++++\n 1 file changed, 32 insertions(+)", "diff": "diff --git a/app/test-compress-perf/comp_perf_options_parse.c b/app/test-compress-perf/comp_perf_options_parse.c\nindex 74ea81d09..3d820197a 100644\n--- a/app/test-compress-perf/comp_perf_options_parse.c\n+++ b/app/test-compress-perf/comp_perf_options_parse.c\n@@ -15,6 +15,7 @@\n \n #include \"comp_perf_options.h\"\n \n+#define CPERF_PTEST_TYPE\t(\"ptest\")\n #define CPERF_DRIVER_NAME\t(\"driver-name\")\n #define CPERF_TEST_FILE\t\t(\"input-file\")\n #define CPERF_SEG_SIZE\t\t(\"seg-sz\")\n@@ -37,6 +38,7 @@ static void\n usage(char *progname)\n {\n \tprintf(\"%s [EAL options] --\\n\"\n+\t\t\" --ptest benchmark / verify :\"\n \t\t\" --driver-name NAME: compress driver to use\\n\"\n \t\t\" --input-file NAME: file to compress and decompress\\n\"\n \t\t\" --extended-input-sz N: extend file data up to this size (default: no extension)\\n\"\n@@ -76,6 +78,33 @@ get_str_key_id_mapping(struct name_id_map *map, unsigned int map_len,\n }\n \n static int\n+parse_cperf_test_type(struct comp_test_data *test_data, const char *arg)\n+{\n+\tstruct name_id_map cperftest_namemap[] = {\n+\t\t{\n+\t\t\tcperf_test_type_strs[CPERF_TEST_TYPE_BENCHMARK],\n+\t\t\tCPERF_TEST_TYPE_BENCHMARK\n+\t\t},\n+\t\t{\n+\t\t\tcperf_test_type_strs[CPERF_TEST_TYPE_VERIFY],\n+\t\t\tCPERF_TEST_TYPE_VERIFY\n+\t\t}\n+\t};\n+\n+\tint id = get_str_key_id_mapping(\n+\t\t\t(struct name_id_map *)cperftest_namemap,\n+\t\t\tRTE_DIM(cperftest_namemap), arg);\n+\tif (id < 0) {\n+\t\tRTE_LOG(ERR, USER1, \"failed to parse test type\");\n+\t\treturn -1;\n+\t}\n+\n+\ttest_data->test = (enum cperf_perf_test_type)id;\n+\n+\treturn 0;\n+}\n+\n+static int\n parse_uint32_t(uint32_t *value, const char *arg)\n {\n \tchar *end = NULL;\n@@ -501,6 +530,8 @@ struct long_opt_parser {\n };\n \n static struct option lgopts[] = {\n+\n+\t{ CPERF_PTEST_TYPE, required_argument, 0, 0 },\n \t{ CPERF_DRIVER_NAME, required_argument, 0, 0 },\n \t{ CPERF_TEST_FILE, required_argument, 0, 0 },\n \t{ CPERF_SEG_SIZE, required_argument, 0, 0 },\n@@ -519,6 +550,7 @@ static int\n comp_perf_opts_parse_long(int opt_idx, struct comp_test_data *test_data)\n {\n \tstruct long_opt_parser parsermap[] = {\n+\t\t{ CPERF_PTEST_TYPE,\tparse_cperf_test_type },\n \t\t{ CPERF_DRIVER_NAME,\tparse_driver_name },\n \t\t{ CPERF_TEST_FILE,\tparse_test_file },\n \t\t{ CPERF_SEG_SIZE,\tparse_seg_sz },\n", "prefixes": [ "v7", "2/6" ] }{ "id": 56148, "url": "