From patchwork Fri Apr 28 12:09:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petri Savolainen X-Patchwork-Id: 98358 Delivered-To: patch@linaro.org Received: by 10.140.109.52 with SMTP id k49csp233555qgf; Fri, 28 Apr 2017 05:15:46 -0700 (PDT) X-Received: by 10.36.150.70 with SMTP id z67mr2497750itd.75.1493381746308; Fri, 28 Apr 2017 05:15:46 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id u15si6675897iti.26.2017.04.28.05.15.46; Fri, 28 Apr 2017 05:15:46 -0700 (PDT) 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 DD3196071A; Fri, 28 Apr 2017 12:15:45 +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=-1.9 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, 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 2D0E562C02; Fri, 28 Apr 2017 12:12:00 +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 CEBDE606B6; Fri, 28 Apr 2017 12:11:32 +0000 (UTC) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0129.outbound.protection.outlook.com [104.47.0.129]) by lists.linaro.org (Postfix) with ESMTPS id A9A9C62B67 for ; Fri, 28 Apr 2017 12:11:09 +0000 (UTC) Received: from HE1PR0701CA0081.eurprd07.prod.outlook.com (2603:10a6:3:64::25) by DB5PR07MB0903.eurprd07.prod.outlook.com (2a01:111:e400:5105::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1061.6; Fri, 28 Apr 2017 12:11:07 +0000 Received: from AM5EUR03FT026.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e08::206) by HE1PR0701CA0081.outlook.office365.com (2603:10a6:3:64::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.1 via Frontend Transport; Fri, 28 Apr 2017 12:11:06 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning linaro.org discourages use of 131.228.2.240 as permitted sender) Received: from mailrelay.int.nokia.com (131.228.2.240) by AM5EUR03FT026.mail.protection.outlook.com (10.152.16.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1047.9 via Frontend Transport; Fri, 28 Apr 2017 12:11:06 +0000 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 v3SC9wrj001652 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 28 Apr 2017 15:09:58 +0300 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 v3SC9wmx001645 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT) for ; Fri, 28 Apr 2017 15:09:58 +0300 X-HPESVCS-Source-Ip: 10.144.104.219 From: Petri Savolainen To: Date: Fri, 28 Apr 2017 15:09:48 +0300 Message-ID: <20170428120958.17526-2-petri.savolainen@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170428120958.17526-1-petri.savolainen@linaro.org> References: <20170428120958.17526-1-petri.savolainen@linaro.org> X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:131.228.2.240; IPV:CAL; CTRY:FI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39410400002)(39850400002)(39860400002)(39450400003)(39840400002)(39400400002)(2980300002)(189002)(199003)(9170700003)(110136004)(38730400002)(2950100002)(6916009)(48376002)(36756003)(5660300001)(6666003)(305945005)(50466002)(106466001)(86362001)(77096006)(105596002)(47776003)(50986999)(2351001)(76176999)(189998001)(2906002)(33646002)(22756006)(1076002)(356003)(53936002)(8936002)(81166006)(50226002)(8676002)(5003940100001)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:DB5PR07MB0903; H:mailrelay.int.nokia.com; FPR:; SPF:SoftFail; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; AM5EUR03FT026; 1:qJeBKE0nJ8txBHjZGRv1UqbFcv1LDZelSvt1ZUg8oFgwoYRWFRNHDxZZBcOTtQDKKkdrCSuMIQN6q8X8yKSSuugR69fWMI4+jxwpG7gf4ReBSn2EgQQo3mWAvtlKTdOLhR/QkSP5ZghmC5A/lZhelr9QkGV8UmUk9XnHX3CLd/XJv1uBXs0pRdaacrvOyE18cfslqPsOnOk4mLbnGJ3lKncNSSgcE5/hbvBC/9nPtZFBG9he7YKBzEK60rG4Al85QLzBLh3K6I5KP+z/YjoNIb1QuOLwmEc6TEgU4FGFHf/2Y6yjg7zu7HFI5XAfBUL6nC1LH598xB43OHgdZIl80Y2EKSOGG4oItqi/nQg/ZmAjwzYgyKBFMrLey1scFHcKlHPj7y2VvAtkfvOnVReza7Qvj0NoIrmTCVQoSZRqNKwvKBFTsK9xXYcRvLv8FSB6VCRN7+Xbv6dqmPjbJAKNOjjfwsr58s+tndEipP+nU901H9fStFsELgNV7bCHooxMy2CR1PLmuzC93ElU/0ddJA== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 2537640c-5e8c-457b-55d8-08d48e2fa5f7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081); SRVR:DB5PR07MB0903; X-Microsoft-Exchange-Diagnostics: 1; DB5PR07MB0903; 3:7Y08iCkTExUYCRLY/ifT2+8Qq2jR4Dp+qTQTdj3hBRw+y5juAQ2ymTtwFIiiOvy+p+C+4gIuo3O44Rm2mznytoKIVQldE6Rt4O7+7j1YXuQanS6TVYiE2pZyAAGxnAczDSnlqk6nN8nHOhDMIpAJeEx8HVLb5AzPC0dadkB0UTpFSA1p5CaP4FkPi1NLNSTy02vi5idJI9cUbVuxyJKoFEgVfIZuA59LLWlvGMCz/lCjJLIlKMLg4950b/AKjS/XI5tWAqGDC85jH7nSSWKLJvzlNVBguwy80QaxME9x0VKdT+4tmur9HTS9/rshacVOBFusg6tkzSw5P06h0mO4mSBW3SOXByKV5c9ZlWmDr7yhgPLqxgzJeK6/roxEw39Ny0JymkFXD8Xfe1xrPY9CMRnahSxfxXZB7wrghj24g1pHQ16sBv+j2EI3G2ktIYmYS2ZZBsGCC16NpYvQafrJPQ== X-Microsoft-Exchange-Diagnostics: 1; DB5PR07MB0903; 25:cSd4aWvVzzQD5FCZjCjlAogbHdwT60vq9nincv8kFw7dy8+YJbidl1fFtKWkPJCqkl/ih6FhY2qD4dYC5TacLm6+bQSMNTFnqPRsF5ek9djbkT5hN0LIdJvkm9RSlVgq4Yxzz8cjdyvqueDllGU+n8yAabp2DckJ3nQ2/kGG0XrpgbWydRzr6I/wbFBNUTbPTUXazGVQTGrJQNr5AkyUhaoJQQEF+ctkdklMfbuxjkQ/YQW6dGPCqbj1pXIjB0zJE8UySZDGLZm6qpuMPcd5XQa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pm8wvZWwjGgQkG0MXcDPk7i192/j8gI0uHiV2aJwq3GgpRSDL/IqBHj8VAs0= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(278428928389397); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(13013025)(8121501046)(13023025)(13021025)(3002001)(10201501046)(93006095)(93003095)(6055026)(6041248)(20161123564025)(20161123555025)(20161123562025)(20161123558100)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061750153)(6072148); SRVR:DB5PR07MB0903; BCL:0; PCL:0; RULEID:; SRVR:DB5PR07MB0903; X-Microsoft-Exchange-Diagnostics: 1; DB5PR07MB0903; 4:JUMBMXNckQoHWaVcVTrA0j1asQQBi6mipVaVvkxsWZJbx8MJcz8Rt4COddpTqjdmazlpl8cfDlGfeLp/U5Q8H5YoJVnDhdKD/a/gUE3Ph1dSXuOltRJA+Ata0tPSE789EZrt3kVfcx9F99+h021IiOs3hbOTZOEHWqAXbGjt0KphwRil7e1H7DEUKbT9b2xpxtx0nm+8zXR99KP9tT6YiBWYUs6nHYYFWnBQ3opMkOOJ0b9AWyTT94FvNJQW5gtSNbDa0w0u+xCGN3JIbazi5CbGnJD7kIFz0WGo3vkwitDGUyzVeb+5cAm5EKflBQ47VoP9V0XRYTh5diEAtdNzx28Mb3r9A8hb4BXwAJAP4J0uTWMTKWANBALgdltNolPiot+0H53zEas0kBWaXS8zkMiMI0YN54qhDh0krqvLT1IWfkT7go0LVV4IKCTluSPJvty/j1A1hr9KCwuRJnD6t32n/LSpsWABFZN/L5anEIROSBCNzW5Z6J1v4c7206oIWiBAfK5ggOLI/M1JeaIiD9okneHphL1Wqfjamq/FeqRj6OrzVN6yvjdW/6Hcgvk5LBtM/DWd+AcQsxNyW6PSLvjZZuPTZile304E2jW6sreSdTaM3LwjjC1VhIz1Npl18iNVKCJ9LjXsE+1CkEVWXe7bYqcQ8/X3vOCY1a0tI+MwqH4RA6N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2+x53IpySuQoTQKzIcPZAWvQz9RTvBcZlfdTsDuecfMrg1lRoshIbMjvzWe0MHLeHuWDL8moxTSc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB5PR07MB0903; 7:ImrcI6vZha7gjk6vXjT6/Ue/L2a6hXABx1cu8H4g1Sab4WaNaakN/nDSHO2lfcxmM3XoVXLJrNv5pzo+1XpnKRnPok2WeXOTCGDGh5y6iQghR8Dg6xpuSpATgdvUElHRXdkUKFFWI5nszmHzj+VunX1+wC2yjx0TP5yBo9nJUIOQ/X+cVo41zzl1mUr/vVf/CRlA+CyvuxcWuXAnj1I9Fc1TMUd6HbmAHps5ShssKK/rqmcL9+tH3XT3+nORwC1IiF5Ae2bhCe2pE6f7sTeifTwBUBC+wXSEi5ASdGpYE/JTst7LStKXj3JfpcH2doC1w/+ZeB9z6xqchSAadVjThg== X-OriginatorOrg: nokia.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Apr 2017 12:11:06.3577 (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.240]; Helo=[mailrelay.int.nokia.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR07MB0903 Subject: [lng-odp] [API-NEXT PATCH v3 01/11] api: time: remove odp_time_to_u64 from API 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" Debug function that converts odp_time_t to u64 is unnecessary since odp_time_to_ns() returns time as a u64 (nsec) value. Application can always use that as the 64 bit representation of an odp_time_t value. Also validation tests for odp_time_to_u64() were erroneous since those compared returned u64 values and expected greater/lesser than relation. Signed-off-by: Petri Savolainen --- include/odp/api/spec/time.h | 13 ---------- platform/linux-generic/odp_time.c | 15 ------------ test/common_plat/validation/api/time/time.c | 37 ----------------------------- test/common_plat/validation/api/time/time.h | 2 -- 4 files changed, 67 deletions(-) -- 2.11.0 diff --git a/include/odp/api/spec/time.h b/include/odp/api/spec/time.h index fcc94c98..29175eb5 100644 --- a/include/odp/api/spec/time.h +++ b/include/odp/api/spec/time.h @@ -158,19 +158,6 @@ void odp_time_wait_until(odp_time_t time); void odp_time_wait_ns(uint64_t ns); /** - * Get printable value for an odp_time_t - * - * @param time time to be printed - * - * @return uint64_t value that can be used to print/display this time - * - * @note This routine is intended to be used for diagnostic purposes - * to enable applications to generate a printable value that represents - * an odp_time_t time. - */ -uint64_t odp_time_to_u64(odp_time_t time); - -/** * @} */ diff --git a/platform/linux-generic/odp_time.c b/platform/linux-generic/odp_time.c index 81e05224..0e5966c0 100644 --- a/platform/linux-generic/odp_time.c +++ b/platform/linux-generic/odp_time.c @@ -176,21 +176,6 @@ void odp_time_wait_until(odp_time_t time) return time_wait_until(time); } -uint64_t odp_time_to_u64(odp_time_t time) -{ - int ret; - struct timespec tres; - uint64_t resolution; - - ret = clock_getres(CLOCK_MONOTONIC_RAW, &tres); - if (odp_unlikely(ret != 0)) - ODP_ABORT("clock_getres failed\n"); - - resolution = (uint64_t)tres.tv_nsec; - - return time_to_ns(time) / resolution; -} - int odp_time_init_global(void) { int ret; diff --git a/test/common_plat/validation/api/time/time.c b/test/common_plat/validation/api/time/time.c index 530d5c07..df65c719 100644 --- a/test/common_plat/validation/api/time/time.c +++ b/test/common_plat/validation/api/time/time.c @@ -398,41 +398,6 @@ void time_test_wait_ns(void) } } -static void time_test_to_u64(time_cb time) -{ - volatile int count = 0; - uint64_t val1, val2; - odp_time_t t1, t2; - - t1 = time(); - - val1 = odp_time_to_u64(t1); - CU_ASSERT(val1 > 0); - - while (count < BUSY_LOOP_CNT) { - count++; - }; - - t2 = time(); - val2 = odp_time_to_u64(t2); - CU_ASSERT(val2 > 0); - - CU_ASSERT(val2 > val1); - - val1 = odp_time_to_u64(ODP_TIME_NULL); - CU_ASSERT(val1 == 0); -} - -void time_test_local_to_u64(void) -{ - time_test_to_u64(odp_time_local); -} - -void time_test_global_to_u64(void) -{ - time_test_to_u64(odp_time_global); -} - odp_testinfo_t time_suite_time[] = { ODP_TEST_INFO(time_test_constants), ODP_TEST_INFO(time_test_local_res), @@ -443,14 +408,12 @@ odp_testinfo_t time_suite_time[] = { ODP_TEST_INFO(time_test_local_sum), ODP_TEST_INFO(time_test_local_wait_until), ODP_TEST_INFO(time_test_wait_ns), - ODP_TEST_INFO(time_test_local_to_u64), ODP_TEST_INFO(time_test_global_res), ODP_TEST_INFO(time_test_global_conversion), ODP_TEST_INFO(time_test_global_cmp), ODP_TEST_INFO(time_test_global_diff), ODP_TEST_INFO(time_test_global_sum), ODP_TEST_INFO(time_test_global_wait_until), - ODP_TEST_INFO(time_test_global_to_u64), ODP_TEST_INFO_NULL }; diff --git a/test/common_plat/validation/api/time/time.h b/test/common_plat/validation/api/time/time.h index e5132a49..10956294 100644 --- a/test/common_plat/validation/api/time/time.h +++ b/test/common_plat/validation/api/time/time.h @@ -24,8 +24,6 @@ void time_test_global_sum(void); void time_test_local_wait_until(void); void time_test_global_wait_until(void); void time_test_wait_ns(void); -void time_test_local_to_u64(void); -void time_test_global_to_u64(void); void time_test_monotony(void); /* test arrays: */