From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0083.outbound.protection.outlook.com [104.47.38.83]) by dpdk.org (Postfix) with ESMTP id C9AE27CCE for ; Mon, 3 Jul 2017 21:15:59 +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=nP+ChzFiFuvxnN+UHtpoUzHHkGVhpRyRZwRsPXIDG3bYysgdExHJ6LYSaHh6/clN7X6gSblqJ94w9q9WdZdD+8BivHmwrMHZ2KzEbub5LpSP1uQLyUAH4I5nWV8HV+hbu1JXfiHI4ZJTDmJ/PSaoKFLf9nfebz2Thz4iBBnOS8c= 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 (111.93.218.67) by BLUPR0701MB1716.namprd07.prod.outlook.com (10.163.85.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11; Mon, 3 Jul 2017 19:15:55 +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 00:43:48 +0530 Message-Id: <20170703191402.3638-21-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170703191402.3638-1-jerin.jacob@caviumnetworks.com> References: <20170528195854.6064-1-jerin.jacob@caviumnetworks.com> <20170703191402.3638-1-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: PN1PR01CA0103.INDPRD01.PROD.OUTLOOK.COM (10.174.144.19) To BLUPR0701MB1716.namprd07.prod.outlook.com (10.163.85.142) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6c48629e-22ba-4ec7-37d5-08d4c247efd0 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:BLUPR0701MB1716; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 3:FsYDfttLBHunlEE+oTxLhZ4e6lrLV/2+Wdl5WVdB1NUD8VcbuGrvyMtgECjU3B91KuadDNI5iwk3JiiEGMGFySI6YteJWYG3g33MK8DS3r2+U1TzwC3l6s/IoXfwfvDczGt1aTO4+IlY2+0c/beX8JcfpmCBBXFfKk64OkHwtr/83rAcFeQnhi/fOxb81SlRomOWx/mgeoya58WzNN8rQdoUVNXTXhmpqwwAGcPn++VRQfvRjd/8+Ixc+Wd/ik9KyGIS63hwz4eO6iWfSewKeF2amoHk1abY+wNIkQiiVSyj43/Evr4WCAwSQ1nDWSBbCPPeH1uT8tyUo2Ych8nPOLlL3DA4sMoN6bJLJPHnWx/OI3zIfaUbS+CexfNNV/Dw1/eneGG4HL0qrn34XXYwCX71oKyBj3i1zSDy187L/OXeix0B7jVTW1fW1X2CPSL6gSsBEMWcrN9Qs/KoktoEME2TLf3HPSH+isLz3CczkDjUCBuezi3P3wAqD24WGBloOEfcbebKiDaUmxocEKnRNY6eaZ5lmMLtkloeiNsXrQ3GVEMGnXCEl0bMYrsyPqPsq5jdNbcTsPJ7JCL62sN+Y6Z0nJ39e6eEytSlf/P5tYp1aDT0V4+xMdibSfmzY1QmV3S90l2JClgc3Cf43q+7Fp7p9xmni7IkEVMAwB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DMp8n9wWDdZ3Q+2VjFBIDyDaC1MTFabn2K45bGWVVnrlpljDUPcuK44rmpCthw7iMYPihUimNDcTQ5dirV0k10CHdwYQ+nEbyfOVP5LZD8Cb/9BwpVPh/DrUGhYQaOBE1UuJn6Rsx8csC5f6cMZ5bpS2rwOSrdFhcfnrwxbkaH0q1PrkJ4yGs7z4h2AHqlLBCqmehIceOWDM7V2CHefWmzEL4xGg04E3NqcG3I+CU2UtaqUhKjm0rwW0LAuph5zCsq6YVOBxsoDjJvnGr7aIqm6y3zQgM6Irdklujyg2B38YQJfu/r9UTMoNKT0DyLql/32exlUsWri92LPcw= 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)(93006095)(3002001)(10201501046)(100000703101)(100105400095)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123560025)(20161123555025)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR0701MB1716; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR0701MB1716; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1716; 4:E589es6DZEDsk1LI9lf4bO3w9hsGkXiI0ZbyoMGd?= =?us-ascii?Q?CQ5Hc88t3rsunFamCWPRgb7ysUgoRDzCWv9iYNSZ2VQajVZA4hWMbcdknsB2?= =?us-ascii?Q?iWpZiDmyBcFY6TVr9rZ2kmkSSUrKnfzs+HbOKM0FLunHQ0oILzqY2vmgXfLb?= =?us-ascii?Q?AxGptELsS/um0c26FpfalgAP4QjQLVKnL8xjP01fBglbn83I43EbkFqdv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HbgwEa5L/aX2TcFuGYJly?= =?us-ascii?Q?epsI7ZzYYtEcC92HgfYcx6UvUv06UgGn3HDasGymbdqBsTUbb59VQuxaMxHk?= =?us-ascii?Q?696IdoA8vvUg5KxMNK1JnlT98Ps4bRQhTUxnhCZUf+TSU4GLJ2xYZAH13Ks5?= =?us-ascii?Q?IZ7anJnlj/IIrSR1vG4=3D?= X-Forefront-PRVS: 035748864E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39840400002)(39400400002)(39410400002)(39450400003)(7736002)(478600001)(53416004)(72206003)(38730400002)(110136004)(107886003)(42186005)(8656002)(50986999)(76176999)(36756003)(6512007)(53936002)(4326008)(25786009)(5003940100001)(6916009)(42882006)(2950100002)(66066001)(5009440100003)(6666003)(2351001)(2361001)(6486002)(6116002)(189998001)(305945005)(33646002)(5660300001)(81166006)(8676002)(3846002)(47776003)(1076002)(2906002)(50466002)(48376002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1716; H:jerin.domain.name; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1716; 23:lVZo62vv2GrltUurJ9Sjotyulw2DDpnqwkYU2jc?= =?us-ascii?Q?D8cEBi353M6tYcTVM6a7gOU59BiRwh2sUYuUKv9je8bCZ6o6xmTixl7EwCPO?= =?us-ascii?Q?E6ARQeSP+BB6a6HFLiZKnelAyZXJ+NYewr3f9RsnVrg6R/aTOGy2zT5fxnn9?= =?us-ascii?Q?Z8oqOmPQUETem57hwKyRNKyrqlTcIGtMf8XFYtsMgvLTShB8sRp6dfpdW1jO?= =?us-ascii?Q?5aCCtKyJu+7lLFO5D4kNzt38OJA1pi0Kt+mSN7caHd4mJeYPU+BmvwKEffkA?= =?us-ascii?Q?Ab47A4VtmT563/ZWZLpepR18TyHnhgvNOzredyhBz5lWOC8yKo0ZHP99XIMp?= =?us-ascii?Q?FWAiQ9Tr+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ascii?Q?pziWQiMBruCkPbOpZF95JccZWFyTIG+kOR6vfpgQ7R8S3AJCqgorYLSkmA/b?= =?us-ascii?Q?wUnh2T17jM4BUF7AUS3QVdCQCPPOqzcqu1a8r+vW205OghJJL9/ysFiKlC5M?= =?us-ascii?Q?ubY=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 5:3/L2s5qCO3jaG7iksSIboZCfUNRoD/a+zXAUhrB8t61tmpEbmTF9cDdrV04rlh+xIsRe3WtLoxmb097VHQDlJ+YClcozszdK6igihxflG2xXE0MYdiSfS/PrBqKTjClMjtgQtP+RYF/EvjO1wEQlXn6urNvkcVsxDXXNlRBCRc2g7UVnDsSsahIL4tChwTfMTTpez3nDqWlE5TZ2BC5cJN3YZvFmQ6QErvZSYLvjFijgPRdAHEIMHoV1dn/suWgtd/FrROH+PbTdBMUqP/vHXBmKTw7qK2MGC+ryRVtAqeniDEWAWQom80BXPSMtdOl4e8zMU6I3muKIvhPhdPzvWAdCmx0NCB6lKv5lfRhV0+Om6zwgxCeXXZ0A/9n2zEEINKrWjK7RYC5RfMAwo9AZWAhqw8/Ai3kkmVLJhaq4AaWYee/k2zNwieKr+vvTQOyuSARxfNvDePsddrWO/A/orvFnjJq6V5lV5H0H4cHcxQTUAaB0LdAFADvz22jh8jTh; 24:MiRFskhDNf8k3ukK39JaEfR9p78zYoyCfGlCOq4KWdDS2clicHsPpFD9fOxuSr9/nAPrSBQrPVFBE3PYgX6odP3GRxe+JRMqlz4BSFkU/Pc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 7:NoqqREdrPSFlZ2GIAskZHTUu7rMh566reMU9K2CGJNi9hSQZZzvrGj8ccSUVN7kTyfNVcm7T7RW9aA5savof+YPCEptsDPYKsa1NGHWoh61m+sFwaadvS4aB8hebvlJc38ZA+7XyRVErVEQlSM4JZ51JixF0F7DPorakFjAuRlXtbdzdsk16I7kvWgL5wKs93A5sauJsJSlOzUF57uV3fPCYpT4Gl84p4fSEUVx7HRbH6XBvYL6KE76n1iFZuviCMBREwrs+SflE0jtXo0hIb+bDTLoTEU6kvWiRZn0p/vYiya2kMJssiIGcl83g9GWIGRRqGMO2w2GlymebCEfpJjQ2VYNeZYos9hjDg6tEuThZvhzGQQR8IYdQEwXJNAHc9Ia249XxN7DM2Da26yqw8kwzkqszAP06RpGJhCZuN7H/r96MQqkKzyJquYSUtXv7HFDL4cTZtW7XXNUZvpYDuSKQR1VELCwhw1L7P8IaEpTxLPgLe4giGoXV0Fp0R9PbV0LhvlilP6Y9ww2ho2TQqZGi0A+XncZsuhjsmGUooCkrmYVEl5DnO3g6/2gOGjhnUpet07c5bhxZKtqXUcVDNsXY7EdQcXp0xRD8amWMPlKZbS2xhgujHXd+an0YoZDtx/nRDMW7g9RDftSlOpeZo5E+2hj4Sa1ficI1jxghioiLZi8N/zAOLXL9QGHn5pvSPyS4sI8f53bDpp3FEuHZxNJrr/wTGcz1L4Ne07sUHIQeAJ3YoGM5EQJiKZ8Zhf8DLobLCb/l6vKTZe58Je2ro/o0vCOGmee/5SQ9sxhvL7c= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2017 19:15:55.1698 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1716 Subject: [dpdk-dev] [PATCH v2 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: Mon, 03 Jul 2017 19:16:00 -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