From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0076.outbound.protection.outlook.com [104.47.36.76]) by dpdk.org (Postfix) with ESMTP id 835BA7CB5 for ; Sun, 28 May 2017 21:59:38 +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=6PKoFNAiEP7s2I22Eg8isj6jVzPlVn3WZhWPr8iRnTM=; b=cJXJhyanjpr8e9vQjW+ciV+b/4OsRpFUxQAJOQ8rOtAQGOCmy/NrA2SHK2kckj4QptqX8Jq0mYulczMHtcnrpg4Ip+7ZlfJvnAYrrVXTaYBbVviksCdGbIsoSHLqlic7XlT2eNtcms2VbcgcsgMYHo5ffosHu+U9PdOTNbCJrKU= 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 CY1PR0701MB1725.namprd07.prod.outlook.com (10.163.21.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Sun, 28 May 2017 19:59:33 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: bruce.richardson@intel.com, harry.van.haaren@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: Mon, 29 May 2017 01:28:22 +0530 Message-Id: <20170528195854.6064-2-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170528195854.6064-1-jerin.jacob@caviumnetworks.com> References: <20170528195854.6064-1-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BMXPR01CA0003.INDPRD01.PROD.OUTLOOK.COM (10.174.214.141) To CY1PR0701MB1725.namprd07.prod.outlook.com (10.163.21.14) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY1PR0701MB1725: X-MS-Office365-Filtering-Correlation-Id: 5f0c1bc4-4574-4d6c-b9e3-08d4a60411ae X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:CY1PR0701MB1725; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1725; 3:xAaHeyEBu1mu3OuwNfMA70SQvP99CwNbKCSX1hAT1TFhLjDOJOn3iAn8X1yhl7ikmMQSxHz5RzVMYmXaOday+ncuoYOsRVWCRcRfjkLz76m6/nGTBBxV1ZXqNRYFoa4tz96TppWGlHtCMRfOc3l7VbocznbAw8PrcSAvHMWevJuNlU+mFoElUhH3y6GzK/6ROZqVLzD7TeIVZx8UOKLKsYvn/ALS0Yg0v5Jr7570emz6YxfCJycFej97+vuXqofvaPYZ8T5l4IydH4ypuISJFnl6sIpgja5kVkx/5+GKGLPqYESskNSF9a9gTsd9j/5vrEtwtj1XwDQWV+9u8e7Afg==; 25:OTlOsvPKL2ODyfSXST4hCpYz3UNVCgh7S6ZVZ1e5TBijosy77TfcGaPCgNguhs2mCZfcStJEQjWm8/O/qbOag+fJje+VyFHoLFus8sVqEqjzHxh+Erl9Z0attdNchs2AYqc1adxJ/jX1aMA3HlY71zAiHZAf9i2mkYHFXIzV9dee3co+JyZmeKDjaWkkmF1EkbiIdAawaaplnNPBjNZR7sycwHOmHkBU/EBxQmX3rJ1FOzPlLikJ8jN1kjyyI/nyGsDxZKjDAmGjuJAcn2WTBXAL36zryKxApwX2Kj6AcEOcRxVz0/1vLXpGflOSVwFN+i4ZUfHd7Isvcc4BozHVrqO+CoAkNbDEPywdN928zchIetkvJYbdcbGUyxpEhR0X55GGK8rEk/AXWQQQF36nSSmcgpqQdZT+LYKbgowZ3L/l/1cNSF7RnPg6t2msMqcdiF9jwyZFsXcQ79IeX+DrqsUZd+QdmJWiehGK1NFab5Q= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1725; 31:F3B4UPgxRiONkl+JYoT+Ke2LIjybsXsZditsd8RNqJ/8o1tHkQUNdsDRPBo8BITxz1B1fw6XEhatQy/yH0DcNNXMAqWWKvVefc7Z+vRqePZB53IAPPIzegu5wmxwvg+RH4vssGCZrQxxwjOBsxO8tcrnmpVMDdB+m855Jj99SxuSwFMxMBIH0lMlSsyosTA3IvV4jv+8k+s+WBXH4hzLZUXHela0Wnt2bF1+xZofIXs=; 20:NtEiqoN4Sz5TzUXW1RvvuwaYG2NgEGtefhphn5bvzo0hYoqpetSyWLbEYcdc1w5c8TuYrDaN3GoDSmx00SJ8efjTPE4S+HF6ce4CHnhmeKh9bLDb26XXyE8MymeQpVQhvfQHoPscD42yEJH88llj/d4+iVa1r+mXz93PkuI084/bIb8UMg1lBe4NhF/Un2xNIZ0O5uz5D61zpakc1qj9pWtrfsPRU31MsV5Pki9urN12U5y58uujVO2g7aOdLGbpZZ8piUNung+CoCaP2RSLkHHXL8j1HDLRXb/bLZo4NFIxJcXSsP+ANy+MZEUViQUXdSrkrTaSjlOWQYDWYwrzIRH9rZGlnu8LE8FKUx5W88oI7r/xpfOeEpLCCik4f7Gw/E0fSXLEh5EhHKu4gnsoJerw0fhAQKrS9KtB1nydSu8AZyqrh8HDMntK6NS6My5UkodblXGYbvqdmogSfqFb2gnBffqbm0ag5NtVQaH1dVI/e5r0QvJiSzHsGOYlNo7jYqsP6vSqjQLAY5PuOkXkK2CikHywq+jW3cfxxpQZH50cWbChUzx+tJTjURO7gKlL2M+lkQTNYzjKJaB/caSpcmG4i+hYUHQvcdTzRYjHYFw= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700073)(100105000095)(100000701073)(100105300095)(100000702073)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(100000703073)(100105400095)(6041248)(20161123562025)(20161123555025)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(100000704073)(100105200095)(100000705073)(100105500095); SRVR:CY1PR0701MB1725; BCL:0; PCL:0; RULEID:(100000800073)(100110000095)(100000801073)(100110300095)(100000802073)(100110100095)(100000803073)(100110400095)(100000804073)(100110200095)(100000805073)(100110500095); SRVR:CY1PR0701MB1725; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0701MB1725; 4:+g4Wa8iMhlmCUTkAAVdzxUnCrQcWE2++N+WRRDEV?= =?us-ascii?Q?gv5r/lSH00msW+Xd8szHg57wx1fSB/XvocUig2LNdvLqbXQAh7HmCyZV2TUF?= =?us-ascii?Q?sZITTPwBzoOI5/y5ORZEUJIRzMUmIOUWTz0913lklW09M3a6r/h+DEdJp6/H?= =?us-ascii?Q?3eo7Ai/zvnHidZxu7Awf1xUvgZfrkoGXFNdt3J5TPALMLiuq/tUAfijSBCJJ?= =?us-ascii?Q?K1qgarTcZZDf355KfMBZmJCqCU4P7zHE11qkYn95fnIYrtgCfG+F1Dp31hXi?= =?us-ascii?Q?ZQWTSTMTmsePADIE+0EX0+GM7WCWgcogWq5eZzvA6h7eb5bBwsAebJ/PX8Dz?= =?us-ascii?Q?runeve29ccMsAXiKrNTVjzR7dOjl3ut/o8XK0ccdK5WF7VvHrigE7RZGDlS/?= =?us-ascii?Q?GjU8nr46xnt0gwe+phwsnan03MtkauN0163vN8zM/ZpaPk4t6TqQQoHaBxQ+?= =?us-ascii?Q?2xhUwv2BslC8+74y0J1UW3JT4GjRjK00mylOoZbXPipYEHEprq4gbe7XcUND?= =?us-ascii?Q?a5Xnw5a5Tj50j0cLCkGXZSNqeO1MlAX6BqLXC/RFmYWX97lhDgcQgFTdeAK/?= =?us-ascii?Q?n0KCE7NaoklEd9eD5CHgQM5WzUYCpUZR/ij7qBWAYprV9qt0J2uEr0omuERz?= =?us-ascii?Q?1H+fnlu5uxYfSCzPmxV6hHg/w6Yfj7D9qqD8pQik+FHQn18PyF2X0EzGoTLi?= =?us-ascii?Q?OG26p4Rn8EDxAiQ2gfsnaJAV3c0XmAKKMPd9nmeTT2IZYDJfPSI1NjXrcCXF?= =?us-ascii?Q?6LCDvcg3x+UW7yO3cV/1+rbhlmEDa3v0U2umSqoPFPc5pcC004m4bdZtQ3RE?= =?us-ascii?Q?wIsFHi4ofZujpfqk/2cl8OIZ8chu1CFYtNd6UYTaOk486aK/aL23NlKWUI0R?= =?us-ascii?Q?fgSbt6Jh7b+M2rRdGqCLACObvPaewvRVB1bSqJisCNloSWdT464aDsJeXMmQ?= =?us-ascii?Q?arZ6zoE9q+YsLiy4zlNIUoY4IFJvUniUW1woM6mhYbTbAFlvEipAfkS8NRtP?= =?us-ascii?Q?ZVdk12fawvJDt+4Zo7tVBMWMGAdbcgjqzP+gVm9okD7FnsafxlER8+0wYUek?= =?us-ascii?Q?CHq4AvWeHj/FG9exlWQhls4DwD7EjIXZkAlY0oi4fqk/bZxdeB9I5BfpqtZP?= =?us-ascii?Q?QBl2D9mlJaE=3D?= X-Forefront-PRVS: 03218BFD9F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39450400003)(39850400002)(39410400002)(39840400002)(39400400002)(81166006)(6486002)(66066001)(230783001)(4326008)(50986999)(76176999)(50226002)(189998001)(72206003)(36756003)(6506006)(38730400002)(5003940100001)(5009440100003)(110136004)(107886003)(42186005)(53416004)(7736002)(8676002)(48376002)(50466002)(1076002)(3846002)(6116002)(6512007)(2361001)(305945005)(2906002)(6666003)(478600001)(25786009)(5660300001)(2351001)(6916009)(42882006)(2950100002)(33646002)(8656002)(47776003)(53936002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0701MB1725; H:jerin.domain.name; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diag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exchange-Diagnostics: 1; CY1PR0701MB1725; 5:oNlO6mAOVK5aBL4bea9/Bp7urIoTEC8IzYJfrkJWdQCyYLncPdmm5g7sXZ11YRgLTX5XkYA7Z/aOmWkw+qy8BruRcwwpTYZ8++4tOutsIshp/F2eeOrhw2UQux+iSfp9EgVJxTfvSEh5uLePhhejiCvmoSRyo14tkBUG/32YwF+g9zG7Fxowf6UmKkgQXk9LbPQz3avDmhIl2LeaHjSiU6jisdnnWIFPALNj0wOPbZjoPvoN9uHhPzCLUDfEzKiF52MLya7nDL6OTo8upUwBJQbJhWMCxCA0Ap8EfhZj6r+w0ZJLd7hja/cB1zuYhWHtPxYz47zT4oR/HppR7LmP1Uai7AH7VulW2m2D2qFstjRXA8ggt7G8mZESbeNfloRFcfeIrcj9qNstoOY/1nW49zCq0PkN/ZjVH8nfirlypNOyWamIZoyLIB7aVFhlyVK9MA5nm+iIy2D6mGBRbRU5EFaV7Kin5frH0523cQH9H71L3KRPybmeuCK1uidxgfSr; 24:i8o2w8gnKdlzFNRE4JM1omKRTiqjwsocmKqeL8Atr9C2VYHN+sLYvycimuF0ZOMSrYp6vc/+adxbqPiGHaKsqN/3KfzguzbM2We6HRvIeR0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1725; 7:PZuf1xto2nbM3DTu2u/vUOhGdvZKyR8yKGgoVVEJuXZymKNhCb3G2mMd9MMv330R7eEaX7gNS7uvovMA8avxxg6hEmMrGBnEjCxmbo8NIiJfdtJoqIlnZcrD2WYudffje5FdpqwhsTLSEIaiawhJjNt/T4UFvkmFTfFqyvqwiecgblwsJqt8kRIqN0Ppe6EOMzPnyKgVvpBDB0JOR4mE0AcTaBH28D16ypk0V9bEdVbQ7i28PBBzRis/b5L9MA1qwAOn9kQAsd3HK4xU5zDwyxvQ1z/X5MwXQ2cOi4AVhi4/vqbXO43xUTEHGgv31jdbi6qCyqbFrAqcQsbxS22nhg== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 May 2017 19:59:33.4375 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0701MB1725 Subject: [dpdk-dev] [PATCH 01/33] app/testeventdev: introduce dpdk-test-eventdev application 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: Sun, 28 May 2017 19:59:39 -0000 The dpdk-test-eventdev tool is a Data Plane Development Kit (DPDK) application that allows exercising various eventdev use cases. This application has a generic framework to add new eventdev based test cases to verify functionality and measure the performance parameters of DPDK eventdev devices. This patch adds the skeleton of the dpdk-test-eventdev application. Signed-off-by: Jerin Jacob --- app/Makefile | 4 +++ app/test-eventdev/Makefile | 43 ++++++++++++++++++++++++++++++++ app/test-eventdev/evt_main.c | 58 ++++++++++++++++++++++++++++++++++++++++++++ config/common_base | 5 ++++ 4 files changed, 110 insertions(+) create mode 100644 app/test-eventdev/Makefile create mode 100644 app/test-eventdev/evt_main.c diff --git a/app/Makefile b/app/Makefile index c3aeebf6b..7ea02b01a 100644 --- a/app/Makefile +++ b/app/Makefile @@ -39,4 +39,8 @@ ifeq ($(CONFIG_RTE_LIBRTE_CRYPTODEV),y) DIRS-$(CONFIG_RTE_APP_CRYPTO_PERF) += test-crypto-perf endif +ifeq ($(CONFIG_RTE_LIBRTE_EVENTDEV),y) +DIRS-$(CONFIG_RTE_APP_EVENTDEV) += test-eventdev +endif + include $(RTE_SDK)/mk/rte.subdir.mk diff --git a/app/test-eventdev/Makefile b/app/test-eventdev/Makefile new file mode 100644 index 000000000..4f7c25c38 --- /dev/null +++ b/app/test-eventdev/Makefile @@ -0,0 +1,43 @@ +# BSD LICENSE +# +# Copyright(c) 2017 Cavium. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in +# the documentation and/or other materials provided with the +# distribution. +# * Neither the name of Cavium nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +include $(RTE_SDK)/mk/rte.vars.mk + +APP = dpdk-test-eventdev + +CFLAGS += -O3 +CFLAGS += $(WERROR_FLAGS) + +# +# all source are stored in SRCS-y +# +SRCS-y := evt_main.c + +include $(RTE_SDK)/mk/rte.app.mk diff --git a/app/test-eventdev/evt_main.c b/app/test-eventdev/evt_main.c new file mode 100644 index 000000000..c076cdb62 --- /dev/null +++ b/app/test-eventdev/evt_main.c @@ -0,0 +1,58 @@ +/* + * BSD LICENSE + * + * Copyright (C) Cavium 2017. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * * Neither the name of Cavium nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#include +#include +#include + +#include +#include +#include + +int +main(int argc, char **argv) +{ + uint8_t evdevs; + int ret; + + ret = rte_eal_init(argc, argv); + if (ret < 0) + rte_panic("invalid EAL arguments\n"); + argc -= ret; + argv += ret; + + evdevs = rte_event_dev_count(); + if (!evdevs) + rte_panic("no eventdev devices found\n"); + + return 0; +} diff --git a/config/common_base b/config/common_base index 8907bea36..4d3833f65 100644 --- a/config/common_base +++ b/config/common_base @@ -739,3 +739,8 @@ CONFIG_RTE_TEST_PMD_RECORD_BURST_STATS=n # Compile the crypto performance application # CONFIG_RTE_APP_CRYPTO_PERF=y + +# +# Compile the eventdev application +# +CONFIG_RTE_APP_EVENTDEV=y -- 2.13.0