From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0058.outbound.protection.outlook.com [104.47.40.58]) by dpdk.org (Postfix) with ESMTP id 4C8635598 for ; Tue, 4 Jul 2017 06:54:17 +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=VboK5/4TlAF6bnPbvdTmje2B/WWQyarzwXvulAMpSUE=; b=jYMbZ3bIO6oUDErA1Pm+hO00VtIQZIoEQolaNYmbttkVuL+RTxclNOGjhgAy5XUExOnCfvj2rB1trQHENk8KKZmjC8X3IQHz39J2YWT0m00lxXtup5RC4MwiRnD3zIFyz3o1Zm9BW9kCQqdjU9Wibtxt6i6y8y+iNvawrlGN19E= 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:54:12 +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:22:58 +0530 Message-Id: <20170704045329.24711-4-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: c53284bd-0763-4a65-8bc0-08d4c298b879 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:RVDxblWzvOk9trkHYIBklA8J1SILbR6PsjJa+GywKPDcryuH0vrM1g3RKzPdZtBiWbXCRP7d/kgxAs35AJrdSb9sW5XS6VwSLg9lW9IEJ3RaWTuoWjAJnttU3KWvgNsq3r7Xesjlb3SiuUBCOBxkhRV7AFFwSkxC1JkgDrIygNQoJrU0dhgcwkYzHx1rfF2ikNSqABLRzKM/TFxaKbDzJlspLQJi5TIfPSLburLpQ053ye/+81SS5ddy0b3N4WoytaPBcqeEv6zrBhyohW8exJBSCjclIZsRMKee4ffmYoL4MmCmya4nM40tLaXx+QV9XCCdEL3ohfV5r09Pz9/ml+5d7V8jR4N3nAmdHNT8ZYYU+24CqRfLQvAWEAzBPcDp1Qmc/sZGCYvclP+DZH5GqQQSbdetuNCnmr1GlHPFqAnUvDeZKaH0pz90aJ+wMbuBoW8PnXIx0sgLCgR4x6upRqLMxI/XmY91Tee6eE4+NG610SOdZPbY81ROzT3ugfarZ+Gw1qW42M5dkeSR4vW1dPe+mJfTd4VubGPzCkeIJjTJeT+k30qadXO3apnMpUBzR1x4rbE3abQEZPWmpsIjBouUA4sEkRqUEsBCwnStFRLzVEHdr2Q+Ye0nuwBG8ywuD+L7e9z7AwzZS9NkhrNsytohWpzXuOoAF6M8YV2VPpri7gjdp+xhZqz69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ehDGpp+WeDAyAAv9ZpTxGrxpcPU/EhAoa2UGo15C9AqnXL/y4EjyjSv7WRRjzxH7QRXNnVtnQ//ZBsKgKHmJ4XE5m7Io63G5fljTIvvFPOLW/1NpNrBpzSNb5ixjCsNaIBs/jtRm4Y/n9VxqkwjY9d9z1GfcJ1h+JldGC43RLJhyyHMocp2nqOZzbaD4/hzlb+jQsz9QKUG7zX4oSfQ5XAyNMkMNtFEI5pt8PZgk5ZwR578sAL03Hgj5ILwBdy+2OGQmfjsBzsQXFHjLxo4jeFsAt3eJB7qK5t3ntYb48s= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(148574349560750)(158140799945019)(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:hCydt0ikzVC94VFC2tCOZRAMl9t757k/QuNgUDHA?= =?us-ascii?Q?n60xqMOdIOgZOG7NJJStpcVV+a3hJWtqFp0qQVL6Dq3Ak9YKInyTNHiipALq?= =?us-ascii?Q?OSf41o3crmISlXfUc5RIFP1Wlyq64v7IHe8Q5mrtAzv/Qj29UKf5b1rBB9fe?= =?us-ascii?Q?GDA/xUxEPcd9Sx/3N11cflN5opKWtFj00UbahDOfbGZ7dz/ZLr8iB3WYIPiD?= =?us-ascii?Q?nB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7KK8MwABirTcWmdUL4CbBEBPa5s8Kqee?= =?us-ascii?Q?xrMuodcUn7nDiGVXGFq2XTEosacVhyJmLL2dW9ThFAlY4xSWiUx44VYezHqz?= =?us-ascii?Q?hcSxb9KotAPIewDcvgvl0/1n2fjfAZWx2rrOgO9NFBIwICU7V+5OlexDWOcB?= =?us-ascii?Q?wovI8bpyngoVP3vRTKY0IOMgIMaOin4jJo9SAsxv?= 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)(6666003)(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:9eAGIsGbnjcPsvqbPL//OmFKIKrQrOLEfROnbs6?= =?us-ascii?Q?Px0Z1mlXVDYAC8kcmDizBeAF5xlYOST2HMMXxpAcU0eb3FKClQz7zeL3PD36?= =?us-ascii?Q?wSqFZsf75D/xXszPJnfVHAT4renIv8B4SLOdmt+noKlLsEMbt3oBP245eQRS?= =?us-ascii?Q?nDdgfl9xtWhHDAOl1dMHCnsu7MMy2FS+seoqhpKep9GCiceoepZmhlOe5Tbg?= =?us-ascii?Q?+UJ8HlmUIMuVysh+LMG8wGHtfuRJRcvF/MPWbvQn0tSXJAC9IZ2AwHwWymNK?= =?us-ascii?Q?lbzg0TbqqB4j3CDOJFSjw1ktrymd1u045vMo74IhoQ8sPHxF7vep9k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HTNVYnBAvjzH?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1714; 6:o7RKVU0vDkuF8RpN5ECelvlXcH24JeynEnS6AXRf?= =?us-ascii?Q?iRiYzN8T4aRj+9IH4KoUCuW18Obg/D47xD5GbjhKbKO1igTWApl2L1tmBr9S?= =?us-ascii?Q?UDt3Me591p6xdNdEop3kEqmvH9iPbYkFHSc6pweJDmX/Ni24Ap2xmfYbDUly?= =?us-ascii?Q?8JeTpJ/MbODW4jI5HI7H2v/ki0c8uqhv+mivOQ2GE/Eq9GGfbQiFlmmhuPdq?= =?us-ascii?Q?tMMsTkQZfxVKW1uo/ajomEpqt215oUSPjDyMTXJ8EYVl67myxAVIPd6Yptrn?= =?us-ascii?Q?bnPf5BIf9l8Z/EzmC2uBSk9UL/jVL96w3HQVqwsDnapH27ySU4T8o7aIT9TR?= =?us-ascii?Q?A9gN+XxQ35RqEYgNChOuTb1/vVEbA36mW8KdqgK1KMELsI1431l7d1yEqGU/?= =?us-ascii?Q?pF9DGOHCfnxO36MJvKLq8RgXbrj2Nn20Ny64akrJlaVQxD55fBvsvhqFkP+y?= =?us-ascii?Q?Ty4xcGddSk3FsAx8ptpZoT9TsXs9BULTBA5KdmNDG97Q8Z+pUBcVDqrLMqei?= =?us-ascii?Q?cMcQAu+dqaTa9ycrR1CQP6FvF/Jd4K/XGyVVFuar9EuEk+9plBvOnMoGtKGQ?= =?us-ascii?Q?HnIKcRXgYfQGPkDjeaKIW66IzL1xgMQLwXulgDFXF1pZh8bVVap0kunbzTwS?= =?us-ascii?Q?5AO47h4Zm83iMh9vHDOqybeFEN2o64PryiynFZoM1Gjoe790eLS/fXQyAgJd?= =?us-ascii?Q?hAwBS8YgVmee19aUc07Et2w/e/+TctaE7wbiR3BK1vnT08YkCjk9rB/Uka28?= =?us-ascii?Q?2ZyOJ0zaT5Z48aA4B2sBosHhVS+O1AKsACzBhW8q/KS5JIbqKf8B4WFLrXo2?= =?us-ascii?Q?AuFWUsla93V3XPafGvRLMZGGiI7h8rwqnCiwC4tR91fMFy51nvYPV5ldhyXs?= =?us-ascii?Q?UTUA8gguy82sGMNftsnm9kHxGkGFtxrdPXrFjl3jIuXCZ09g46nO/FjpmfNj?= =?us-ascii?Q?P3iOJON66iBxBy8lU3X5039XJkEs4FSThApBq133Uh5vIBN6A79Umt6h3dYs?= =?us-ascii?Q?7Pc=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 5:r4+nLZF4UAf3eRZI7GT/jflxYHcvEZwW+gMNrqegGhm27/Rg331riRGeujdRNZv+8NT+ZUYyJuOp0+Y9LTS0ntZ3eh4GLMliCwA/usC9KfgWCUiX2yiV9yOgg2/ABZuLbJMzyi02v1fk9CqeSXgu3Iu4S0oOubYdgb3IRm58CQHndrO9gH7dZezL/wPsYVNFrGgtOnadhJ6RsvVKUr4oghSLFRSSi9Mew/oRkcw3pXj229KpR9Pj1NO8UJvkEeF85SF/h5Kc7TqSjjw9eGMzoETwOnzTRexDAWzYvrvTehxrXivwkjs8Jw1m5MKzTnRkje/H4FaDL29VHFBMPuRRSu/+2igDpuObpxv9TlhkeJW6NNymqRHzEBr87MUfs9Gid0pjO7Ob9Y83Ffphq6WxtNOLY/5Ec9skIMvy/EvVhf85EhKNVry1Y1L9JYaxddkWhXALWj1XyFM7l2IgtScH77gkLwsbpscIewBfFdhS8vE+TIi7WmJFKFI73duq1iX8; 24:kkd5iiRmes0Dwf44a3N5Kg2Wauy2uvvXAWKzxaaqN9AdQavFnlPbJ3rh9gEqKOyO7CAGrdW6iOXpmCdBBvbkMomXSZ5D+ld53EAvwvJ3iGQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 7:zyut3INyYJxn2N2Nl/e8QMS+STNuc49ovrSdMXfvvcAmACo9TPEzTAn1HvlijRkgxedoK/Eza/pN1RJrcmt0WBRoVskIhBw1hOnWy1vDkLChwx0skrisBDz6KI90ofA6WmFIfboejJtsfj2A+qSoWmFSsrJeGcj+6Umr/tO50w8TC1XOwLIIGPTILr2bA6bofcOt9P3nvDMkb+4PX+V27sgJu8gq7/ciaWhx1uNUl7AJG/YWk4j2q+90xyslA0mJz6ZkIo50xIeOJrU/jFdaKvmrdH5n+ZOXM15v+k2/O1vSPjmtla1VMaazQ2jA+jiDilDsO/jiJugKQp8N+FmR02xRaqqOEhCrKEvLbNtZ8Ea/HUoYEbg7vWmVr67GqvKhUTMylECgMK3TvDcs1v4l/irni4iEAZxzHMXJmnSzORCSgJ3Wmih/BIz1MT+QhnOtaUp+5DgKuRejy/Fy9fqFJndnFVVuZfFwsn8jhnhGmTpHt2C8iS+mjAgImz2kwVqni8fw2z0QmjaeGegwxeeod7eb3VjC+YgFNWW8M/cGu78nCrhEeSZHZGgwr3pJ+9ZaYYNN/ayln6xnQqwlbwcWpA8zr70v7EZnJgfZvmGsXyLfW42mkmmQstM2CtwGwZfbxsWdzOWs5kf4hZTtz/SIWgpzditezmGLrTPdklEq6HLTjsVwwJTwO5XCT0mY25pnzyi6gdS7s2LAQAPtdmTC8+eckkjSgxLp/+y+jgqbLtWdR+KlLNjZmIni0LBaTm66PUWN4fk7d/to1iDEkarjyHXm/wEwWuirclejJybcpEo= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2017 04:54:12.1025 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1714 Subject: [dpdk-dev] [PATCH v3 03/34] app/testeventdev: add eventdev test registration framework 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:54:18 -0000 adding routines to register and retrieve eventdev test cases. The RTE_INIT based constructor approach has been taken to simplify the test case registration. Signed-off-by: Jerin Jacob Acked-by: Harry van Haaren --- app/test-eventdev/Makefile | 1 + app/test-eventdev/evt_test.c | 70 ++++++++++++++++++++++++++++++++++++++++++++ app/test-eventdev/evt_test.h | 28 ++++++++++++++++++ 3 files changed, 99 insertions(+) create mode 100644 app/test-eventdev/evt_test.c diff --git a/app/test-eventdev/Makefile b/app/test-eventdev/Makefile index 4f7c25c38..8f4fc5f45 100644 --- a/app/test-eventdev/Makefile +++ b/app/test-eventdev/Makefile @@ -39,5 +39,6 @@ CFLAGS += $(WERROR_FLAGS) # all source are stored in SRCS-y # SRCS-y := evt_main.c +SRCS-y += evt_test.c include $(RTE_SDK)/mk/rte.app.mk diff --git a/app/test-eventdev/evt_test.c b/app/test-eventdev/evt_test.c new file mode 100644 index 000000000..863cbdf77 --- /dev/null +++ b/app/test-eventdev/evt_test.c @@ -0,0 +1,70 @@ +/* + * BSD LICENSE + * + * Copyright (C) Cavium networks Ltd. 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 networks 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 "evt_test.h" + +static STAILQ_HEAD(, evt_test_entry) head = STAILQ_HEAD_INITIALIZER(head); + +void +evt_test_register(struct evt_test_entry *entry) +{ + STAILQ_INSERT_TAIL(&head, entry, next); +} + +struct evt_test* +evt_test_get(const char *name) +{ + struct evt_test_entry *entry; + + if (!name) + return NULL; + + STAILQ_FOREACH(entry, &head, next) + if (!strncmp(entry->test.name, name, strlen(name))) + return &entry->test; + + return NULL; +} + +void +evt_test_dump_names(void) +{ + struct evt_test_entry *entry; + + STAILQ_FOREACH(entry, &head, next) + if (entry->test.name) + printf("\t %s\n", entry->test.name); +} diff --git a/app/test-eventdev/evt_test.h b/app/test-eventdev/evt_test.h index 5ec7a2e32..05506f714 100644 --- a/app/test-eventdev/evt_test.h +++ b/app/test-eventdev/evt_test.h @@ -94,4 +94,32 @@ struct evt_test { struct evt_test_ops ops; }; +struct evt_test_entry { + struct evt_test test; + + STAILQ_ENTRY(evt_test_entry) next; +}; + +void evt_test_register(struct evt_test_entry *test); +void evt_test_dump_names(void); + +#define EVT_TEST_REGISTER(nm) \ +static struct evt_test_entry _evt_test_entry_ ##nm; \ +RTE_INIT(evt_test_ ##nm); \ +static void evt_test_ ##nm(void) \ +{ \ + _evt_test_entry_ ##nm.test.name = RTE_STR(nm);\ + memcpy(&_evt_test_entry_ ##nm.test.ops, &nm, \ + sizeof(struct evt_test_ops)); \ + evt_test_register(&_evt_test_entry_ ##nm); \ +} + +struct evt_test *evt_test_get(const char *name); + +static inline void * +evt_test_priv(struct evt_test *test) +{ + return test->test_priv; +} + #endif /* _EVT_TEST_ */ -- 2.13.2