From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0C1EEA046B for ; Wed, 26 Jun 2019 19:14:08 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 73DD42BB5; Wed, 26 Jun 2019 19:14:07 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 57E49DED for ; Wed, 26 Jun 2019 19:14:05 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5QHA1Ia007121; Wed, 26 Jun 2019 10:14:04 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=UlfhRHUlKAJgR07Ijro5TRWSnrFnWcGu96ntgq1U1kk=; b=M51R9VJ/V5z8n4O+/pzU51AO6QOTZsZxV8Xf0s5pGWsM02xjm7QjJwoMo7EASWVQuQiA 9bpHBni4U++0CiKpgPSggp12QyOpCQn9rKTVh4T+GHFcpe7U61977o6/IXmJThsnGlxL sETboe3HSx13+s3LHNdgenLvfT2cPkeBeVF8ISPluyVIac/wqE30vOwqzUmkXhgCWF1O 0AcLRA67bETNaC1Szdxudk2RBI9MTVpCWdKZ24oY8En/fa9hrC6WluuvIxhH+aqkqg9X rk93tyDELVISc4/kuJld2rU0jv1ntLbVCReM51khmp2roX3JkVpFn5z9cgRIN5vumpKb FA== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0b-0016f401.pphosted.com with ESMTP id 2tcbgc8c49-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 26 Jun 2019 10:14:04 -0700 Received: from SC-EXCH02.marvell.com (10.93.176.82) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 26 Jun 2019 10:14:02 -0700 Received: from NAM03-BY2-obe.outbound.protection.outlook.com (104.47.42.58) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Wed, 26 Jun 2019 10:14:02 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UlfhRHUlKAJgR07Ijro5TRWSnrFnWcGu96ntgq1U1kk=; b=Ag0Sv05l6sYqenXYaD3pjmGaJe8+PCIbY134525Y0i0Y6m6L4YnU18GiQkVWKTzSqhyhiS82J1G3W61o/c6b9l+74NNzVO3tRAQmT8++b5SwrAsEmVP6iYjaYD0yr2Fckom3RAS3wJHSr+AtYkIcD+wAxJEzT0mHUAUjldbigKU= Received: from BN6PR1801MB2052.namprd18.prod.outlook.com (10.161.157.11) by BN6PR1801MB1811.namprd18.prod.outlook.com (10.161.153.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2008.13; Wed, 26 Jun 2019 17:13:57 +0000 Received: from BN6PR1801MB2052.namprd18.prod.outlook.com ([fe80::e15e:f648:497:ea77]) by BN6PR1801MB2052.namprd18.prod.outlook.com ([fe80::e15e:f648:497:ea77%7]) with mapi id 15.20.2008.018; Wed, 26 Jun 2019 17:13:57 +0000 From: Shally Verma To: Tomasz Jozwiak , "dev@dpdk.org" , "fiona.trahe@intel.com" , "arturx.trybula@intel.com" Thread-Topic: [EXT] [PATCH v3 2/7] app/test-compress-perf: add ptest command line option Thread-Index: AQHVLDyFlQIDW0knw0W6yO/0JIMSxKauLGHg Date: Wed, 26 Jun 2019 17:13:57 +0000 Message-ID: References: <1560032553-15528-1-git-send-email-tjozwiakgm@gmail.com> <1561566633-12329-1-git-send-email-tjozwiakgm@gmail.com> <1561566633-12329-3-git-send-email-tjozwiakgm@gmail.com> In-Reply-To: <1561566633-12329-3-git-send-email-tjozwiakgm@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [171.49.225.231] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 23c1a529-c5d1-4957-005e-08d6fa59ac90 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:BN6PR1801MB1811; x-ms-traffictypediagnostic: BN6PR1801MB1811: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:765; x-forefront-prvs: 00808B16F3 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39850400004)(346002)(396003)(136003)(366004)(376002)(199004)(189003)(13464003)(7696005)(446003)(5660300002)(11346002)(99286004)(66066001)(476003)(76116006)(73956011)(66946007)(66476007)(66556008)(66446008)(64756008)(2201001)(86362001)(102836004)(55236004)(53546011)(6506007)(52536014)(76176011)(186003)(26005)(8936002)(6116002)(3846002)(33656002)(55016002)(68736007)(8676002)(81156014)(81166006)(316002)(478600001)(256004)(14454004)(14444005)(74316002)(305945005)(7736002)(9686003)(6436002)(110136005)(486006)(6246003)(53936002)(229853002)(71200400001)(25786009)(2906002)(71190400001)(2501003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR1801MB1811; H:BN6PR1801MB2052.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: E150C+SvgWByVHZBACQheu2xOEBLz8OTIXxF8AorYfP7QGkDlaWWbKDo64ZmnBJZExRw/jNn1hLrcZFeJ1zgDgXs00R28Q58xz8loI+pjCPmuxVOKvNZdrpTOHuEW9peEZ2OLmwS/MmjxrUHlVDi6Y3B8Ik0Msi85Q++jqBE+JYVH9mlrVNNK0kb69HjpmoYL4EAFErYGvqMcGUKf0eNsMXWhVOcYkiTNwNWS1k0uLL5ddhfDPz9B1HpiEoJNR2ZVz2PzYlcwft8aXhGO0TzjN8PolJs/gLpoE/EzMh5pEu0nhLMPL/fTFJeCk6eQg7tHp3XHxmO/ufcmtGfb4LUihkNQjZojWxcMvVr80gSAceXxAc3qaFPCr12GZqVYdMPA1NYQfesYCQ+oTB61Tugbs1Kf1mfXIwR88azHkYXXas= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 23c1a529-c5d1-4957-005e-08d6fa59ac90 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jun 2019 17:13:57.2846 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: shallyv@marvell.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1801MB1811 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-06-26_09:, , signatures=0 Subject: Re: [dpdk-dev] [EXT] [PATCH v3 2/7] app/test-compress-perf: add ptest command line option X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Tomasz Jozwiak > Sent: Wednesday, June 26, 2019 10:00 PM > To: dev@dpdk.org; fiona.trahe@intel.com; tjozwiakgm@gmail.com; Shally > Verma ; arturx.trybula@intel.com > Subject: [EXT] [PATCH v3 2/7] app/test-compress-perf: add ptest command > line option >=20 > External Email >=20 > ---------------------------------------------------------------------- > From: Tomasz Jozwiak >=20 > This patch adds --ptest option to make possible a choose of test case fro= m > command line. >=20 > Signed-off-by: Tomasz Jozwiak > --- > app/test-compress-perf/comp_perf_options_parse.c | 36 > ++++++++++++++++++++++++ > 1 file changed, 36 insertions(+) >=20 > diff --git a/app/test-compress-perf/comp_perf_options_parse.c b/app/test- > compress-perf/comp_perf_options_parse.c > index bc4b98a..07672b2 100644 > --- a/app/test-compress-perf/comp_perf_options_parse.c > +++ b/app/test-compress-perf/comp_perf_options_parse.c > @@ -15,6 +15,7 @@ >=20 > #include "comp_perf_options.h" >=20 > +#define CPERF_PTEST_TYPE ("ptest") > #define CPERF_DRIVER_NAME ("driver-name") > #define CPERF_TEST_FILE ("input-file") > #define CPERF_SEG_SIZE ("seg-sz") > @@ -37,6 +38,7 @@ static void > usage(char *progname) > { > printf("%s [EAL options] --\n" > + " --ptest benchmark / verify :" > " --driver-name NAME: compress driver to use\n" > " --input-file NAME: file to compress and decompress\n" > " --extended-input-sz N: extend file data up to this size > (default: no extension)\n" > @@ -76,6 +78,37 @@ get_str_key_id_mapping(struct name_id_map *map, > unsigned int map_len, } >=20 > static int > +parse_cperf_test_type(struct comp_test_data *test_data, const char > +*arg) { > + struct name_id_map cperftest_namemap[] =3D { > + { > + > cperf_test_type_strs[CPERF_TEST_TYPE_BENCHMARK], > + CPERF_TEST_TYPE_BENCHMARK > + }, > + { > + cperf_test_type_strs[CPERF_TEST_TYPE_VERIFY], > + CPERF_TEST_TYPE_VERIFY > + }, > + { > + cperf_test_type_strs[CPERF_TEST_TYPE_PMDCC], > + CPERF_TEST_TYPE_PMDCC What is PMDCC here? What kind of test type? > + } > + }; > + > + int id =3D get_str_key_id_mapping( > + (struct name_id_map *)cperftest_namemap, > + RTE_DIM(cperftest_namemap), arg); > + if (id < 0) { > + RTE_LOG(ERR, USER1, "failed to parse test type"); > + return -1; > + } > + > + test_data->test =3D (enum cperf_perf_test_type)id; > + > + return 0; > +} > + > +static int > parse_uint32_t(uint32_t *value, const char *arg) { > char *end =3D NULL; > @@ -499,6 +532,8 @@ struct long_opt_parser { }; >=20 > static struct option lgopts[] =3D { > + > + { CPERF_PTEST_TYPE, required_argument, 0, 0 }, > { CPERF_DRIVER_NAME, required_argument, 0, 0 }, > { CPERF_TEST_FILE, required_argument, 0, 0 }, > { CPERF_SEG_SIZE, required_argument, 0, 0 }, @@ -517,6 +552,7 @@ > static int comp_perf_opts_parse_long(int opt_idx, struct comp_test_data > *test_data) { > struct long_opt_parser parsermap[] =3D { > + { CPERF_PTEST_TYPE, parse_cperf_test_type }, > { CPERF_DRIVER_NAME, parse_driver_name }, > { CPERF_TEST_FILE, parse_test_file }, > { CPERF_SEG_SIZE, parse_seg_sz }, > -- > 2.7.4