From patchwork Thu Dec 17 10:47:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hongbo.zhang@freescale.com X-Patchwork-Id: 58544 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp283875lbb; Thu, 17 Dec 2015 02:51:55 -0800 (PST) X-Received: by 10.140.17.213 with SMTP id 79mr67273952qgd.49.1450349515358; Thu, 17 Dec 2015 02:51:55 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id u84si10783072qhu.124.2015.12.17.02.51.55; Thu, 17 Dec 2015 02:51:55 -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 Received: by lists.linaro.org (Postfix, from userid 109) id 01162615EF; Thu, 17 Dec 2015 10:51:54 +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_H2,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 5D54661676; Thu, 17 Dec 2015 10:49:01 +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 4B5D961659; Thu, 17 Dec 2015 10:48:54 +0000 (UTC) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0139.outbound.protection.outlook.com [157.56.111.139]) by lists.linaro.org (Postfix) with ESMTPS id 64E2B6165F for ; Thu, 17 Dec 2015 10:47:57 +0000 (UTC) Received: from BY2PR03CA048.namprd03.prod.outlook.com (10.141.249.21) by BLUPR03MB1348.namprd03.prod.outlook.com (10.163.80.26) with Microsoft SMTP Server (TLS) id 15.1.361.13; Thu, 17 Dec 2015 10:47:55 +0000 Received: from BN1BFFO11FD050.protection.gbl (2a01:111:f400:7c10::1:115) by BY2PR03CA048.outlook.office365.com (2a01:111:e400:2c5d::21) with Microsoft SMTP Server (TLS) id 15.1.361.13 via Frontend Transport; Thu, 17 Dec 2015 10:47:54 +0000 Authentication-Results: spf=permerror (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; linaro.org; dkim=none (message not signed) header.d=none; linaro.org; dmarc=none action=none header.from=freescale.com; Received-SPF: PermError (protection.outlook.com: domain of freescale.com used an invalid SPF mechanism) Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11FD050.mail.protection.outlook.com (10.58.145.5) with Microsoft SMTP Server (TLS) id 15.1.355.15 via Frontend Transport; Thu, 17 Dec 2015 10:47:53 +0000 Received: from ubuntu1504.ap.freescale.net (B45939-02.ap.freescale.net [10.193.20.87]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id tBHAlK6C003857; Thu, 17 Dec 2015 03:47:51 -0700 From: To: Date: Thu, 17 Dec 2015 18:47:10 +0800 Message-ID: <1450349234-26340-7-git-send-email-hongbo.zhang@freescale.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1450349234-26340-1-git-send-email-hongbo.zhang@freescale.com> References: <1450349234-26340-1-git-send-email-hongbo.zhang@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD050; 1:0Vk5PjRi8i/B76kAKCI1NqTHAJKdUWuxbpUnviHWN2Nf+3Qigfym7P/IikcT+8h9iEuMjhAMXTm0/B9/l1nsvPiQXky3F8p/mSnqNWyp3qpFlGBDYcPcwORG8myKelrGvjsEIwAddjyFsMdfgpRhxxm/RzUgHj/7FGRajmgfXk49t1zrHSzgTpv2otlWu2EERdFl4Ez0AQ/OV2ALHxhzLHZKgnIoL2vC9+DbupiMncaOCaiL59IQPSJl3EhU7LKzJHucMvTlRGjxqC1OJV4AUH/aEXhfljEenkhjrhtG1P4Cdrl5dRMvzDkzsgB3hXnvn6j8tqGJb05fPIhExGwt4t3zfYQEd+Cn0k8RibjYRUSa/tOET5eRcCTyPoz4OpD/ X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(448002)(189002)(199003)(85326001)(50226001)(5008740100001)(86152002)(47776003)(6806005)(104016004)(87936001)(81156007)(97736004)(33646002)(110136002)(5001960100002)(36756003)(92566002)(5003940100001)(86362001)(189998001)(48376002)(1096002)(2950100001)(2351001)(106466001)(1220700001)(229853001)(50466002)(77096005)(76176999)(19580405001)(19580395003)(586003)(50986999); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR03MB1348; H:tx30smr01.am.freescale.net; FPR:; SPF:PermError; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB1348; 2:qRc6ZllA0Vu0WBqXw9SrgnIw5SNuLbto8RfKdlmhkQ1RFH4zbJEKCeUSEvU9+j6Z+rLX6hg6LPDbucwBhwQNf4/0lWoOCRxY2qhRsmpFPXHKIdT94AsYvmQHEtljV5zGIbwMSwumRWswu5LjulVuPQ==; 3:OAqUiveHxq1gNZj4UCHRmVjVMiXuxC43g6La89C+XNS7mWxbtTXrAs/3/BU8zz/GwRGqkG68Ob6QiZD3uhgXGQ1c+0cyPLrlxFNmTiexFlscSxWiS7cC4x+ZoPY5/r0yuFpGeRp72PCiWRSlNHaiVxlGpkHTuAcpjuwgm6BsPSBiuN6gRM3Y13fO5w9CnyxilXri+GIlsTMwO4i27q2VpMd4Ke4nDwhpH38P8zvuZGY=; 25:dJh2h9VHHXTsyBEHp8Qixp27/cBq1sHXEEEIM6Sj5rah25iDwwTGyEWQya17lA7duP1ykhViCKu9XTXMG331p6uZ4lh6LqkBjuQAPRXCXaMpZDXtDSfq56UvchP9eIrOiUTQltGkqENv1CBLf0uSmCNs7q5g0ch+XFdh+XqnndVzrtH6DOSiDVGot4wAtj9MHZtj99fUNKWbFxy7A32OZP8bD3hzRXs2qppErpKLWx3KwThQ6yitnm78y2YRLTphZDMmiZpO7v3ePB/KO5yESQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB1348; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB1348; 20:5be9138ygaFW9Cf3JFTklHPY4JPObyfGwroZSpfMZj1K94vNfFijlIvKR1KSsHGVaF1iONoxjU9x/wdkhldr8SWyXJqkk1CCwdfaSFSq09aiB6ZXm6hInMfdcoAXD1ZBoj/gLb+udAjORlkESlFL33W6Ej3B1i/X4LwqXEyYst7GqQlR3iu4nNVaaaWg9lCp1uFK549HmWyS6eFac1fOqmitrF5SHdX4H3Bv8kZFTK7yXYTwAHmgAv9UsG392Ks76N84r2+icOQ8k+skkWML/5o5WRwoYg9KGG97u5P2Rr7OGRqCpVf4jGWuLx3q+Zx5h6Hfrm7MoUyEKbHmF3MU6Q4YhrrJkSB2bUspb6sXQSE=; 4:l9FauglZ7P+CtwD9mE2Rco8q0O5MU5wDc9FnXuFSMjvAEDo9n9QOf5vpKeTXFicsEXGcKXXJm9/xiVZPwjLnVavUAwO4b7zxl9D06PcRKMeaGMkDwvJk6kubL15ngh6jcEC/uTalJK4QvBawesF76d6sQ3vsoTVL279WByiPFEJzbG8+rBqHR4dgf0WMTD8pQVxXPK7gMMOFE6nqdR43QMDXqOgaV6XapRByM1XzV3y2mx4WyT3VeBd845GKwerpvdwyvJ0TqZ7y2715pZY/HliaBjZCptoiZcejAsHLdlwL5v9YUEhmoULDDfsAUi7HVHEsXk7aENL8FRevpXtf43ystv/s3G6ejJYfVedPAVZVyVMMQZRCAxZRaY4qJY7F X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(520078)(10201501046)(3002001); SRVR:BLUPR03MB1348; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB1348; X-Forefront-PRVS: 07935ACF08 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB1348; 23:5rkIM2kJ2jDaQuZESafoV7d7Po2Uy8+N1U131RXt/?= =?us-ascii?Q?sVhGxgXNaW0sd9oVpF05eQqwGE+TCoygeEayfWGL7N3Cr6vkVR30erNTPNQc?= =?us-ascii?Q?wXUQE4S4LtpywcAAQPFcKU0VtfY3Xjway/Obkf1dq39HmEiS+cnRrybAgiiq?= =?us-ascii?Q?tYv18tEXFAN8/k/z/HWi/zg9DcBQUSiuW/QgwBrVV0ZeVyTf/up4iy+YLxy3?= =?us-ascii?Q?wQ+K3ye6dVBSy6Q7eJCirD+Hp6cgNqu92/FFkAVuuZYLoN22wfSPfgV4I2u6?= =?us-ascii?Q?9tJcwyMGgN00MFnEgbNxojb2inEb5snLteMwCoqvj7PSYK9dctag+++2VlEo?= =?us-ascii?Q?b4qvb7Fi7XS/zoHOb3LmdCsuypSZjH9GCob4AhydUH1xVeiSTm+7Dj48YXz8?= =?us-ascii?Q?nLE5KRHe7ao2cpFOWx709bMrZJukIyAQKE4DupBeu1qq8TMxe7mAm5ySGiLE?= =?us-ascii?Q?36Gk6gOrT8GLCnnzima/uXMKPfg6IniL+fQihvjBnvLA6KbHikd3dpslmGgT?= =?us-ascii?Q?UtNn+bORONXl7yS67S8V+JCyA2fqeNasMccNk6svO2KbgcF89tpuzwmYQQBj?= =?us-ascii?Q?G3yvBYpzmSYKBq3Yy335awchkMs/LJylfX6Bm+VPLSP0byvD4NAXcRyAlCie?= =?us-ascii?Q?0lRkBHFvcuU1y3iFdlkkTL08agMoG896rKZ2yj6CNToY1iNr4whlBrZ0ZR3t?= =?us-ascii?Q?sip0Nu/3IffFMBihTRvZ/Kg1YMPDjR7aPE6U88qXQuLZeTBceCLtugqUzQd4?= =?us-ascii?Q?lFm04Bfmn1fSaEEJKh276ABuIboWJzNogJE0ZU/oiJPi+25+BCg2B3zz1qqZ?= =?us-ascii?Q?loo65Eyeoj85iH+E7/V0jPMU64RbgoxdSx9/6Ag4NmLkGwR0OEbQVBOhJDHP?= =?us-ascii?Q?sa/KxnTyCiapGIMmJpfAJ7cLt7Un1DYKXDpJjC52O1ZwrKMo6Rn0PukrmiT/?= =?us-ascii?Q?/r3bvYPG7J78ABFMoqw+Ntp/DCkI9JkGpJA7ToZ1a+G1A+h+lsR9rKkIseFX?= =?us-ascii?Q?0A=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB1348; 5:4Pnvuy+tzjTv6VnJmEpV25KtNJ0mXNLoNPclmRQ1NCMss96do+IwBhUIf2Y/1WWuAXpkGpmzCRjoGQLw+c3ssi8YVIhQcme3YM65INYVO4rg33woFmVj8d4B6CE5SXpnSQQ05i3Y+wQYcof/H3AWRw==; 24:/oXgPF4LCxcrDuxwpYR3ee7a5hFwoADMvg08ke/LO+9hb2+0zQs+o0gqkFLsUa7khSuPCM/dpq8PH1IKZ60UEku+EsszTET46XscF8gpDvE= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Dec 2015 10:47:53.9196 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB1348 X-Topics: patch Subject: [lng-odp] [PATCH API-NEXT 06/10] test: remove reference of odp_cpu_hz_max() 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" From: Hongbo Zhang All CPU frequency APIs will be moved as linux-generic internal interfaces, so they should not be referenced here. Signed-off-by: Hongbo Zhang --- test/api_test/odp_common.c | 1 - test/performance/odp_atomic.c | 1 - test/performance/odp_l2fwd.c | 3 +-- test/performance/odp_scheduling.c | 8 -------- 4 files changed, 1 insertion(+), 12 deletions(-) diff --git a/test/api_test/odp_common.c b/test/api_test/odp_common.c index 5e6d542..62e1119 100644 --- a/test/api_test/odp_common.c +++ b/test/api_test/odp_common.c @@ -42,7 +42,6 @@ void odp_print_system_info(void) printf("---------------\n"); printf("ODP API version: %s\n", odp_version_api_str()); printf("CPU model: %s\n", odp_cpu_model_str()); - printf("CPU freq (hz): %"PRIu64"\n", odp_cpu_hz_max()); printf("Cache line size: %i\n", odp_sys_cache_line_size()); printf("CPU count: %i\n", odp_cpu_count()); printf("CPU mask: %s\n", str); diff --git a/test/performance/odp_atomic.c b/test/performance/odp_atomic.c index 56fa6ed..6c3a84c 100644 --- a/test/performance/odp_atomic.c +++ b/test/performance/odp_atomic.c @@ -338,7 +338,6 @@ void odp_print_system_info(void) printf("---------------\n"); printf("ODP API version: %s\n", odp_version_api_str()); printf("CPU model: %s\n", odp_cpu_model_str()); - printf("CPU freq (hz): %"PRIu64"\n", odp_cpu_hz_max()); printf("Cache line size: %i\n", odp_sys_cache_line_size()); printf("CPU count: %i\n", odp_cpu_count()); printf("CPU mask: %s\n", str); diff --git a/test/performance/odp_l2fwd.c b/test/performance/odp_l2fwd.c index 67a23ed..66f77f4 100644 --- a/test/performance/odp_l2fwd.c +++ b/test/performance/odp_l2fwd.c @@ -1114,11 +1114,10 @@ static void print_info(char *progname, appl_args_t *appl_args) "---------------\n" "ODP API version: %s\n" "CPU model: %s\n" - "CPU freq (hz): %"PRIu64"\n" "Cache line size: %i\n" "CPU count: %i\n" "\n", - odp_version_api_str(), odp_cpu_model_str(), odp_cpu_hz_max(), + odp_version_api_str(), odp_cpu_model_str(), odp_sys_cache_line_size(), odp_cpu_count()); printf("Running ODP appl: \"%s\"\n" diff --git a/test/performance/odp_scheduling.c b/test/performance/odp_scheduling.c index 2c5262f..8ba790b 100644 --- a/test/performance/odp_scheduling.c +++ b/test/performance/odp_scheduling.c @@ -705,7 +705,6 @@ static void test_cpu_freq(void) odp_time_t cur_time, test_time, start_time, end_time; uint64_t c1, c2, cycles; uint64_t nsec; - double diff_max_hz, max_cycles; printf("\nCPU cycle count frequency test (runs about %i sec)\n", TEST_SEC); @@ -727,15 +726,9 @@ static void test_cpu_freq(void) nsec = odp_time_to_ns(test_time); cycles = odp_cpu_cycles_diff(c2, c1); - max_cycles = (nsec * odp_cpu_hz_max()) / 1000000000.0; - - /* Compare measured CPU cycles to maximum theoretical CPU cycle count */ - diff_max_hz = ((double)(cycles) - max_cycles) / max_cycles; printf("odp_time %" PRIu64 " ns\n", nsec); printf("odp_cpu_cycles %" PRIu64 " CPU cycles\n", cycles); - printf("odp_sys_cpu_hz %" PRIu64 " hz\n", odp_cpu_hz_max()); - printf("Diff from max CPU freq %f%%\n", diff_max_hz * 100.0); printf("\n"); } @@ -849,7 +842,6 @@ int main(int argc, char *argv[]) printf("---------------\n"); printf("ODP API version: %s\n", odp_version_api_str()); printf("CPU model: %s\n", odp_cpu_model_str()); - printf("CPU freq (hz): %" PRIu64 "\n", odp_cpu_hz_max()); printf("Cache line size: %i\n", odp_sys_cache_line_size()); printf("Max CPU count: %i\n", odp_cpu_count());