Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/53885/?format=api
http://patches.dpdk.org/api/patches/53885/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1559203588-24046-3-git-send-email-tomaszx.jozwiak@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": "<1559203588-24046-3-git-send-email-tomaszx.jozwiak@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1559203588-24046-3-git-send-email-tomaszx.jozwiak@intel.com", "date": "2019-05-30T08:06:23", "name": "[v1,2/7] app/test-compress-perf: add ptest command line option", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "f8be9a662e1db391c1dc6843b6d6855b8339fcae", "submitter": { "id": 949, "url": "http://patches.dpdk.org/api/people/949/?format=api", "name": "Tomasz Jozwiak", "email": "tomaszx.jozwiak@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/1559203588-24046-3-git-send-email-tomaszx.jozwiak@intel.com/mbox/", "series": [ { "id": 4821, "url": "http://patches.dpdk.org/api/series/4821/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4821", "date": "2019-05-30T08:06:21", "name": "add multiple cores feature to test-compress-perf", "version": 1, "mbox": "http://patches.dpdk.org/series/4821/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/53885/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/53885/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 621171B955;\n\tThu, 30 May 2019 10:06:43 +0200 (CEST)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id F11BC1B94A\n\tfor <dev@dpdk.org>; Thu, 30 May 2019 10:06:39 +0200 (CEST)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t30 May 2019 01:06:39 -0700", "from tjozwiax-mobl1.ger.corp.intel.com (HELO localhost.localdomain)\n\t([10.103.104.46])\n\tby fmsmga001.fm.intel.com with ESMTP; 30 May 2019 01:06:38 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Tomasz Jozwiak <tomaszx.jozwiak@intel.com>", "To": "dev@dpdk.org, fiona.trahe@intel.com,\n\ttjozwiakgm.gmail.com@dpdk.org, shallyv@marvell.com", "Date": "Thu, 30 May 2019 10:06:23 +0200", "Message-Id": "<1559203588-24046-3-git-send-email-tomaszx.jozwiak@intel.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1559203588-24046-1-git-send-email-tomaszx.jozwiak@intel.com>", "References": "<1559203588-24046-1-git-send-email-tomaszx.jozwiak@intel.com>", "Subject": "[dpdk-dev] [PATCH v1 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": "This patch adds --ptest option to make possible a choose\nof test case from command line.\n\nSigned-off-by: Tomasz Jozwiak <tomaszx.jozwiak@intel.com>\n---\n app/test-compress-perf/comp_perf_options_parse.c | 36 ++++++++++++++++++++++++\n 1 file changed, 36 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 bc4b98a..07672b2 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,37 @@ 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\t{\n+\t\t\tcperf_test_type_strs[CPERF_TEST_TYPE_PMDCC],\n+\t\t\tCPERF_TEST_TYPE_PMDCC\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@@ -499,6 +532,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@@ -517,6 +552,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": [ "v1", "2/7" ] }{ "id": 53885, "url": "