From patchwork Fri Dec 19 20:20:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 42496 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5E88B26C6B for ; Fri, 19 Dec 2014 20:21:08 +0000 (UTC) Received: by mail-wg0-f70.google.com with SMTP id b13sf1160466wgh.9 for ; Fri, 19 Dec 2014 12:21:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=pariczKCI3qSST2EqXhV5IHiCl+xEjwT/MNU/fAOT68=; b=kVzYJf/vFVjGdghn0/OnCAVv6XHeZ6kGeAfwXo9B6Sf7bob0RJ6n+H9raNT1RhqTnn TPfZocv3kR58p98YbSiD/O+9hYGLczyYywMB8MIjWoXmVfQ6fVMcZ+joH7SZIzPuusMW oUFRTt4QMINMWUKwPloKruhm3g/OtAfCgWz87rW651L4CGM8MxyVt3BhODR0AlEVEGz7 V7KR6z8IhJr7EfgTte2r40HtGug+97/+eoQoArM4krvWFmEiH0ZtB3E2pmB/d+73v+zS FnIh70YJjZYHQ0FxFJjD1zIr0nlzSpP7Ibgch1PdRPMhXTwTaPdQJTSTJxGVrcOlmKoH sBSA== X-Gm-Message-State: ALoCoQm5Y7OW+nEQR/U8KPP4hTZuqwJLhNaQSau2TrHY1sZHubV2fVkuAHJGedprmauaAl4ftfnj X-Received: by 10.180.89.211 with SMTP id bq19mr703159wib.4.1419020467696; Fri, 19 Dec 2014 12:21:07 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.98 with SMTP id l2ls431437laf.73.gmail; Fri, 19 Dec 2014 12:21:07 -0800 (PST) X-Received: by 10.112.132.67 with SMTP id os3mr9531423lbb.90.1419020467206; Fri, 19 Dec 2014 12:21:07 -0800 (PST) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id je12si10959098lac.90.2014.12.19.12.21.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 19 Dec 2014 12:21:07 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by mail-lb0-f176.google.com with SMTP id p9so1392273lbv.21 for ; Fri, 19 Dec 2014 12:21:07 -0800 (PST) X-Received: by 10.112.159.129 with SMTP id xc1mr9685304lbb.24.1419020467080; Fri, 19 Dec 2014 12:21:07 -0800 (PST) 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.142.69 with SMTP id ru5csp383307lbb; Fri, 19 Dec 2014 12:21:06 -0800 (PST) X-Received: by 10.140.17.70 with SMTP id 64mr4833348qgc.53.1419020465197; Fri, 19 Dec 2014 12:21:05 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id t64si12827482qgt.111.2014.12.19.12.21.03 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 19 Dec 2014 12:21:05 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y242n-0007P8-Fg; Fri, 19 Dec 2014 20:21:01 +0000 Received: from mail-ob0-f173.google.com ([209.85.214.173]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y242h-0007P0-7p for lng-odp@lists.linaro.org; Fri, 19 Dec 2014 20:20:55 +0000 Received: by mail-ob0-f173.google.com with SMTP id uy5so14200202obc.4 for ; Fri, 19 Dec 2014 12:20:50 -0800 (PST) X-Received: by 10.60.133.108 with SMTP id pb12mr5939144oeb.39.1419020449906; Fri, 19 Dec 2014 12:20:49 -0800 (PST) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by mx.google.com with ESMTPSA id s10sm5071461oeo.3.2014.12.19.12.20.49 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 19 Dec 2014 12:20:49 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Fri, 19 Dec 2014 14:20:43 -0600 Message-Id: <1419020443-12069-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 1.8.3.2 X-Topics: timers patch Subject: [lng-odp] [PATCH] linux-generic: example: update timer test for new buffer pools X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: 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-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: bill.fischofer@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.217.176 as permitted sender) smtp.mail=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 Signed-off-by: Bill Fischofer Tested-by: Mike Holmes --- Test was not properly updated to run with new buffer pool structure. Added an explicit buffer number. example/timer/odp_timer_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 1.8.3.2 diff --git a/example/timer/odp_timer_test.c b/example/timer/odp_timer_test.c index 0d6e31a..c754695 100644 --- a/example/timer/odp_timer_test.c +++ b/example/timer/odp_timer_test.c @@ -27,6 +27,7 @@ #define MAX_WORKERS 32 /**< Max worker threads */ #define MSG_POOL_SIZE (4*1024*1024) /**< Message pool size */ +#define MSG_NUM_BUFS 10000 /**< Number of timers */ /** Test arguments */ @@ -316,7 +317,7 @@ int main(int argc, char *argv[]) params.buf_size = 0; params.buf_align = 0; - params.num_bufs = MSG_POOL_SIZE; + params.num_bufs = MSG_NUM_BUFS; params.buf_type = ODP_BUFFER_TYPE_TIMEOUT; pool = odp_buffer_pool_create("msg_pool", shm, ¶ms);