From patchwork Fri Apr 21 13:11:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petri Savolainen X-Patchwork-Id: 97898 Delivered-To: patch@linaro.org Received: by 10.140.109.52 with SMTP id k49csp319815qgf; Fri, 21 Apr 2017 06:13:21 -0700 (PDT) X-Received: by 10.55.132.3 with SMTP id g3mr11957185qkd.300.1492780400996; Fri, 21 Apr 2017 06:13:20 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id o31si9487336qtb.316.2017.04.21.06.13.20; Fri, 21 Apr 2017 06:13:20 -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 B396661C8F; Fri, 21 Apr 2017 13:13:20 +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 E5DE762C56; Fri, 21 Apr 2017 13:12:08 +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 0DAA96192F; Fri, 21 Apr 2017 13:11:59 +0000 (UTC) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0091.outbound.protection.outlook.com [104.47.0.91]) by lists.linaro.org (Postfix) with ESMTPS id D88E76192F for ; Fri, 21 Apr 2017 13:11:54 +0000 (UTC) Received: from DB6PR07CA0086.eurprd07.prod.outlook.com (10.175.238.24) by HE1PR0701MB2121.eurprd07.prod.outlook.com (10.168.36.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1061.6; Fri, 21 Apr 2017 13:11:52 +0000 Received: from VE1EUR03FT060.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e09::205) by DB6PR07CA0086.outlook.office365.com (2603:10a6:6:2b::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1061.6 via Frontend Transport; Fri, 21 Apr 2017 13:11:52 +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 VE1EUR03FT060.mail.protection.outlook.com (10.152.19.187) 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, 21 Apr 2017 13:11:51 +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 v3LDBZtm025468 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 21 Apr 2017 16:11:35 +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 v3LDBYOh025438 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT) for ; Fri, 21 Apr 2017 16:11:34 +0300 X-HPESVCS-Source-Ip: 10.144.104.219 From: Petri Savolainen To: Date: Fri, 21 Apr 2017 16:11:31 +0300 Message-ID: <20170421131134.27992-6-petri.savolainen@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170421131134.27992-1-petri.savolainen@linaro.org> References: <20170421131134.27992-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)(979002)(6009001)(39410400002)(39860400002)(39400400002)(39840400002)(39450400003)(39850400002)(2980300002)(189002)(199003)(9170700003)(5660300001)(356003)(50466002)(81166006)(110136004)(38730400002)(105596002)(189998001)(8676002)(33646002)(5003940100001)(50226002)(48376002)(106466001)(53936002)(86362001)(47776003)(77096006)(2351001)(36756003)(6916009)(22756006)(76176999)(50986999)(2906002)(8936002)(1076002)(2950100002)(6666003)(305945005)(217873001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0701MB2121; H:mailrelay.int.nokia.com; FPR:; SPF:SoftFail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; VE1EUR03FT060; 1:p960Xd++rq8FJh2AubpozD3wTo6eO80Mjuvix1YeNAR0YzBsU1utVSxS3xU5AJBZZuZH3Iec7iCZjagc+pI5aCEP/oQRoTYDzCGMS6lHjlIPVf8dYKS9DbH1wN0tlFAobR3Bfb/pShYeVowki/MQd+gTRtO1UhZwV7lTAOrLSNR6yZNhKXjJgprHcy/87zRgf8ZSJs2vfFD3xR0+rk4DNlpy0c+475WaGAR9eeGjX1KzAcctP4H4oE7nkjW9uFWBCrVj+SHyVhIS0RgrMNIXrNzImE4lnugJQZOj4Q2fA9+qpH4TUaXW2mH3D2b3tHWyMUq5uU5lndjUFl+NfXtgiCGy5l3JEEV7yo9qfq4mcwNLMhlsVe9VNd+wYgX4rQfz1ane4Y1XuvLDEkVf22kO1JQdujI0kWFV+BEr1YEv1tSxNc9/vlJWoTXgcSwMvn/u4po1K0ORTPpX4Tiq9vN6hwGqMgXW7X3iJTOtdoook/LUk7YwlR+JcBq5COjwGFifjkNHwS3YIeIwGnsOsLBJFA== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 24bf1361-fe52-4623-0c6d-08d488b7f9f8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081); SRVR:HE1PR0701MB2121; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB2121; 3:yDwM07OHDTWD1u8faZGJFV7gK015TOcoQNwG5zraJDI9EmVcGkrvgtCezhsMgmDdutDnN9pVcm+OOmqEp98JnFfa44nK0wZAOyYT8RYEbXyUu4NWNe1iuLYjlhHIMZWLB89AM7X6FVk20uDBWKSvPPiufiIljceVde6c9LVKuRlMSbTEiZYdX4cCSisttaGZ3PTjxmNBWhx66wmi9fnK7vV9j+ZHL6qwCGHbmz8OZqgbcVYnEgNIYFghKexnsaXq035ylGuFnh9DOiCD4/ieyvXcHXxO8uknLHtS8Law89eKhdx2m2l+wiEoK/B5y+HGveUQ9w7t8vjVwQqvtWbRy/bizN1oyK1KzG6VYIq1mwogTF5E0bVvLAYBwsM1bo/7dXKjB8EIDATxvQx3SvwQIZzlI3VsFeJCNK2HmvYDq9XLie78MnwtH02hVUiiPohqnTIhTMw2EFTquH2dJkIKTQ== X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB2121; 25:4T23uX6u/5KYvOYtNg7yKAxBlIydY5eVCOuHISEwM+mm3Z6Pj5gbr4A6IvLZXH4HFLHDkA1AI3IVD06FLSYDejew+gdcNocdfCj9TDwhiSKRYbjDT0XAAwiWN9RnsGDcn51LY1Mv2HGySfS2tEQD0xxDQ3bbX96AHnRI7EUAJsne8C/tRkIqwxMX1xrY/W7nFfd5F0TNhzceb6IOZSMwQJE763BDnEOYfkeM7dEpQMWu8i9hHc+UDYAT7i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fh7dX8DbGj0oce7rmxtKirs5uAQtucMXSI0GDAXDekuODWFVWdfe8t3t2vtCQPn9V7CU8ri8z8= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13021025)(13023025)(13013025)(8121501046)(5005006)(3002001)(93006095)(93003095)(10201501046)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061750105)(20161123564025)(20161123558052)(20161123555025)(20161123560025)(20161123562025)(6072148); SRVR:HE1PR0701MB2121; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0701MB2121; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB2121; 4:NkELJ9ZANJPd44sJsNPggXdKcJmCwnqsPHPUA6DD+GbD/YLBJ2XU7S5Bnze93/KH7Cgqjdp+Rj/yDBxg6tk46+eWiGLJ1Y4eXCc2c3HQUfD3KbIDK38V74kwB7FxLL8e5QsiFPh48ZxqZc+ljkjnPanmx8l8PxpTWa/ACmFhP65urAuzhpQbBy4RjNRZ6b0bLJV6ItT6k1BcGxkWhVYa6qUtFrAxGMdXGruhOHh8KtlEccij9eQSyPkg9KSutr9CnY8L/oLrbOEMV2e4oGri59ZtYFFVm92CxV3nLclGqxXkb0F+WcXIrQmomEFaokkK/0l3P1l4MPw4W/k5OaM1tMSq+icGx+sIHy7II4dWPbZZTGWKDqEKdx779tgzJDF3ul1hKECtlgN33q46e5oqyCbobg6xe5jMlKLroU+LwpJS+MIvRcst+gn2E9xSRS6mjtQwPIyX+ai6+WqT+nL3/fxOq+x8gxGYqHAORUYObrBNyI2ojbb3uOY5w6+28eUN7XEj/XBUmQJ3t+vlmUwQilq7suJfN6GTF9Zqj6PPeqniS73SRjFhy3SGaYpPtZyRqCvQAsachqa6KutGwF4YdrBsNu1xMRpjDDsh0yuCeJUCGkg2td3dvOFKuWZR2rmHyphUyV4gvK7KRrz8T6nKnX4cW9oOt2wwMEDT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7lF/92oQkvMBQoJpJmtwSdBsCKV35Ey6lF85uWtXox9Ox2gg==; 24:zKR+RS5exNWIC9nYsPaB6xWazGMFw8SZiyyFTjJJqWywrh4BmEy2Yvc1j7dzXrdM8t+gcLFqNAGSWAZW9dXH81PZkxrnMziunjRrRbzj3XA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB2121; 7:lgPgrnN+PyEGwF+MisjmxbMVNUxeW4L4+uNh0KG/zHkX7QVnS1qsZwiHnoTg0ZDjO/nr5t9DlktvraHg2hLECDJpi2WHXgbsebKGsKUpYIwH/ktzFC4SenYLUgI3TaXR43uQJPP9YTWk4+Zio/xSilhgZP07yfRcB/6lLu3kl/7Bvd593lSAs+ItRu/BkEW5ScBI/h3Yyn3VGh1K99vem/xfjoT/djOtuviAoYgeTYbUOI4q1o0SKMt9mehC1TJuWCA9xq9Pg1l/+IepRlIpHJkQ0460vHUO3DaZ11N3NgjjMVQPjeJds9M/vlcmL4EiFKtR5yEehBJGBAgtonqr0A== X-OriginatorOrg: nokia.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2017 13:11:51.8226 (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: HE1PR0701MB2121 Subject: [lng-odp] [API-NEXT PATCH 5/8] test: sched_latency: use sys_info_print 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" Use the new system info print function. Signed-off-by: Petri Savolainen --- test/common_plat/performance/odp_sched_latency.c | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) -- 2.11.0 diff --git a/test/common_plat/performance/odp_sched_latency.c b/test/common_plat/performance/odp_sched_latency.c index 2b28cd7b..f2aac06f 100644 --- a/test/common_plat/performance/odp_sched_latency.c +++ b/test/common_plat/performance/odp_sched_latency.c @@ -634,16 +634,7 @@ int main(int argc, char *argv[]) return -1; } - printf("\n"); - printf("ODP system info\n"); - printf("---------------\n"); - printf("ODP API version: %s\n", odp_version_api_str()); - printf("ODP impl name: %s\n", odp_version_impl_name()); - printf("ODP impl details: %s\n", odp_version_impl_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()); + odp_sys_info_print(); /* Get default worker cpumask */ if (args.cpu_count) @@ -654,9 +645,10 @@ int main(int argc, char *argv[]) (void)odp_cpumask_to_str(&cpumask, cpumaskstr, sizeof(cpumaskstr)); - printf("Worker threads: %i\n", num_workers); - printf("First CPU: %i\n", odp_cpumask_first(&cpumask)); - printf("CPU mask: %s\n\n", cpumaskstr); + printf("CPU mask info:\n"); + printf(" Worker threads: %i\n", num_workers); + printf(" First CPU: %i\n", odp_cpumask_first(&cpumask)); + printf(" CPU mask: %s\n", cpumaskstr); thread_tbl = calloc(sizeof(odph_odpthread_t), num_workers); if (!thread_tbl) {