From patchwork Wed Oct 29 13:24:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zoltan Kiss X-Patchwork-Id: 39777 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EC3AA24046 for ; Wed, 29 Oct 2014 13:29:10 +0000 (UTC) Received: by mail-la0-f72.google.com with SMTP id mc6sf1703398lab.3 for ; Wed, 29 Oct 2014 06:29:09 -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=AVcYu2b/qO6/0xWvQrAtBSakHj2b2/aThXkiBRb4RCc=; b=jyJB77JcU6loTn/MZ9wM3c68c1YgpYWBJP6wX/EZyPUkKDJPuaLlv99SXEqJe99nr9 SO9izIO52FuVsNxPBN2XxPBlts1NoO05EsQJwT8E27VBm9Lc8OaxFL1HpJ/T5zLMVLDu VeB0pNUiCTQ2cHkLrpOOvCzKy/eFxx2GhTpCsxEqiXy0mlp+hhVyp+Gom/8iP0kix20U zzAChqJyYHtmrSr3v8u3M3NFh+VIUG1dN5zZnZ127cShIC4zmO4nRRm+6DLsLCaN/rEb 7+xdf6f6n5V7K1wUqMXwkOX+sFf6Fx7CJBVNAyHJqVUAVFv+3+kpaq7JZ6kKimNECIVt EHPg== X-Gm-Message-State: ALoCoQmwIvbb6tSoiF2NW/G8oHza15dWbAS/+PqvKhHmatH72+97ydeELxwqwnUIT4SdD3LFyRAh X-Received: by 10.152.27.38 with SMTP id q6mr1694291lag.5.1414589349713; Wed, 29 Oct 2014 06:29:09 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.200 with SMTP id x8ls182368lae.76.gmail; Wed, 29 Oct 2014 06:29:09 -0700 (PDT) X-Received: by 10.112.168.2 with SMTP id zs2mr10668734lbb.25.1414589349476; Wed, 29 Oct 2014 06:29:09 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id sd8si7265166lbb.36.2014.10.29.06.29.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 29 Oct 2014 06:29:09 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by mail-la0-f52.google.com with SMTP id pv20so682153lab.25 for ; Wed, 29 Oct 2014 06:29:09 -0700 (PDT) X-Received: by 10.112.140.5 with SMTP id rc5mr11357709lbb.32.1414589349239; Wed, 29 Oct 2014 06:29:09 -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.112.84.229 with SMTP id c5csp656772lbz; Wed, 29 Oct 2014 06:29:06 -0700 (PDT) X-Received: by 10.224.12.80 with SMTP id w16mr15508141qaw.83.1414589106868; Wed, 29 Oct 2014 06:25:06 -0700 (PDT) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id v20si7429797qay.34.2014.10.29.06.25.04 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 29 Oct 2014 06:25:06 -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-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XjTFH-00049z-RH; Wed, 29 Oct 2014 13:25:03 +0000 Received: from mail-wg0-f53.google.com ([74.125.82.53]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XjTF0-000454-6H for lng-odp@lists.linaro.org; Wed, 29 Oct 2014 13:24:46 +0000 Received: by mail-wg0-f53.google.com with SMTP id b13so1897432wgh.12 for ; Wed, 29 Oct 2014 06:24:40 -0700 (PDT) X-Received: by 10.194.8.103 with SMTP id q7mr12775371wja.82.1414589080548; Wed, 29 Oct 2014 06:24:40 -0700 (PDT) Received: from localhost.localdomain ([90.152.119.35]) by mx.google.com with ESMTPSA id ce1sm5211461wjc.2.2014.10.29.06.24.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Oct 2014 06:24:39 -0700 (PDT) From: Zoltan Kiss To: lng-odp@lists.linaro.org, ciprian.barbu@linaro.org Date: Wed, 29 Oct 2014 13:24:05 +0000 Message-Id: <1414589046-16214-4-git-send-email-zoltan.kiss@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1414589046-16214-1-git-send-email-zoltan.kiss@linaro.org> References: <1414589046-16214-1-git-send-email-zoltan.kiss@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH OVS v2 3/4] Config option to enable ODP debug 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: zoltan.kiss@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.52 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: Zoltan Kiss --- acinclude.m4 | 31 ++++++++++++++++++++++++++++++- configure.ac | 1 + 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/acinclude.m4 b/acinclude.m4 index 1579286..5e9f3ee 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -218,6 +218,35 @@ AC_DEFUN([OVS_CHECK_DPDK], [ AM_CONDITIONAL([DPDK_NETDEV], test -n "$RTE_SDK") ]) +dnl OVS_CHECK_ODP_DEBUG +dnl +dnl Configure ODP debug flag +AC_DEFUN([OVS_CHECK_ODP_DEBUG], [ + AC_MSG_CHECKING([for ODP Debug]) + + ODP_DEBUG=0 + + AC_ARG_WITH([odp-debug], + [AC_HELP_STRING([--with-odp-debug=[@<:@yes | no@:>@]], + [ODP debug flag; default is false])], + [ + case "$withval" in + "" | n | no) + ODP_DEBUG=0 + AC_MSG_RESULT([no]) + ;; + y | ye | yes) + ODP_DEBUG=1 + AC_MSG_RESULT([yes]) + ;; + *) + AC_MSG_ERROR([invalid config option]) + ;; + esac + ] + ) +]) + dnl OVS_CHECK_ODP_PLATFORM dnl dnl Configure ODP platform @@ -272,7 +301,7 @@ AC_DEFUN([OVS_CHECK_ODP], [ AC_SUBST([ODP_INCLUDE]) AC_SUBST([ODP_LIB_DIR]) - CFLAGS="$CFLAGS -I$ODP_INCLUDE -I$ODPH_INCLUDE" + CFLAGS="$CFLAGS -I$ODP_INCLUDE -I$ODPH_INCLUDE -DODP_DEBUG_PRINT=$ODP_DEBUG" LDFLAGS="$LDFLAGS $SSL_LDFLAGS -L$ODP_LIB_DIR" ;; esac diff --git a/configure.ac b/configure.ac index e7be627..4cdbd75 100644 --- a/configure.ac +++ b/configure.ac @@ -120,6 +120,7 @@ AC_ARG_VAR(KARCH, [Kernel Architecture String]) AC_SUBST(KARCH) OVS_CHECK_LINUX OVS_CHECK_DPDK +OVS_CHECK_ODP_DEBUG OVS_CHECK_ODP_PLATFORM OVS_CHECK_ODP