Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/56238/?format=api
http://patches.dpdk.org/api/patches/56238/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190708181619.8028-3-arturx.trybula@intel.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": "<20190708181619.8028-3-arturx.trybula@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190708181619.8028-3-arturx.trybula@intel.com", "date": "2019-07-08T18:16:14", "name": "[v8,2/7] app/test-compress-perf: add ptest command line option", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "a338bdfa9dcfcfdf569ab360f1523f7e51f7e201", "submitter": { "id": 1327, "url": "http://patches.dpdk.org/api/people/1327/?format=api", "name": "Artur Trybula", "email": "arturx.trybula@intel.com" }, "delegate": { "id": 6690, "url": "http://patches.dpdk.org/api/users/6690/?format=api", "username": "akhil", "first_name": "akhil", "last_name": "goyal", "email": "gakhil@marvell.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190708181619.8028-3-arturx.trybula@intel.com/mbox/", "series": [ { "id": 5400, "url": "http://patches.dpdk.org/api/series/5400/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=5400", "date": "2019-07-08T18:16:12", "name": "add multiple cores feature to test-compress-perf", "version": 8, "mbox": "http://patches.dpdk.org/series/5400/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/56238/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/56238/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 1A5F91B9A7;\n\tMon, 8 Jul 2019 20:24:30 +0200 (CEST)", "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n\tby dpdk.org (Postfix) with ESMTP id 14CE81B956\n\tfor <dev@dpdk.org>; Mon, 8 Jul 2019 20:24:24 +0200 (CEST)", "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t08 Jul 2019 11:24:24 -0700", "from atrybulx-mobl.ger.corp.intel.com (HELO\n\tbuild-VirtualBox.isw.intel.com) ([10.103.104.106])\n\tby fmsmga002.fm.intel.com with ESMTP; 08 Jul 2019 11:24:22 -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,466,1557212400\"; d=\"scan'208\";a=\"192402029\"", "From": "Artur Trybula <arturx.trybula@intel.com>", "To": "dev@dpdk.org, fiona.trahe@intel.com, shallyv@marvell.com,\n\tadamx.dybkowski@intel.com, arturx.trybula@intel.com, akhil.goyal@nxp.com", "Cc": "Tomasz Jozwiak <tomaszx.jozwiak@intel.com>,\n\tTomasz Jozwiak <tjozwiakgm@gmail.com>", "Date": "Mon, 8 Jul 2019 20:16:14 +0200", "Message-Id": "<20190708181619.8028-3-arturx.trybula@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20190708181619.8028-1-arturx.trybula@intel.com>", "References": "<1562325340-3891-2-git-send-email-fiona.trahe@intel.com>\n\t<20190708181619.8028-1-arturx.trybula@intel.com>", "Subject": "[dpdk-dev] [PATCH v8 2/7] 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 .../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@@ -75,6 +77,33 @@ get_str_key_id_mapping(struct name_id_map *map, unsigned int map_len,\n \treturn -1;\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@@ -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": [ "v8", "2/7" ] }{ "id": 56238, "url": "