From patchwork Fri May 20 16:30:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 68284 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp3861717qge; Fri, 20 May 2016 08:59:26 -0700 (PDT) X-Received: by 10.140.91.194 with SMTP id z60mr4018260qgd.70.1463759966037; Fri, 20 May 2016 08:59:26 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id d80si18741925qhc.3.2016.05.20.08.59.25; Fri, 20 May 2016 08:59:26 -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 A919B616FA; Fri, 20 May 2016 15:59:25 +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 64BA46180D; Fri, 20 May 2016 15:36:59 +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 9ABCA6180D; Fri, 20 May 2016 15:36:54 +0000 (UTC) Received: from mail-lf0-f48.google.com (mail-lf0-f48.google.com [209.85.215.48]) by lists.linaro.org (Postfix) with ESMTPS id DAD906182D for ; Fri, 20 May 2016 15:32:36 +0000 (UTC) Received: by mail-lf0-f48.google.com with SMTP id e126so25592766lfg.2 for ; Fri, 20 May 2016 08:32:36 -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=g8z/+1xwjzv3Qkk3/KwtGPutIQoRn1szz0khshQMxVI=; b=VmnW4T7oiJQhNs3f3o4jpSvp1g7bHafZFPQxdApkM3Y4+b66aXOnEMQA4wjyjir31H UC4uu7wgYnej0Sn0fw69hIeH/3xjuBIkkQCk0mymRBXnWJd+LXtz7a7HJOnbgOPW/axD L9Hv81h4/xkU44OHp7+tYzckeG96cuGNKXj3uJIClwy5+SdD2UNUWXLl0BE1DCYvgxwY W9WubATmqScG0xP5YaIBRoNxv0JjnmkEl+YQuIbdNeVls6YrHEf7yDEp9xIHcQzGixUH spp/NxXu3dKXmXtM83Nf+V68KT27rSZq3vtAR0hqx9V0HaFQS16/V+LNPd7sRZk+BKcI OUgA== X-Gm-Message-State: AOPr4FXPmwTTENNUc1xJrqGgFJ/y9AM9khd8J2CT7bMyf3UZmYv6REpOVOBhc6qOVyULLpWbkiU= X-Received: by 10.25.22.217 with SMTP id 86mr1351494lfw.117.1463758355814; Fri, 20 May 2016 08:32:35 -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 tg1sm3348847lbb.7.2016.05.20.08.32.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 20 May 2016 08:32:35 -0700 (PDT) From: Christophe Milard To: maxim.uvarov@linaro.com, lng-odp@lists.linaro.org Date: Fri, 20 May 2016 18:30:50 +0200 Message-Id: <1463761851-37121-35-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1463761851-37121-1-git-send-email-christophe.milard@linaro.org> References: <1463761851-37121-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv9 34/35] linux-generic: test: ringtest: 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" ringtests.c now calls the helper command line parsing so that helper can collect its options. Hence enabling process mode run. Signed-off-by: Christophe Milard --- platform/linux-generic/test/ring/ringtest.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/linux-generic/test/ring/ringtest.c b/platform/linux-generic/test/ring/ringtest.c index a613fe7..2ebef8a 100644 --- a/platform/linux-generic/test/ring/ringtest.c +++ b/platform/linux-generic/test/ring/ringtest.c @@ -417,7 +417,7 @@ static int test_ring(void *arg) return 0; } -int main(int argc TEST_UNUSED, char *argv[] TEST_UNUSED) +int main(int argc, char *argv[]) { ring_arg_t rarg; odph_odpthread_t thread_tbl[MAX_WORKERS]; @@ -436,6 +436,9 @@ int main(int argc TEST_UNUSED, char *argv[] TEST_UNUSED) exit(EXIT_FAILURE); } + /* let helper collect its own arguments (e.g. --odph_proc) */ + odph_parse_options(argc, argv, NULL, NULL); + _ring_tailq_init(); odp_cpumask_default_worker(&cpu_mask, MAX_WORKERS);