From patchwork Tue Sep 15 13:55:38 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: 53664 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id DDC7F22A0D for ; Tue, 15 Sep 2015 14:06:01 +0000 (UTC) Received: by lbcao8 with SMTP id ao8sf57535165lbc.1 for ; Tue, 15 Sep 2015 07:06:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:mime-version:spamdiagnosticoutput :spamdiagnosticmetadata:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :content-type:content-transfer-encoding:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list; bh=aW0IQ4nuTzAU86oVPFjecrT1f+yvhlHODxJFoftocno=; b=h1O8c8IVK03O7qCvB3ueIY3Q0/xwP1VqP1PCDTFk6sS0tCDR0I1gXDsuIJWaNl5ffD OQU+1aa7Bmtlq7X1A+XTi6ZJZR+QbqdyDW5V3vzdmXdUqyIW7hTnQBFHc3WINIqR/wI8 lgQEpWKGnbP1GvBFR4k3S4yTBBLn50HQDcJnOS4gMDJ7MoVBQU0/kEya+cHG6UxjwfsZ Z9ld1Pdh3M4JQ27Bt4HPFoRAa9vxGlXCdomGAB5CkaDxxoLdboG+LTQoEi0gYsifzprA ZCJtv1U0HRZU7jGkr6y4OC20m4h6bD7K9GZuuMQt8Wr+enVOtySJBp11NctitdUHh4lR s+cQ== X-Gm-Message-State: ALoCoQlTHb71iLxY6y24UDhubXDFTpm8fzCcVUtoAv+iISEvxl3oDi+H8hEHnwBENVwBKvBjj+6N X-Received: by 10.112.158.202 with SMTP id ww10mr4392558lbb.13.1442325960885; Tue, 15 Sep 2015 07:06:00 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.225 with SMTP id e1ls805005laa.108.gmail; Tue, 15 Sep 2015 07:06:00 -0700 (PDT) X-Received: by 10.152.5.196 with SMTP id u4mr3965242lau.65.1442325960740; Tue, 15 Sep 2015 07:06:00 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id x2si13836435lag.164.2015.09.15.07.06.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Sep 2015 07:06:00 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by lamp12 with SMTP id p12so107113385lam.0 for ; Tue, 15 Sep 2015 07:06:00 -0700 (PDT) X-Received: by 10.112.64.72 with SMTP id m8mr14460479lbs.41.1442325960301; Tue, 15 Sep 2015 07:06:00 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1826072lbq; Tue, 15 Sep 2015 07:05:56 -0700 (PDT) X-Received: by 10.50.143.1 with SMTP id sa1mr6444824igb.32.1442325956586; Tue, 15 Sep 2015 07:05:56 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id l9si12279704igx.17.2015.09.15.07.05.56; Tue, 15 Sep 2015 07:05:56 -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; Received: by lists.linaro.org (Postfix, from userid 109) id 0589E62CB9; Tue, 15 Sep 2015 14:05:56 +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 9C20B62CA0; Tue, 15 Sep 2015 13:57:49 +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 55E85619B3; Tue, 15 Sep 2015 13:57:36 +0000 (UTC) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bn0101.outbound.protection.outlook.com [157.56.110.101]) by lists.linaro.org (Postfix) with ESMTPS id 2DC5462C39 for ; Tue, 15 Sep 2015 13:56:24 +0000 (UTC) Received: from DM2PR03CA0050.namprd03.prod.outlook.com (10.141.96.49) by DM2PR03MB493.namprd03.prod.outlook.com (10.141.85.139) with Microsoft SMTP Server (TLS) id 15.1.268.17; Tue, 15 Sep 2015 13:56:22 +0000 Received: from BL2FFO11FD016.protection.gbl (2a01:111:f400:7c09::152) by DM2PR03CA0050.outlook.office365.com (2a01:111:e400:2428::49) with Microsoft SMTP Server (TLS) id 15.1.268.17 via Frontend Transport; Tue, 15 Sep 2015 13:56:21 +0000 Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BL2FFO11FD016.mail.protection.outlook.com (10.173.160.224) with Microsoft SMTP Server (TLS) id 15.1.262.18 via Frontend Transport; Tue, 15 Sep 2015 13:56:21 +0000 Received: from hongbo.ap.freescale.net (hongbo.ap.freescale.net [10.193.20.3]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t8FDtiXc031670; Tue, 15 Sep 2015 06:56:18 -0700 From: To: Date: Tue, 15 Sep 2015 21:55:38 +0800 Message-ID: <1442325342-13806-14-git-send-email-hongbo.zhang@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1442325342-13806-1-git-send-email-hongbo.zhang@freescale.com> References: <1442325342-13806-1-git-send-email-hongbo.zhang@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD016; 1:cgFQG78cY+LFiQwB5BTxwBc9xDlRNdoGqC5SHTZfD55YFsceYGTb1Ooiva+zG+WcdJZb+9UZWnmwxY0DrO0inFqh/dVlbWnzyuVYy+0nXinZkORPMrJTFlOBi+kfDWOJs9jbNEFeRn5YSOsI+mEu/yIVYzB904Yu25wS6dj4aSkOhSwzOq3sIHjQ8dk13gZvI3WFYd7sMmshIYgsgzLKqpuEdh7YznlzYuHJPTO5TLWhxaUnQAiN583F2hkz7oiXOjl/CMwCxQPzgINZE3hethy7SHhCdWxhf5bI/PG57eTnlGDhHGZk9wyBBace1JIpER8frt2igrK6VcidarZsh5g40cxdxTfOqzWX0FU2+ELEvcYsGIL0WlcaD6iQdYefbPgnU2dQxCN4mKQCX3toEQ== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(5001860100001)(92566002)(50226001)(48376002)(19580405001)(6806004)(50466002)(86362001)(87936001)(19580395003)(69596002)(86152002)(104016003)(47776003)(85426001)(33646002)(81156007)(189998001)(5001960100002)(64706001)(62966003)(229853001)(76176999)(110136002)(11100500001)(2351001)(46102003)(77096005)(105606002)(4001540100001)(5001830100001)(77156002)(50986999)(106466001)(97736004)(5003940100001)(68736005)(5007970100001)(36756003)(2950100001)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR03MB493; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; DM2PR03MB493; 2:toTje/hhjuA30bRHzdYIjus6UlnTw7sjpfNAm/DCsjAPSjyunGwXfLQZsuiNspOT9QXZM0vA6bmKI3q53GwxA+91T/wKc23QrGxAknTJnf7RIi0g06zaX1ZpgPLeO1ar/TVnVOJwSXsu9U0/ayXAc11+zm1lnxwwkxWV825Jsc8=; 3:tUJWOH/UEmoabjVZl/TGE09bx5Xhciptvi/pNRwnR/n+PFLVG9OfBDYoS13xw9ZUlv/l4Gey5YBDuiMii15lIAYqXc6RgdnCjslmSmOkYeVNyPA+CpPY/dch1AUMjTvc44afivWQV1oGkouLUtGVA3BNM+xEXJ781DmpQWVBGlp16AaNaz4Zh9DU9CTOvMaG1F6YK9fWdld8jRkSGER0bSic9JYM1+PtfKLKiwNMJ/k=; 25:F0s5Jk1PyRSqtYvp8x3AhrZWnrLCLgHRowEQzgiF2Ierwk26CEYRyktGvEeIt9trvqii72GgRnK5LGN5DVsweumfoOdxVeyeha3T3UWUi9Sgyxkh1EfYOcHT2lOKxbshrwcNEhKn6B9Rieh5DlE8EYzHMCjMoHg1DDf1zA5w0PNijgjSrJ7WRXVgaoHry++I5dUOkj7pa29QBqW8PWqAmRlFmWIeNrP5168Xx457b4kLKkcyxYmNETGxlgsRCkr8 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR03MB493; X-Microsoft-Exchange-Diagnostics: 1; DM2PR03MB493; 20:N1JTemmBkGsbKRpmxyZVER7rwT+6VcCcThTNLxCTiKvlxzOoMSwi01ehIqO3tKCt/6nDrFMwNekLuHIS1YwaFwrN3xB+Nm2Wu4HdbBxQBHF5cGll7uxzqvAOYsygUlN02AOlD14XK6JazJATPB+g02dcFzzltpmaxrG2m8Pm0mqPmtJrmZXxFVwP22E8D2Ad2BhxAIr+LeUmNJZWK0XEpypxSL4u/Zt//5aCUAjz4niLCy7FnzL5nBgqfb49qjJ+6Lg6rf8N3heID3sat7GkVVLqxghmgGr5ADCEu4pmgQWv620xHJTNl++63rKX5Hq/P7uMBYCMHLXgkXg6gKFpxx0hHfM8cORsN6MGuAc8b0M=; 4:H5w/erkayFQ5FjWkAdvubaaJtJyOsmaFaTKA34+2zuL/idUkStXEANWBq0Qw+pdtA8mZTvdZstKmnqvHYrxH6qLrmeFfDU6WfwPLG/4iOmuw18YFcCGBJ+HME0tec93L01AkUDbNd5EKxJrDxv5O1JsTMFhBBkSjbX+RbKkjRX8NkiQ5hCpRuPAcgLU8LGxPCbSaULfAjhP969x8oURhEqaOgfx5DDE3dNb6+mou3i+lfp2DFfT8s/1ffxRFWyfSS0KFzwGkvNs4NK/zvag/FwYDWLpjRVJDYL/RRiKbV1ulbPR9fRVuqThzcWEUf5dy5jadjCbLABT0MMjTWRSD5g== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(8121501046)(520078)(3002001); SRVR:DM2PR03MB493; BCL:0; PCL:0; RULEID:; SRVR:DM2PR03MB493; X-Forefront-PRVS: 070092A9D3 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR03MB493; 23:1C/CilS/TTTQUJbmykn5Vb+zOzOKUxMcNmbiYd1/as?= =?us-ascii?Q?cnZBjTOvJQ5adqoqjFonNhYQPbUyLNbkWzoaNKdPoL5gAJCr5PmEcXqOBYbh?= =?us-ascii?Q?lW4bmXaXwmQeR2r4zW5bmZnI1uwJynN7o5pkmeM2gwheVM/ZQRPbhn/AaVRy?= =?us-ascii?Q?GFZAq5WUZD/RicuFkrnp+mt3yP0nzwJAYCRnQnK6OR6CnucT4RI8Qd09uvo6?= =?us-ascii?Q?um4gQgZDut0pUlQqXMONdiRnDbwLJ4GfVI+r/hnsMZhVev8ocPcm8DNDXLlT?= =?us-ascii?Q?4WbSJDnHSaT+ZboHjZKBL1UmFSXKEm7ZUiKF9494FZLIv89nL6VKwSNArvMC?= =?us-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MoGNBjOgya0sQpzGIUs+?= =?us-ascii?Q?d0zeenEb2y5FbcBfW4tuHCJo2I5x6490bhgH8g?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR03MB493; 5:RD6ZC3vLzmuVoUwjIaVS5a3jPIZJqWU3KBbHy5r+0ayBMFVaPbgWxhjusvfXqgGdUapvzHCcEF96E6IR58oZBs6iRr+WJ6Qkah8ByX6zOwkC5CqhWYm4KAmnNwOrRJia5Yj68TlPcKt5P4AMA7V69Q==; 24:sldCndsKeXt4jCdJj5AvynXLEe8U/Tnpr1I+wRN/lKOG6/Dtzz12Ez39JYDW/fkhZW69pMJfBAwhPT2dx5P+YNroVAo+3+rxF0Wx3rQ6TTg=; 20:+UNRaomTeDPX6EdrIVAl5kM7dbdJ2O8dinJXHFvyvnpGCvQLgNBxWv8tndXRsJegrHkNx5uokGY+Kwht+sCfpw== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Sep 2015 13:56:21.3516 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR03MB493 X-Topics: patch Cc: petri.savolainen@nokia.com, stuart.haslam@arm.com Subject: [lng-odp] [API NEXT PATCH v5 13/17] example: update CPU model string calling functions X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: patch@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Hongbo Zhang The odp_sys_cpu_model_str() is moved to cpu.h and then renamed to odp_cpu_model_str(), so all the calling functions should be updated too, this patch updates the example part. Signed-off-by: Hongbo Zhang --- example/classifier/odp_classifier.c | 2 +- example/generator/odp_generator.c | 2 +- example/ipsec/odp_ipsec.c | 2 +- example/packet/odp_pktio.c | 2 +- example/timer/odp_timer_test.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/example/classifier/odp_classifier.c b/example/classifier/odp_classifier.c index 685f335..021d4dc 100644 --- a/example/classifier/odp_classifier.c +++ b/example/classifier/odp_classifier.c @@ -745,7 +745,7 @@ static void print_info(char *progname, appl_args_t *appl_args) "Cache line size: %i\n" "CPU count: %i\n" "\n", - odp_version_api_str(), odp_sys_cpu_model_str(), + odp_version_api_str(), odp_cpu_model_str(), odp_sys_cpu_hz(), odp_sys_cache_line_size(), odp_cpu_count()); diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c index f7aed76..9f9511f 100644 --- a/example/generator/odp_generator.c +++ b/example/generator/odp_generator.c @@ -1063,7 +1063,7 @@ static void print_info(char *progname, appl_args_t *appl_args) "Cache line size: %i\n" "CPU count: %i\n" "\n", - odp_version_api_str(), odp_sys_cpu_model_str(), odp_sys_cpu_hz(), + odp_version_api_str(), odp_cpu_model_str(), odp_sys_cpu_hz(), odp_sys_cache_line_size(), odp_cpu_count()); printf("Running ODP appl: \"%s\"\n" diff --git a/example/ipsec/odp_ipsec.c b/example/ipsec/odp_ipsec.c index 96effe2..ee43c3f 100644 --- a/example/ipsec/odp_ipsec.c +++ b/example/ipsec/odp_ipsec.c @@ -1534,7 +1534,7 @@ static void print_info(char *progname, appl_args_t *appl_args) "Cache line size: %i\n" "CPU count: %i\n" "\n", - odp_version_api_str(), odp_sys_cpu_model_str(), odp_sys_cpu_hz(), + odp_version_api_str(), odp_cpu_model_str(), odp_sys_cpu_hz(), odp_sys_cache_line_size(), odp_cpu_count()); printf("Running ODP appl: \"%s\"\n" diff --git a/example/packet/odp_pktio.c b/example/packet/odp_pktio.c index df53ea2..92bb243 100644 --- a/example/packet/odp_pktio.c +++ b/example/packet/odp_pktio.c @@ -650,7 +650,7 @@ static void print_info(char *progname, appl_args_t *appl_args) "Cache line size: %i\n" "CPU count: %i\n" "\n", - odp_version_api_str(), odp_sys_cpu_model_str(), odp_sys_cpu_hz(), + odp_version_api_str(), odp_cpu_model_str(), odp_sys_cpu_hz(), odp_sys_cache_line_size(), odp_cpu_count()); printf("Running ODP appl: \"%s\"\n" diff --git a/example/timer/odp_timer_test.c b/example/timer/odp_timer_test.c index 49630b0..bee4be7 100644 --- a/example/timer/odp_timer_test.c +++ b/example/timer/odp_timer_test.c @@ -349,7 +349,7 @@ int main(int argc, char *argv[]) printf("ODP system info\n"); printf("---------------\n"); printf("ODP API version: %s\n", odp_version_api_str()); - printf("CPU model: %s\n", odp_sys_cpu_model_str()); + printf("CPU model: %s\n", odp_cpu_model_str()); printf("CPU freq (hz): %"PRIu64"\n", odp_sys_cpu_hz()); printf("Cache line size: %i\n", odp_sys_cache_line_size()); printf("Max CPU count: %i\n", odp_cpu_count());