From patchwork Tue May 17 13:04:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 67973 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp2081646qge; Tue, 17 May 2016 06:38:58 -0700 (PDT) X-Received: by 10.55.43.87 with SMTP id r84mr1561816qkh.143.1463492338379; Tue, 17 May 2016 06:38:58 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 62si2265281qke.71.2016.05.17.06.38.58; Tue, 17 May 2016 06:38:58 -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 0760C61623; Tue, 17 May 2016 13:38: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=-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 64175617B2; Tue, 17 May 2016 13:16:38 +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 D0D9A617AE; Tue, 17 May 2016 13:16:29 +0000 (UTC) Received: from mail-lf0-f53.google.com (mail-lf0-f53.google.com [209.85.215.53]) by lists.linaro.org (Postfix) with ESMTPS id 51BDD617AE for ; Tue, 17 May 2016 13:05:35 +0000 (UTC) Received: by mail-lf0-f53.google.com with SMTP id m64so6526193lfd.1 for ; Tue, 17 May 2016 06:05:35 -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=cNb3yKUb4D+nOz/apm1/Ay2D9iYvoAD3i8krd+1G93YQiSAyZckF5jVlZX2OmsuBSt EOsS7iNQSQyfz/Vbk5Pb3eOYAkrjXP+WU9ZbO5BcpfmMkYphFAk3Vuy4fysKxlc2drDv TcmX1NOsiMbPUGL5tbPj2mIhEWeJNA29BkMCNmvoJMqhrg6djfxhKGdyCSyBUNOeWHL7 7ZLsrkDf4JRf9F1wA0rTAn2EOhI4Ejztmi0jTtDe2KfLvKYpqAxABiZKe7JEbAl9D2MR lWgowfiGdZn6MijE7Lqe13qTSHrpjrPDsIydSwHjN1K6saiLZFsNg48EoyQ5VOJ1cP8h tAgA== X-Gm-Message-State: AOPr4FWaUxHuM92SqRj3W7IOpOljtY3rAza7TQIStTy3tGuUJsrQIAadgJtJbCxX8aBBCzP/Whc= X-Received: by 10.25.146.6 with SMTP id u6mr462491lfd.60.1463490334261; Tue, 17 May 2016 06:05:34 -0700 (PDT) Received: from localhost.localdomain (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by smtp.gmail.com with ESMTPSA id q1sm506536lbo.4.2016.05.17.06.05.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 May 2016 06:05:33 -0700 (PDT) From: Christophe Milard To: lng-odp@lists.linaro.org, brian.brooks@linaro.org, mike.holmes@linaro.org Date: Tue, 17 May 2016 15:04:35 +0200 Message-Id: <1463490282-23277-29-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1463490282-23277-1-git-send-email-christophe.milard@linaro.org> References: <1463490282-23277-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv7 28/35] 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)) {