Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/54571/?format=api
http://patches.dpdk.org/api/patches/54571/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1560032553-15528-3-git-send-email-tjozwiakgm@gmail.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": "<1560032553-15528-3-git-send-email-tjozwiakgm@gmail.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1560032553-15528-3-git-send-email-tjozwiakgm@gmail.com", "date": "2019-06-08T22:22:28", "name": "[v2,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": 1263, "url": "http://patches.dpdk.org/api/people/1263/?format=api", "name": "Tomasz Jóźwiak", "email": "tjozwiakgm@gmail.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/1560032553-15528-3-git-send-email-tjozwiakgm@gmail.com/mbox/", "series": [ { "id": 4958, "url": "http://patches.dpdk.org/api/series/4958/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4958", "date": "2019-06-08T22:22:26", "name": "add multiple cores feature to test-compress-perf", "version": 2, "mbox": "http://patches.dpdk.org/series/4958/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/54571/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/54571/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 702E21BD3C;\n\tSun, 9 Jun 2019 00:22:48 +0200 (CEST)", "from mail-lf1-f44.google.com (mail-lf1-f44.google.com\n\t[209.85.167.44]) by dpdk.org (Postfix) with ESMTP id 566341BD27\n\tfor <dev@dpdk.org>; Sun, 9 Jun 2019 00:22:45 +0200 (CEST)", "by mail-lf1-f44.google.com with SMTP id y13so4107087lfh.9\n\tfor <dev@dpdk.org>; Sat, 08 Jun 2019 15:22:45 -0700 (PDT)", "from tj-idea-500s.lan (user-5-173-144-53.play-internet.pl.\n\t[5.173.144.53]) by smtp.gmail.com with ESMTPSA id\n\tw28sm1060597ljd.12.2019.06.08.15.22.43\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tSat, 08 Jun 2019 15:22:44 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:subject:date:message-id:in-reply-to:references;\n\tbh=7tgU6qs64B716E7hP1GF5n2LLyCLNfi02XQLdiW5qxI=;\n\tb=D5FTds8avO6WVDSpYxa1BF2bvdHtSrloemTondWdSIWgvmezk00r7Rx0fNXJ7jXmEL\n\t5lN1FG3Ca/fiCowiurhK8SHh8ETpPl3EyHqb7UHKBDdl2Rb9hj5WYdjXrPGRpS4Jcux6\n\tCRXnw028P3yFhZOuGQo+l+kDE00z0+dSdKfk3t/e/wJrWE4HkO8a27nAAzmsu2VyljnQ\n\tGwKd5e4+9iAKDa2JcS1ODVEit3tOs3UgSDNzhD1nKmSMwOwz9GrY9pkOADJW5/aTPS6E\n\t0dwCVgWCHwau4fllfcDhOVyjW64tSegZUAbTrVbo1KZhho/m5+UfqcbNKUquinMJjjfL\n\tlBBw==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=7tgU6qs64B716E7hP1GF5n2LLyCLNfi02XQLdiW5qxI=;\n\tb=kKmdmO6hx0Lt2GAkMGeVHiXB6qpJCr0aHDbY4yfR0MrngZTSL5JrEUhGOvfKEtnyCq\n\tT7T0SSVAblDRe33Ym6dF6tR+AgnozZ7aVGl9ZWrdkoVSMwLRXpgrNwkYgxHs98O3WF14\n\tTIuZE70xtVGIrVyzLfHTzA4umGh1hCJtO6DcLfGB6h9PJOOEusik2xIdxx5aOPGhMNcG\n\tjsBZpT1CwIiEWDrbruNaP8VeDojLQiWl0DL/uObAUjO6mSyppgQ5lwcwsycOlmmEb4/Q\n\tXLyeJbc5VQu9CzouFK5EcxnUQkyZMx68p1HLCOcgddBrsjz1AM9PGW3Qh57DbuspeQaI\n\tDSyg==", "X-Gm-Message-State": "APjAAAVpZUyjutuv44vtV6ATyO2LvffvY3YnPTorh/kNaIU9paeK3vCt\n\tVJ8YuCsFICTDwRjh1M2gd6giIIbuMKk=", "X-Google-Smtp-Source": "APXvYqztGlFf3IpeJvOwllJP4cQ5J1SeSdguSOnxk3cO93+vZs9y+jXbyoS8BrsHXoNa8JcARS/rRA==", "X-Received": "by 2002:a19:a20a:: with SMTP id\n\tl10mr25567995lfe.81.1560032564703; \n\tSat, 08 Jun 2019 15:22:44 -0700 (PDT)", "From": "Tomasz Jozwiak <tjozwiakgm@gmail.com>", "To": "dev@dpdk.org, fiona.trahe@intel.com, tjozwiakgm@gmail.com,\n\tshallyv@marvell.com", "Date": "Sun, 9 Jun 2019 00:22:28 +0200", "Message-Id": "<1560032553-15528-3-git-send-email-tjozwiakgm@gmail.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1560032553-15528-1-git-send-email-tjozwiakgm@gmail.com>", "References": "<1559203588-24046-1-git-send-email-tomaszx.jozwiak@intel.com>\n\t<1560032553-15528-1-git-send-email-tjozwiakgm@gmail.com>", "Subject": "[dpdk-dev] [PATCH v2 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 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": [ "v2", "2/7" ] }{ "id": 54571, "url": "