From patchwork Wed Feb 8 12:19:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petri Savolainen X-Patchwork-Id: 93635 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp2704882obz; Wed, 8 Feb 2017 04:30:49 -0800 (PST) X-Received: by 10.36.196.86 with SMTP id v83mr16207315itf.64.1486557049380; Wed, 08 Feb 2017 04:30:49 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id c7si3151077ioa.12.2017.02.08.04.30.49; Wed, 08 Feb 2017 04:30:49 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id D75686066A; Wed, 8 Feb 2017 12:30:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id DF38C634E8; Wed, 8 Feb 2017 12:24:05 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 9A0DF634E4; Wed, 8 Feb 2017 12:23:58 +0000 (UTC) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0129.outbound.protection.outlook.com [104.47.1.129]) by lists.linaro.org (Postfix) with ESMTPS id 1CD61634BD for ; Wed, 8 Feb 2017 12:19:55 +0000 (UTC) Received: from DB5PR07CA0005.eurprd07.prod.outlook.com (10.167.223.15) by DBXPR07MB286.eurprd07.prod.outlook.com (10.141.10.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.5; Wed, 8 Feb 2017 12:19:52 +0000 Received: from AM1FFO11FD008.protection.gbl (2a01:111:f400:7e00::181) by DB5PR07CA0005.outlook.office365.com (2603:10a6:0:2d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.5 via Frontend Transport; Wed, 8 Feb 2017 12:19:52 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning linaro.org discourages use of 131.228.2.35 as permitted sender) Received: from hybrid2.ext.net.nokia.com (131.228.2.35) by AM1FFO11FD008.mail.protection.outlook.com (10.174.64.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.7 via Frontend Transport; Wed, 8 Feb 2017 12:19:52 +0000 Received: from fihe3nok1348.nsn-intra.net (10.158.36.136) by fihe3nok1346.nsn-intra.net (10.158.36.134) with Microsoft SMTP Server (TLS) id 15.1.466.34; Wed, 8 Feb 2017 14:19:48 +0200 Received: from mailrelay.int.nokia.com (10.130.128.21) by fihe3nok1348.nsn-intra.net (10.158.36.136) with Microsoft SMTP Server (TLS) id 15.1.466.34 via Frontend Transport; Wed, 8 Feb 2017 14:19:47 +0200 Received: from fihe3nok0734.emea.nsn-net.net (localhost [127.0.0.1]) by fihe3nok0734.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v18CJfI1027380 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 8 Feb 2017 14:19:41 +0200 Received: from 10.144.19.15 ([10.144.104.219]) by fihe3nok0734.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v18CJf6I027358 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT) for ; Wed, 8 Feb 2017 14:19:41 +0200 X-HPESVCS-Source-Ip: 10.144.104.219 From: Petri Savolainen To: Date: Wed, 8 Feb 2017 14:19:38 +0200 Message-ID: <1486556381-22233-3-git-send-email-petri.savolainen@linaro.org> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1486556381-22233-1-git-send-email-petri.savolainen@linaro.org> References: <1486556381-22233-1-git-send-email-petri.savolainen@linaro.org> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:131.228.2.35; IPV:NLI; CTRY:FI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(7916002)(39450400003)(39840400002)(39860400002)(39850400002)(39410400002)(2980300002)(199003)(189002)(50466002)(2906002)(76176999)(50986999)(33646002)(626004)(450100001)(110136004)(189998001)(92566002)(305945005)(5660300001)(356003)(38730400002)(53936002)(48376002)(77096006)(6916009)(68736007)(6666003)(22756006)(106466001)(2351001)(47776003)(81166006)(36756003)(105596002)(5003940100001)(8936002)(81156014)(2950100002)(97736004)(8676002)(86362001)(50226002); DIR:OUT; SFP:1102; SCL:1; SRVR:DBXPR07MB286; H:hybrid2.ext.net.nokia.com; FPR:; SPF:SoftFail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; AM1FFO11FD008; 1:9qhQewtr5R7vv1MtMgfwm0AySOJv+FJo+l77JYORuTADUwLLqAAigt4QjDrC6RDmedaQG7fYkKKswYqBF6W96H4LyJ5NtBhpnd+w5U6daUrs4AEFpHZRIKz9YkyN4IkgpHu5aDCLdgVE/KJqCQOJfeXpqAkX0sifa2BzCqfvShTWCg3w38U5rs7xGs1+ID636xIGcClO3T9A0QyZjS0qceDj08S16vNRoGpFu4GDXZPki4UtIakyVD7RWQPvs2MXVRL6F1y4hyZ+U9JzTZE5PNcWj1LIIPeBVaIATZD6nW4aapp+eIVyWQyxyA4AzDni7/KalKKXMHTbZnmD1wwGscDwDKgRGF9C92a3lyMBNx1BXJy7Eg/BG94GSbQYLCRX0QqG9fMG3mxfAWcg69iYJHB43Xo+gGfy4qNQYnUMFT3F2hXwGZTzihagN4TLs8ZeZasRB9dKl1MMl2RR6PYPjkiquaQjhqAQJHw4QEi7Fcc3fi4uPdb4852p+DApoX35SsyMdS4gHUx7QjDGoFjVAw== X-MS-Office365-Filtering-Correlation-Id: 2562e0bb-42ba-4dc2-24f4-08d4501cc8bc X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:DBXPR07MB286; X-Microsoft-Exchange-Diagnostics: 1; DBXPR07MB286; 3:m5qprHteNJkWyBsEH9yM/bm5fmbosLKka3J99ySLr4BfeNidJW86NpPGXerDIvLO1JKtiYP1Lp2RbMbRBNbC2+MV/hjYhchja/M+RF+1chCvMNFoZlApEC/zX5DjZD0ZVdHScD4MkZQzA/pBS0Yry1jBMrkNDYDEKbtCNGYl655O+WjRbd18C56wROWMQWS3r4PduKH8+0Y7DbHSzjioN/pFKbQtNWQesOKmki7kdOC2BNrVZ5QDldaz7rXsE7ifT0yPJOrm4OfEWBe3CLEWy6MVlgimOMxedYTZZFZZzTkp2xR+8NlQ7Gg0TPGkpHP89Lsg0QMGEpNT+5GvkaPptKIpQ3P62YB4GyMcLktR+j8FU0vvnFnhHWJWli9pTtc/; 25:AD3zNadXBNbDsR9RDrmBThNSf/umFlxg11UlHc2ucYYjp59AP5DOqIb3oTqphuHvrwZQuHGsD9zrO4vvo3ZBd6u+MgtrASYfW4zR5nSTn6a8lOHYV21lFIN+ijXhOYNzn177TEE6+EzzfbPzyYZfNGZ4FtW6UB23WBbOI2+HJNn+fI6t12Sft5bS/Ebr2H9WLfNr75jjzfe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JCCWcIHBLVRSCun2P6JLOvhmJrR+ekRKBMwxIC7OrkWr2e2H/wsa4MRdhyQedyjw/tte4S8GV5dXUi40PVFp37eDmG7DdtzBXJJh/bEH6z6KkRypD0wFbxYeKKKFaxq0m7nO/LIskP6ZM= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13018025)(8121501046)(13016025)(2017020702029)(20170203043)(5005006)(3002001)(10201501046)(6055026)(6041248)(20161123555025)(20161123562025)(20161123560025)(20161123564025)(20161123558025)(6072148); SRVR:DBXPR07MB286; BCL:0; PCL:0; RULEID:; SRVR:DBXPR07MB286; X-Microsoft-Exchange-Diagnostics: 1; DBXPR07MB286; 4:GZUYJAiu5Dpf3gnEdcHjwOnX8lBu2v6jibX0XhhPh/O7rvr4YKzSmU/Iwya9h6cSUW2hlbNgaFOYW7uAkGXMgGXo9ov0dWFe3flg9Vwa/ewO16EwY243g5JKc7H+KaEYkV3ilbeBN8Wv6CuicF/l3YTka6GJbfV51Kf7Doa7+EXZ7iJ2wvPwrUMt/iTIvnuFTWYEoCbrB94PYPIEVwaP3hLIKeQByYj6fDEcoXLMu3TyKXvYwgE2xixikMMur/7tBy8brmrwcSEivCmRrKWMFdc+XvmcEzrcU1gF5gY9voTfsx1xUNcwgr8AaNhpIT47UjdwxgtIEINPuRNwNKzpPy6bqNvwByqQFiKsRhVQbgh+eSXyDKAbJQZnL0cKVPU7Y0KBB3Emu1xEhwPYz64sayTlfSuHB1WbPe4umIUr8jXWUlpEV4XWgiZkQBmEfPgfRpFTdpBkj4D8QiV9YxN05d51E/tBCMfKlsSLCcq4/9mLx/SpVA1JkZp9NdL1xdxUwLB6ikYneQUImgxAPju1yDHX5dU3MKfCZc7DlcpVoNcx2aheYGhqLV5FmFt8g3yo63Ko4JHwemy3gvMc5YtgChv+w6VX8rd6qVjtL8qBFgrCBkmPSHJNDyjJ5tfs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uTcjmsp49G4ebLtVAQvK9ypee6VH6flEJiMYEequfBCkU2TAnOqXdsvj/CYT2L7wQq2z/mQE+MjZA02bmHPpPgQoBqffj7SmuVOY7FvmY7mlPYvcVDY/3nhdVrKZKZm7RqTeBDOr7J/m//+FyAtnjQByxV6z03bGS/pa3z9gduNWSEhPXiBhrE/hMa7/AZwSg3AkfU6T5+8aqT3vJre7gg9LLBzl4PVJAJBUJ3Ps89cJwyhfesY= X-Microsoft-Exchange-Diagnostics: 1; DBXPR07MB286; 6:5evMFNQXbXc258oYRlJDUha3yr/xTLgsniDnAgM8N57VAuLYmfNgaUVpWFoY77qCBwSg2d8UkHsmd+vJCQZY5BhOEI1maxsrpz29LaQS1XCPqIs26nKvTspTvI8SnbV+rT4hfM43GorfGr/fBuvbCPKPPthFmHfqIJyYprrFp6C6XLJlFyXh+ffKjHFNTB7Wq2R+dfcQuY/BwW9hC1klgWJooz2kfmdOVpspHwqG46CPV1SuN3OPcCddqxGeWt6qf+uJgzrLgjAjskHRHbrcQrBjOkLJglmkSe/AqMh6I5cLn/z6Rh4L7Dxe8z4PHJL/VKJYrZYiV88ijTO/e01KXrlm4DIin+jIKc6/iLy/yM13f3MfILSxtci1+aHHqtXYAe4JwAInTh+zeFwVCPAAcFTB06cR1Ilv2tRN/lAWOGo=; 5:HCsMqKNB29IZR49dqptdAQv5ZGAhWnK7xWVZqi0oS6qGeL1/tizerbXWS8nVgQQfHaxk+QDLicxFCvnGhR2kOjPjsP6WZ+0UL0oEbPg20pBrvX0l7jt+bQHLhMNCI7ACGCPxav1Xl1/nmBpVusK55w==; 24:/QCQYY+IDpP+mvI7rCCtWAwIVuOa0jVLiLWiFG5CgjrNCMQjJQlE14ElSfSb6FPBxAZ8YtYO8QSWqUdk7L1ws6oK6wuD7Ov7IY7tpzIf25E= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DBXPR07MB286; 7:CW+sEgedqD5x7pw0bhKInNNwtE3kurMlsHNA+cokg5a8PRgPq6PwxN1jQnkJlXDK/pusTGHqDQXc5VxRVBWh6sqFEBUadg2dUXSW6ejznFrWkLEkevIfcCxmaTsqsX2dSMEkGL6005Vm9Bq/aBhlc7mKgDHUzlFwYv51L2wIsQ7nTN3QAeFtJa1ZIwjG8T9/C6cnAALmPPXKrZsg3FYzT8l4jFfBa8fq3wcaQHffrvEK2TMUGKXXvnhyWN4rI6LWdNBYw84CA1TipoSNHtXe/bBztRNSxCkT0M704kVZPzd06HhP8bLJ6OiqNtiX++3ocbYN3nqj8DZ9Xu/RFAtrBbtKD73gntmj0kpLYO37yXyJ0/W61l/OVgLvi18O5wg1d+0y2GL0GAPiKgDDBDlw2A5nJWaEPVXViZ1mE3KuIdtJLh9T0GKTWWdPZ1Sv0rDwpXD/2n7ot9g7JFWuiYOYwIjQacK6usua5BCX+lGdVvZXHRLgTCcYXf+0Vax7QlojkC06xmU+73y5w2iwM0P+1w== X-OriginatorOrg: nokia.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Feb 2017 12:19:52.2538 (UTC) X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5d471751-9675-428d-917b-70f44f9630b0; Ip=[131.228.2.35]; Helo=[hybrid2.ext.net.nokia.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBXPR07MB286 Subject: [lng-odp] [PATCH 2/5] validation: packet: print reason for suite init failure X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Knowing the reason for suite init function failure helps in debugging. Signed-off-by: Petri Savolainen --- test/common_plat/validation/api/packet/packet.c | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) -- 2.8.1 diff --git a/test/common_plat/validation/api/packet/packet.c b/test/common_plat/validation/api/packet/packet.c index fa5206f..e3d28f6 100644 --- a/test/common_plat/validation/api/packet/packet.c +++ b/test/common_plat/validation/api/packet/packet.c @@ -110,8 +110,10 @@ int packet_suite_init(void) uint8_t data = 0; uint32_t i; - if (odp_pool_capability(&capa) < 0) + if (odp_pool_capability(&capa) < 0) { + printf("pool_capability failed\n"); return -1; + } /* Pick a typical packet size and decrement it to the single segment * limit if needed (min_seg_len maybe equal to max_len @@ -136,14 +138,17 @@ int packet_suite_init(void) params.pkt.uarea_size = sizeof(struct udata_struct); packet_pool = odp_pool_create("packet_pool", ¶ms); - if (packet_pool == ODP_POOL_INVALID) + if (packet_pool == ODP_POOL_INVALID) { + printf("pool_create failed: 1\n"); return -1; + } params.pkt.uarea_size = 0; packet_pool_no_uarea = odp_pool_create("packet_pool_no_uarea", ¶ms); if (packet_pool_no_uarea == ODP_POOL_INVALID) { odp_pool_destroy(packet_pool); + printf("pool_create failed: 2\n"); return -1; } @@ -154,6 +159,7 @@ int packet_suite_init(void) if (packet_pool_double_uarea == ODP_POOL_INVALID) { odp_pool_destroy(packet_pool_no_uarea); odp_pool_destroy(packet_pool); + printf("pool_create failed: 3\n"); return -1; } @@ -174,8 +180,10 @@ int packet_suite_init(void) } while (segmented_test_packet == ODP_PACKET_INVALID); if (odp_packet_is_valid(test_packet) == 0 || - odp_packet_is_valid(segmented_test_packet) == 0) + odp_packet_is_valid(segmented_test_packet) == 0) { + printf("packet_is_valid failed\n"); return -1; + } segmentation_supported = odp_packet_is_segmented(segmented_test_packet); @@ -187,16 +195,21 @@ int packet_suite_init(void) udat = odp_packet_user_area(test_packet); udat_size = odp_packet_user_area_size(test_packet); - if (!udat || udat_size != sizeof(struct udata_struct)) + if (!udat || udat_size != sizeof(struct udata_struct)) { + printf("packet_user_area failed: 1\n"); return -1; + } odp_pool_print(packet_pool); memcpy(udat, &test_packet_udata, sizeof(struct udata_struct)); udat = odp_packet_user_area(segmented_test_packet); udat_size = odp_packet_user_area_size(segmented_test_packet); - if (udat == NULL || udat_size != sizeof(struct udata_struct)) + if (udat == NULL || udat_size != sizeof(struct udata_struct)) { + printf("packet_user_area failed: 2\n"); return -1; + } + memcpy(udat, &test_packet_udata, sizeof(struct udata_struct)); return 0;