From patchwork Thu Aug 28 14:15:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petri Savolainen X-Patchwork-Id: 36216 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 52430202DD for ; Thu, 28 Aug 2014 14:14:57 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id wp18sf8046296obc.1 for ; Thu, 28 Aug 2014 07:14:56 -0700 (PDT) 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:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=aFU6a9ZJXufc2ou95DefnN9IdsG7WgIoYI+es0ly5/I=; b=dpSmppYbcG7rZThjTyZEYj0J53kwB901FWv4B4FV00ZPRxnM3tQPE4+al6IzpKJ6Io cEQ/qKBKlNwLecC+Kkw+uOEf6soWZQn08Zje0g0bQA/Mxy+b5J2VQmLKJnufx7LnRlAg rYx4gC2MC+Kbf/ZuORoz76kGbX8V6oGH+2zmJMawmzSiy1EIi64sEb2MKT3vw+kqLC+D 5FQ71dccouELuiib5YzSyfKwIZ1n1UfBmE525lbodYRlOfkeaJmEQZC9nTs6X0sa9yqU Vml84PB0BCp3X7abI334KgD4R+wMZA7HMaNjB7bUIxfS3RnkeubxAwN1oD/zZdnSTMZc RCMA== X-Gm-Message-State: ALoCoQlN3A8KggKiuTk1ptUylIbOQR+Dn8+FADB/5ToWta1neJDkfflKlm8DnZra+ssZT/Em1aty X-Received: by 10.68.135.99 with SMTP id pr3mr2232036pbb.9.1409235296838; Thu, 28 Aug 2014 07:14:56 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.36.105 with SMTP id o96ls583823qgo.35.gmail; Thu, 28 Aug 2014 07:14:56 -0700 (PDT) X-Received: by 10.220.194.130 with SMTP id dy2mr1077556vcb.47.1409235296617; Thu, 28 Aug 2014 07:14:56 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id s6si3562196vdx.72.2014.08.28.07.14.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Aug 2014 07:14:56 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id hq11so883502vcb.28 for ; Thu, 28 Aug 2014 07:14:56 -0700 (PDT) X-Received: by 10.52.94.108 with SMTP id db12mr2908516vdb.8.1409235296543; Thu, 28 Aug 2014 07:14:56 -0700 (PDT) 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.221.45.67 with SMTP id uj3csp243481vcb; Thu, 28 Aug 2014 07:14:56 -0700 (PDT) X-Received: by 10.224.88.137 with SMTP id a9mr7124800qam.88.1409235295957; Thu, 28 Aug 2014 07:14:55 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id q47si5814341qga.41.2014.08.28.07.14.55 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 28 Aug 2014 07:14:55 -0700 (PDT) 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-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XN0TW-0003rY-05; Thu, 28 Aug 2014 14:14:54 +0000 Received: from mail-qg0-f44.google.com ([209.85.192.44]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XN0TM-0003rJ-2P for lng-odp@lists.linaro.org; Thu, 28 Aug 2014 14:14:44 +0000 Received: by mail-qg0-f44.google.com with SMTP id j5so795509qga.3 for ; Thu, 28 Aug 2014 07:14:38 -0700 (PDT) X-Received: by 10.224.3.9 with SMTP id 9mr6787539qal.5.1409235278846; Thu, 28 Aug 2014 07:14:38 -0700 (PDT) Received: from localhost.localdomain (ec2-23-23-178-99.compute-1.amazonaws.com. [23.23.178.99]) by mx.google.com with ESMTPSA id p78sm5721137qgd.11.2014.08.28.07.14.36 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Aug 2014 07:14:37 -0700 (PDT) From: Petri Savolainen To: lng-odp@lists.linaro.org Date: Thu, 28 Aug 2014 17:15:13 +0300 Message-Id: <1409235313-20445-2-git-send-email-petri.savolainen@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1409235313-20445-1-git-send-email-petri.savolainen@linaro.org> References: <1409235313-20445-1-git-send-email-petri.savolainen@linaro.org> X-Topics: timers patch Subject: [lng-odp] [PATCH 2/2] Timer example error check 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: petri.savolainen@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.220.169 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: Petri Savolainen --- example/timer/odp_timer_test.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/example/timer/odp_timer_test.c b/example/timer/odp_timer_test.c index bf1d7df..67f445d 100644 --- a/example/timer/odp_timer_test.c +++ b/example/timer/odp_timer_test.c @@ -195,7 +195,7 @@ static void parse_args(int argc, char *argv[], test_args_t *args) args->core_count = 0; /* all cores */ args->resolution_us = 10000; args->min_us = args->resolution_us; - args->max_us = 100000000; + args->max_us = 10000000; args->period_us = 1000000; args->tmo_count = 30; @@ -347,6 +347,12 @@ int main(int argc, char *argv[]) args.min_us*USEC, args.max_us*USEC); + if (test_timer == ODP_TIMER_INVALID) { + ODP_ERR("Timer create failed.\n"); + return -1; + } + + odp_shm_print_all(); printf("CPU freq %"PRIu64" hz\n", odp_sys_cpu_hz());