From patchwork Wed May 11 16:42:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 67588 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp306358qge; Wed, 11 May 2016 09:11:04 -0700 (PDT) X-Received: by 10.140.91.103 with SMTP id y94mr4329973qgd.81.1462983064899; Wed, 11 May 2016 09:11:04 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id y62si5626335qke.261.2016.05.11.09.11.04; Wed, 11 May 2016 09:11:04 -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 dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 8214E61677; Wed, 11 May 2016 16:11:04 +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=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 1058061670; Wed, 11 May 2016 15:48:43 +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 D0AA761694; Wed, 11 May 2016 15:48:32 +0000 (UTC) Received: from mail-lf0-f46.google.com (mail-lf0-f46.google.com [209.85.215.46]) by lists.linaro.org (Postfix) with ESMTPS id AAC5461698 for ; Wed, 11 May 2016 15:44:38 +0000 (UTC) Received: by mail-lf0-f46.google.com with SMTP id j8so53753459lfd.2 for ; Wed, 11 May 2016 08:44:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=EEgWQh+/w3nMK1XilZE7kB6cSnzwyKCbmHPPD73YUrg=; b=Yv+5uhu9UndBqY+p27I1Uk1uGDQA2Md+i+aG087an5lJRzWBp71aN4f78AuzgdTwne t9Bq0WmFQwwA0qBXLuQgATjr6vXWd/ejaXUkQaa4CXza5+8/30T7d/lHkaVGlUFavThy djghLhpmtyHvUWSLOL4yXUjBj9VanDeXtkGpExtsjNKzvN63kD0UtHvbh54uD2WW5eDm xXarlzLXvChzjzM87VaqKT+jVAQDGK1BEnfhYtpO/12pzXhlo6NAJbb+h5NDJjhWnD+8 5ihRLxOGeuJqeu82BznlddI81oAL9VuptUZOyRWoNn/3p7Onv75GlHvvmsgXL1CjjCuM DI+g== X-Gm-Message-State: AOPr4FVh0QLt9kOS54Oq2QdHD0xkD1905rAll3sodtF7eU/qD0Q2L5udErfO2l99l99qA0tHlKs= X-Received: by 10.25.150.207 with SMTP id y198mr1963894lfd.76.1462981477640; Wed, 11 May 2016 08:44:37 -0700 (PDT) Received: from erachmi-ericsson.ki.sw.ericsson.se (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by smtp.gmail.com with ESMTPSA id n37sm1421164lfg.46.2016.05.11.08.44.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 May 2016 08:44:37 -0700 (PDT) From: Christophe Milard To: brian.brooks@linaro.org, mike.holmes@linaro.org, lng-odp@lists.linaro.org Date: Wed, 11 May 2016 18:42:15 +0200 Message-Id: <1462984942-53326-32-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1462984942-53326-1-git-send-email-christophe.milard@linaro.org> References: <1462984942-53326-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv6 31/38] example: time: adding helper cmd line parsing 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: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" time now calls the helper command line parsing so that helper can collect its options. Hence enabling process mode run. Signed-off-by: Christophe Milard --- example/time/time_global_test.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/example/time/time_global_test.c b/example/time/time_global_test.c index df4da4e..372d96b 100644 --- a/example/time/time_global_test.c +++ b/example/time/time_global_test.c @@ -241,7 +241,7 @@ static int run_thread(void *ptr) return 0; } -int main(void) +int main(int argc, char *argv[]) { int err = 0; odp_pool_t pool = ODP_POOL_INVALID; @@ -256,6 +256,9 @@ int main(void) odp_instance_t instance; odph_odpthread_params_t thr_params; + /* let helper collect its own arguments (e.g. --odph_proc) */ + odph_parse_options(argc, argv, NULL, NULL); + printf("\nODP global time test starts\n"); if (odp_init_global(&instance, NULL, NULL)) {