From patchwork Sat Dec 13 01:26:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 42203 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 ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8086326C77 for ; Sat, 13 Dec 2014 01:26:49 +0000 (UTC) Received: by mail-lb0-f199.google.com with SMTP id u10sf5561212lbd.2 for ; Fri, 12 Dec 2014 17:26:48 -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=VLJWjIRbRp6ePlsBOk0dviVcTH0tdIDyAgREux2otx0=; b=EvT7BFf/lXfhViuiw4M8mEXfzlptdI23zrSk+Y89mrMasKtOFnOtfwRkxOolcekmVl Cv0NN3PYvHHFSkqsRuA8ZpvfPnrIoxLZbASVwmHSSGso6blQfgtWOYM89CPGZ1Ae0DHs DMpFC0k0eCstM2NewA8NThOaVNoF9lRMuZsIsKr9hNEetYBprRHyckfL6y6XCnST+3mK 1QNu4LM0teh9aZpJYAIAtBbVk0x8FSReu2L5spZ96CZDjEzHviIh1PW/l0JuslDtnTg2 ZghSeoEu5QhKEqmiJjzEQmiKSbECptzALdOheWF3AgBzkVUaPJXZRx7cfBoHC3mXo5vK snSg== X-Gm-Message-State: ALoCoQne9/YE/Rxe1Ss+9pF69IGFrv4Ckckp7dk36Tqx7Q/BeeIcD4olo+nD3SHZ07942YplAzIa X-Received: by 10.152.8.67 with SMTP id p3mr3012113laa.4.1418434008115; Fri, 12 Dec 2014 17:26:48 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.205.10 with SMTP id lc10ls524493lac.22.gmail; Fri, 12 Dec 2014 17:26:47 -0800 (PST) X-Received: by 10.152.8.225 with SMTP id u1mr16166652laa.21.1418434007638; Fri, 12 Dec 2014 17:26:47 -0800 (PST) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id pn4si3082797lbc.33.2014.12.12.17.26.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 12 Dec 2014 17:26:47 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by mail-la0-f44.google.com with SMTP id gd6so7090194lab.17 for ; Fri, 12 Dec 2014 17:26:47 -0800 (PST) X-Received: by 10.152.7.229 with SMTP id m5mr18510398laa.80.1418434007270; Fri, 12 Dec 2014 17:26:47 -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 ru5csp145576lbb; Fri, 12 Dec 2014 17:26:46 -0800 (PST) X-Received: by 10.140.88.228 with SMTP id t91mr11799721qgd.69.1418434005963; Fri, 12 Dec 2014 17:26:45 -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 g5si3472571qab.87.2014.12.12.17.26.44 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 12 Dec 2014 17:26:45 -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 1XzbTl-0002jz-FL; Sat, 13 Dec 2014 01:26:41 +0000 Received: from mail-oi0-f51.google.com ([209.85.218.51]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XzbTe-0002hm-T3 for lng-odp@lists.linaro.org; Sat, 13 Dec 2014 01:26:34 +0000 Received: by mail-oi0-f51.google.com with SMTP id e131so6014817oig.10 for ; Fri, 12 Dec 2014 17:26:29 -0800 (PST) X-Received: by 10.60.173.240 with SMTP id bn16mr12244607oec.41.1418433989549; Fri, 12 Dec 2014 17:26:29 -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 wf4sm1371817obc.27.2014.12.12.17.26.28 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 12 Dec 2014 17:26:28 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Fri, 12 Dec 2014 19:26:22 -0600 Message-Id: <1418433982-8794-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 1.8.3.2 X-Topics: patch Subject: [lng-odp] [PATCH] Update schedule test for new odp_buffer_pool_create() API 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.215.44 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 Necessary update for odp_schedule test to reflect buffer pool API changes for ODP v0.5. Signed-off-by: Bill Fischofer --- test/validation/odp_schedule.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/test/validation/odp_schedule.c b/test/validation/odp_schedule.c index 9d410e4..31be742 100644 --- a/test/validation/odp_schedule.c +++ b/test/validation/odp_schedule.c @@ -510,22 +510,18 @@ static int create_queues(void) static int schd_suite_init(void) { odp_shm_t shm; - void *pool_base; odp_buffer_pool_t pool; test_globals_t *globals; thread_args_t *thr_args; + odp_buffer_pool_param_t params; - shm = odp_shm_reserve(SHM_MSG_POOL_NAME, MSG_POOL_SIZE, - ODP_CACHE_LINE_SIZE, 0); - pool_base = odp_shm_addr(shm); - if (pool_base == NULL) { - printf("Shared memory reserve failed.\n"); - return -1; - } + params.buf_size = BUF_SIZE; + params.buf_align = 0; + params.num_bufs = MSG_POOL_SIZE/BUF_SIZE; + params.buf_type = ODP_BUFFER_TYPE_RAW; + + pool = odp_buffer_pool_create(MSG_POOL_NAME, ODP_SHM_NULL, ¶ms); - pool = odp_buffer_pool_create(MSG_POOL_NAME, pool_base, MSG_POOL_SIZE, - BUF_SIZE, ODP_CACHE_LINE_SIZE, - ODP_BUFFER_TYPE_RAW); if (pool == ODP_BUFFER_POOL_INVALID) { printf("Pool creation failed (msg).\n"); return -1;