From patchwork Fri Apr 28 12:09:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petri Savolainen X-Patchwork-Id: 98354 Delivered-To: patch@linaro.org Received: by 10.140.109.52 with SMTP id k49csp232298qgf; Fri, 28 Apr 2017 05:12:59 -0700 (PDT) X-Received: by 10.55.50.204 with SMTP id y195mr9091993qky.264.1493381579213; Fri, 28 Apr 2017 05:12:59 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id d63si3305439qkf.11.2017.04.28.05.12.59; Fri, 28 Apr 2017 05:12:59 -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 D93E362B67; Fri, 28 Apr 2017 12:12:58 +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=-4.7 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 B48A762BCA; Fri, 28 Apr 2017 12:11:42 +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 B21D060A54; Fri, 28 Apr 2017 12:11:30 +0000 (UTC) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20121.outbound.protection.outlook.com [40.107.2.121]) by lists.linaro.org (Postfix) with ESMTPS id 8027062B68 for ; Fri, 28 Apr 2017 12:11:04 +0000 (UTC) Received: from VI1PR07CA0080.eurprd07.prod.outlook.com (10.164.94.176) by VI1PR07MB0910.eurprd07.prod.outlook.com (10.161.108.28) 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:02 +0000 Received: from VE1EUR03FT014.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e09::208) by VI1PR07CA0080.outlook.office365.com (2a01:111:e400:5967::48) 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:02 +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 VE1EUR03FT014.mail.protection.outlook.com (10.152.19.38) 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:02 +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 v3SC9w0R001667 (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 v3SC9wn4001645 (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:53 +0300 Message-ID: <20170428120958.17526-7-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)(39840400002)(39410400002)(39400400002)(39450400003)(39850400002)(39860400002)(2980300002)(189002)(199003)(9170700003)(22756006)(305945005)(86362001)(1076002)(2351001)(6916009)(189998001)(33646002)(2906002)(2950100002)(6666003)(105596002)(106466001)(76176999)(50986999)(77096006)(5660300001)(38730400002)(8676002)(110136004)(8936002)(5003940100001)(50226002)(36756003)(53936002)(47776003)(81166006)(356003)(50466002)(48376002)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR07MB0910; H:mailrelay.int.nokia.com; FPR:; SPF:SoftFail; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; VE1EUR03FT014; 1:x1QRLKmpBJu6Dj/AVJvcZyNIQCb/tJv4enjxtHv8Ut+KUdvexdotMl10/KztDqu8SnKvaJwEOWSNmzXmyDEuQKA2lwlXWEr6Wx79IfA+nAkh6mSVf30RlG0nzy2SJQ7xWJwvWzrAd+vptpjE3DmUt3SLI8yZ/AbhVlV5Ojpgcb7YpixUY6r1ifHiKcYaVICVorjwYeUND4MLc7S+5GQDPbMVy6NwArdzKi7ar6Qmj9CLh1vUgP2IH6Yb1J8sLPfggkUfXa8GFCHRy6s2FlupbFyqOdiGo4tiz2LvzLp88yiv27AhnK7P6hEkZhrBog3Y9HccpPNMK8yfQhOjqU82Xi9emeb+pi41nS1FS+BmZRS8oR9sPCUbiMK7dXZGPgqlnX+2SEo/3QsjqmP5F0ktnzZbhjfyM9RjWo40y28cP7OHxeFoyJDQEEkGZ16aIXJAySUWBLlXu1kY22UJo7dUBi8pz8o7txX0I4QiA7ASdd3xXWhPpHcdlaUCKxGj2z0h/UMD48wLwx7iDh3lzxO50Q== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 2e0f3fe2-cca7-4606-7d3b-08d48e2fa38e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081); SRVR:VI1PR07MB0910; X-Microsoft-Exchange-Diagnostics: 1; VI1PR07MB0910; 3:OCUCk5ql2TsQRNZYMDldS832DvubWdVox8mef+QeD5r36iDvr6HZUVoYwa5E2RYM82SUXRjP0kMYM9gHixJ/SYUN0/qjxgOWGwbDCJKD6RAwsGgisLr6WdiR94q0exlhUau6QlDc7T5wggml+147wJLdmEK0VQWyDSCS3M/q8YvpHhZx1U4WV5q/JYkM98BL5x5yg4BolgJXF2VY/NEIso+AV0ybWWo3L0bbEt3VBpz7zhhYjea3tF922BtU2iFLiTNQmIzitIiIefvdriH22IiPaIahp2eg2IO0eZ1VZhxgcRt50yGTzSFfevt6EZIw3j4E7zvx6PU+/kskFgZzdfcHxUMVNOgtlgwGMO7dL7HHfqzBpu242QdHbCkosGB16UmBaBH/ZiyByT2jhyGtYqnbxDup1Q53q0E8hH7s58z2PHoFVlH3TA6mfPzmJYs+STyEH1dSzc5Ihr6Di4TrbQ== X-Microsoft-Exchange-Diagnostics: 1; VI1PR07MB0910; 25:CHlUt8RlDe5X2qK0KgmEOG9+vDCN5wRdD94oDp51J9SzjtW77WdOZWRkSvAHwM6mTSATbE2R4ED4Dme6RY/I8dCrgw/x3S3RYGDOFjC9Ez2g1EsXMh3ldDwaWE9PUxjK0Bt0bI2iOJnncIUTVuuOvn4oNLKUVZI4OaMBiGfsPpWpsKmn2ESMY7gvZx5EOSqbSn61rNFCBnKzuPXvTwjJO6k7f4m1Fs8/GZyJngIK+IGdDNbgL1v0htowTtVkhnABrkz0e1esW2LOzuaI3GQrM0DV0OpcmBRKx14fKhGl625IBnAdSOJ6VS0PY4jYPFj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2O6EVhSvSFNmdHi44LmvzNWePF5IFn4= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13023025)(13021025)(13013025)(8121501046)(5005006)(93006095)(93003095)(10201501046)(3002001)(6055026)(6041248)(20161123555025)(20161123558100)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061750153)(20161123560025)(20161123564025)(6072148); SRVR:VI1PR07MB0910; BCL:0; PCL:0; RULEID:; SRVR:VI1PR07MB0910; X-Microsoft-Exchange-Diagnostics: 1; VI1PR07MB0910; 4:p3z1LjIe5yqHyy/BeM6FBbt6XaCfCE4j2V/5CT0Gy/Q4jDZIA2pxxCdkoS1ycY392uLsmAxc9QziwaWwiyCDX+EDmwjbEKwtSjnfmkBk/j3aWRGdIF2RuvLXWOhSlUUy8yNeHq4jp06aPii8R1Z2BdBJKpcHs4EezP109JlASnkxxew32SAs4f7Po2R4uicCi0/bCHrR47Mkj+xa1dARCWIWNSYZb3oKNiX/QIpLx1q/uLPdGpWZh6BTsQGb1EMhpzLlFQXeWv9xWmYwcGm9gO4F2iKr3STazrHyD4UayLL8cm4Xq0dot/xpRA//yLhivOW3xGVLtsAfYhZaYn2IXHLn/rZ71IRBRvPbWOOYXfjvM252a+gfqH7U/FGxy8lMhg27DQP3NSLuoXD7oUGQrgd45f/dc4okLoSAnzAwQzwp19jwIPDIC3TSMB1KNY1aJduFcxgiawtzUZT0tuG06xF4AB7ZRqtft04xMjgunt+/+XIpp505mEv83HQsRcgIzkcqqgCPQWPPlhl6ALp5TGfkGRf7/FZoBp73A4hQJTOoL55MhQKU7zukHwZw/H1KSlPzZGgVCETaWL8hvFfNcRC/3SoPma0yluY/rWu/9siMfckrPgpACZCO1az/Q6u8Q9I6hv4HCubU68jLyGMWcDLxSoo/zu+jtrbV6X5dJNnkwmJpmg73X6k4TSnvPylaKc1sBLwlB7vKEvNY7xNCD7Si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yVXFusVr70= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR07MB0910; 7:rsA7+kG91Oe//hUUzkgg3pLSP27marCq7YhgF3VJT07ASnSNBcECeBk/Il2Zq0KPSYE8Ka7CQ4B+Lm9eBl+UMsH6GwpOsIzG/e5bM4VtPKePviOypJz6zJuYRbS5zE/eaQUf4/oDjyeZOUjDOlgNzunGO5eHy/U5stmF0Z0h5lEqxg3kl+nulRJ2S8c09W9tNKSR6OKgkK7b7ObCcUt58OcLATZcZ6hNJEKkuC8Umt+Lruhuol1dfwEyARORzoGfKgHv+jYayWW4d29UViFR11e48mKP39haguHZ+I8rB6EiDRfXk5TtXWKEy8yxnOmXmLT9M3/ifF37xAJ8NutQEQ== X-OriginatorOrg: nokia.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Apr 2017 12:11:02.2995 (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: VI1PR07MB0910 Subject: [lng-odp] [API-NEXT PATCH v3 06/11] 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) {