From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0051.outbound.protection.outlook.com [104.47.40.51]) by dpdk.org (Postfix) with ESMTP id 320E77D1C for ; Tue, 4 Jul 2017 06:55:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=/OA7gL/CbhRnxqYM+0RBjJOoFRr84wsLQqMjPNrEcMc=; b=fTyEFopAHbtw2yymAU59hq0ED+ojDOgFHqgwT6wR9GEeRwLhS5l6HDsztNj7Dtbyq4pn5q7yTe4NAQ5ORwhYMBB9DS8/1INr79Av66xGTF0kOyOQgy3IjTNrHhJztlWBExSF8QNcyUF6xoG8v3wRRhvzsO9ua6vpI3qoxPJQa6Y= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from jerin.domain.name (106.200.206.49) by BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11; Tue, 4 Jul 2017 04:55:14 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: harry.van.haaren@intel.com, bruce.richardson@intel.com, hemant.agrawal@nxp.com, gage.eads@intel.com, nipun.gupta@nxp.com, narender.vangati@intel.com, nikhil.rao@intel.com, gprathyusha@caviumnetworks.com, Jerin Jacob Date: Tue, 4 Jul 2017 10:23:15 +0530 Message-Id: <20170704045329.24711-21-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170704045329.24711-1-jerin.jacob@caviumnetworks.com> References: <20170703191402.3638-1-jerin.jacob@caviumnetworks.com> <20170704045329.24711-1-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [106.200.206.49] X-ClientProxiedBy: BM1PR01CA0106.INDPRD01.PROD.OUTLOOK.COM (10.174.208.22) To BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ccc8f6ae-e917-4895-3824-08d4c298dd80 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 3:VNAfwTemu7KrnQmBsFchMPRzquJMiQb0NI7ZfzneBwyz4ESalz3f6PvsEowcQ2Cfjf4AgNgy/U6by5PAVGOMUL0fxiUkb7h/0zH4qudAw95/AjFEGO8vxwERXPVQYmxOW9HMtqtkVJBD1VzXvAC1CqsnVFsBnkEJCUMN7fSMrRaIvO/uLyjpRa4tXoT62FxP4eD118K/F6yBiehZRjIjlCvXIpK9llnFDANHihTDEqqUavBREEpoRF15t3/4K1bFokP9KNME5zRzMgwo4iTZ5M+uS4KrgEi0FySZIjEwpkPQi+uV9ubQ8ZuDRRu/uaRDWPHv0mmqO2B36uydgT/YGjxqa9KaDQgtfPsWauYdMITDHG+l6/GwpYYnBmz+fhBEMAijpe9z6jXzdu5WEGRcjfh8YrMjnczMrx5URRASOOz13l0vkvps+Cu7u5Z+dOsNoQalUyGKrmpiHS9XHqFGVIXOR4yJWtVCdsvRY2SEKg8+dviFjRpoQpL7GcMKU7bqk4/b1r6r15DKbQ6HTRT4WzXbZ3qUeReQklWfyYxgh/i/AN8hPdfmpZqh9Vi90/heN7l62PAUnyYHmdxaBrNcznoSsWBkW0yQWgE9rSRANzjJbRHvij+4Oh/hOYa3KeSK0bnE+cwaQNn076r7ubRXREphI5741Tm1gSPAQyCGBIVo50zZhP7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DwhLAheWzpj0GD05OJNmm6ZXcCu/oFM5GmyG+4eo1jPmBr9EVh/Zf3on5siOXLI560wJPqhXvYxNngx0GEpGs0mpwaUymk/nmhFrT3dsc+bmV3Ax8hEfYZI773SRKXff01vXkq5AAlQXgiZNOrCBlicu7yiev43WzPhGeEz8FiLL79gHe4A0CngiyKo7s5kdORT3rop1lmFtk7QIy/Y7DPFTCRqIRNTuOptxuMkecBmhbBS1iTtiOuUlhxCFR8muNMyn02Eof+OdxETxLHPhKxmerZpqmVzWIYOcySpaeK9TvY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(131327999870524)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(93006095)(10201501046)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123560025)(20161123564025)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR0701MB1714; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1714; 4:vhqj99XXRQhiRiMmPEFuwJfHSZcYkENVSo+o+pEN?= =?us-ascii?Q?43F3ohaGiJglFde8pZpeINHE21yDyR83107d0Uktw3vRfvpAWCxtGOexsP7j?= =?us-ascii?Q?cyceBJt3BXx+m6j1b3eKZW5nBu2fTRZS46PU6hfEPbLr7cCzDx928Tx8iqH4?= =?us-ascii?Q?PMyr+1ZcqcZOD+E04qaiZX8Kd+wC7neykHoKuxgcJjgbVs79NfSLRZPQbtpD?= =?us-ascii?Q?7z2DD0FZBZDJxVMiKZPhhCfgM2104iI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-ascii?Q?srMDCXnrd/Dc+e5leKkTufHpJQKAKDDOFqsD1jE3IjdXU8BbgroCnCxwK2cM?= =?us-ascii?Q?tHZR0ieyCvCEGc7PGpw1880cI5brOTj0eTG4z0kOAe70r87+bSf1H3O6/8z6?= =?us-ascii?Q?tYp8gCNL7++9H9Ygxoo=3D?= X-Forefront-PRVS: 0358535363 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39400400002)(39840400002)(39410400002)(39450400003)(4326008)(107886003)(38730400002)(6512007)(42186005)(6486002)(8656002)(6506006)(33646002)(53936002)(25786009)(6116002)(6916009)(1076002)(5003940100001)(3846002)(42882006)(47776003)(2950100002)(478600001)(2906002)(66066001)(8676002)(50226002)(48376002)(81166006)(7736002)(110136004)(2361001)(2351001)(5009440100003)(189998001)(5660300001)(305945005)(72206003)(53416004)(50986999)(76176999)(50466002)(36756003); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1714; H:jerin.domain.name; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1714; 23:IhYR1wXP0DIqx7A1X4c5ed7odB93zYyewIQPURg?= =?us-ascii?Q?QaRgknG+WkJcggsjHo9WLvFeSSNXlabTOBzZecJS9RKxLQPJBRgHHHP1OTuK?= =?us-ascii?Q?eZBfALHMjtgPYw4Zg/9JC8HshbfpT7ZBYihe8bwXYR98qiY2Gn0WEuHvl2iJ?= =?us-ascii?Q?GRiVpiSeTL2ae9ocMXeTil//Ki4JwBRdeyG/xXuj/57E0ApukoPXOvRwfkkW?= =?us-ascii?Q?BikjRbqigYc7TJrpOG+317aOb/WVgJGVpe4WyOZ4zPizcLiZEjpYpO4BHSPp?= =?us-ascii?Q?/9h1+a1mHLH0RT1RHbjmSGodkm7oea5VZC+jw92oVrcGNCeyEHKswfKMkggE?= =?us-ascii?Q?KuJXRaf5fPJKxLQvwvK6I+lj97xNwGTc3WV/p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Q?IeO3l4TW84hE2ZtFlziyFKkqg1empiMZophonz3ewzukUqZqO9c0jdVQp1Yw?= =?us-ascii?Q?sC75DKFJoQ7rKHpp+cz18UYA39de+F6Kn6Ja5e2y6QlGManeM01nl5DU+vWp?= =?us-ascii?Q?QVY=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 5:nih3YIm6RSOqJncSZVSmP6th/JfWzlxbNW2LEnYS91bFjsmAm33JpnFJndgyBbtIcujHnXIfJMB0ZJIZ+zLxGy2n48x/U7K4hBVxqt6f4qprUbwO5PzhkPKxUGId2ayTwd/MZlmhl/N97xI1Op6eNuym5JbQ4hWyiDKTbildmPlH0MZ6CZbBEP4rj+f/akpTdTGFXP0gc71+1loviI04VkoPnpXgvE6qxBorGBzwp/DQTwVcmsF9E0CdoKFAu72qn8C2mQdphHtE/9nG5U43ve+tQkMYQ6MBlC01W4JMUT4wHEY4ftD4qLgBdM3qholuLUZ4Occ3PqN918HoVwntQnpLhfqOA3njnLwJSsaRhloOGX6v3WsB62yVIJQn4sobba2Rh/ZHUBg7FGHGWIIhUal2IcwoH77fQIHZ5CmlsB3RJ+u49K5CIhR8Ar/ZRXbWzjHyUgftSQFn50//64diCvXV3OZ/gvyMv20cstqeSA62S9gpkb98A6dDqwVhh0W3; 24:HBOS2zkNRKUM/CKT8LbioHfP5MxVU+DwLpmHd1yc8aRR40XB4cAR7vVGMLtdGE3q4BxdOhMf7rxB6psQjNHTwJIhvjkG7lbxrCO7RGVsoUs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 7:TYpol+hURtDJm0o/FIAJtDo0hbHTe4sE/AyBw/D9w+7eSxr+BAVjC3Ialy23zHjX9ViIhaZRzjQEzeb42jwS5suiY654iCJZ1ambEuYA50CY/K8az4NfQLA29UquwP5W5z+Qvlv5F1ASLssn5W1wTYLA4KWcSe07pgX1nc3kDm8IpY+BUZeWOGl4FnWuD+j2fa1nucQU/2XaKNVxVL1e8Aj4DBT0ZTS7lkDQpJds5FDvorFaMvroCIleIzhVVSlK7M0eoTa6iyGQ/WGNQPMtwEuIr5bxiAYYfL4lVJNDqJiacXQcp2+m+QPvVaDJfRL0e2xHlu82QZUKfa9KEwzwiAaE7IE/OxPj1hFS1I5KzZPbVSDlsMZB22RG3KflXGFM6gy2zGQHp7DPgFUOjDaaObvlkmWIhrEcXv4+m2vtolnz0gInrFChudYmq/C37xi4dvTbT0TPCbjFSqwOTy5CewO26dlSdJXUiWJr5zoL8ib78cm+PXyHcL0LkojF6pyZaP79JOm/MxT6RS5SvBFJwcI1f1rO/coT4scjhriheZgrTKmrLLkOFVyoVzWxBQcLPUlBBGKsgf9LUI4OXdPIJXXKFWy83JDTfHHU0UpMZYmeTuWto6tNroQtGe76554hwAd0xN4PwuEdLueW4w5OI2xq3AD9bu/YpTrdokOQ0aWX+aZnV4u74VMjIHgwdfvPtVhF1AsMNpho8qMVwRTxoprfi9WoA/8eybDBGapFNx/D0SP9LduNX4okdMx+I1xiyAFhHFqRTpO8ISgyt1/OVh0a0vBFk6Dn8xEHBPJ982Y= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2017 04:55:14.2590 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1714 Subject: [dpdk-dev] [PATCH v3 20/34] app/testeventdev: perf: add basic functions 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: , X-List-Received-Date: Tue, 04 Jul 2017 04:55:19 -0000 add functions to create mempool, destroy mempool and print the test result. Signed-off-by: Jerin Jacob Acked-by: Harry van Haaren --- app/test-eventdev/test_perf_common.c | 53 ++++++++++++++++++++++++++++++++++++ app/test-eventdev/test_perf_common.h | 8 ++++++ 2 files changed, 61 insertions(+) diff --git a/app/test-eventdev/test_perf_common.c b/app/test-eventdev/test_perf_common.c index d95eb6252..a44f2df5c 100644 --- a/app/test-eventdev/test_perf_common.c +++ b/app/test-eventdev/test_perf_common.c @@ -32,6 +32,59 @@ #include "test_perf_common.h" +int +perf_test_result(struct evt_test *test, struct evt_options *opt) +{ + RTE_SET_USED(opt); + struct test_perf *t = evt_test_priv(test); + + return t->result; +} + +void +perf_eventdev_destroy(struct evt_test *test, struct evt_options *opt) +{ + RTE_SET_USED(test); + + rte_event_dev_stop(opt->dev_id); + rte_event_dev_close(opt->dev_id); +} + +static inline void +perf_elt_init(struct rte_mempool *mp, void *arg __rte_unused, + void *obj, unsigned i __rte_unused) +{ + memset(obj, 0, mp->elt_size); +} + +int +perf_mempool_setup(struct evt_test *test, struct evt_options *opt) +{ + struct test_perf *t = evt_test_priv(test); + + t->pool = rte_mempool_create(test->name, /* mempool name */ + opt->pool_sz, /* number of elements*/ + sizeof(struct perf_elt), /* element size*/ + 512, /* cache size*/ + 0, NULL, NULL, + perf_elt_init, /* obj constructor */ + NULL, opt->socket_id, 0); /* flags */ + if (t->pool == NULL) { + evt_err("failed to create mempool"); + return -ENOMEM; + } + + return 0; +} + +void +perf_mempool_destroy(struct evt_test *test, struct evt_options *opt) +{ + RTE_SET_USED(opt); + struct test_perf *t = evt_test_priv(test); + + rte_mempool_free(t->pool); +} int perf_test_setup(struct evt_test *test, struct evt_options *opt) diff --git a/app/test-eventdev/test_perf_common.h b/app/test-eventdev/test_perf_common.h index ab5c082f5..442ec99b8 100644 --- a/app/test-eventdev/test_perf_common.h +++ b/app/test-eventdev/test_perf_common.h @@ -82,7 +82,15 @@ struct test_perf { uint8_t sched_type_list[EVT_MAX_STAGES] __rte_cache_aligned; } __rte_cache_aligned; +struct perf_elt { + uint64_t timestamp; +} __rte_cache_aligned; + +int perf_test_result(struct evt_test *test, struct evt_options *opt); int perf_test_setup(struct evt_test *test, struct evt_options *opt); +int perf_mempool_setup(struct evt_test *test, struct evt_options *opt); void perf_test_destroy(struct evt_test *test, struct evt_options *opt); +void perf_eventdev_destroy(struct evt_test *test, struct evt_options *opt); +void perf_mempool_destroy(struct evt_test *test, struct evt_options *opt); #endif /* _TEST_PERF_COMMON_ */ -- 2.13.2