From patchwork Tue Oct 28 18:19:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zoltan Kiss X-Patchwork-Id: 39690 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2966824026 for ; Tue, 28 Oct 2014 18:19:47 +0000 (UTC) Received: by mail-wi0-f199.google.com with SMTP id r20sf1034733wiv.10 for ; Tue, 28 Oct 2014 11:19:46 -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=GoEj7jDiUuhOcv3ykJqYkLFzDox4RYmflfR/tkByTsk=; b=EPE88BOC6LsS9jTmVbWh/vKq7r1mCC7mG0+N22wXBtkEHFEhm1M0MCO5CTi2QCnGdq V3uF7xesDQ5SjAaIKyGMmP0Oo9KMLCg8ANlkl8kHQt6P0GYzO4DuirC9SS+P2neJouuU tPxZfUi7W4oM/PuHVBvxo26Tl9ctRdPDwtry3qPf+Sd+Vl8zHkaYXwfK1+gYvJOCz/Uq rBM6Se3HMWkcpNPl+2ZWp/G+blE2poiQnEzhjlHDb4w/8msy1GvPPZtAU5rKMr6I4Ygy MBKLwshaj//LRx/wnsGJxUGIjhv7GlsM2Y9kQvXpXm3r55E02kC5d3flSitdlrDeMNtC tiNA== X-Gm-Message-State: ALoCoQn1t1qQGrhH9f0Ff3AGil0pvEnBMmPf3uFtG0TxiyJ/K3bo4l4VO8O0pG+Dx40V/0JgB3pP X-Received: by 10.180.74.130 with SMTP id t2mr1023307wiv.4.1414520386274; Tue, 28 Oct 2014 11:19:46 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.5 with SMTP id w5ls98661law.71.gmail; Tue, 28 Oct 2014 11:19:46 -0700 (PDT) X-Received: by 10.152.2.100 with SMTP id 4mr5956891lat.6.1414520386113; Tue, 28 Oct 2014 11:19:46 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id 6si2668399laj.120.2014.10.28.11.19.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 28 Oct 2014 11:19:45 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by mail-la0-f49.google.com with SMTP id ge10so1139672lab.22 for ; Tue, 28 Oct 2014 11:19:45 -0700 (PDT) X-Received: by 10.152.6.228 with SMTP id e4mr5847404laa.71.1414520385603; Tue, 28 Oct 2014 11:19:45 -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 c5csp531107lbz; Tue, 28 Oct 2014 11:19:44 -0700 (PDT) X-Received: by 10.140.38.38 with SMTP id s35mr7565723qgs.8.1414520382913; Tue, 28 Oct 2014 11:19:42 -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 ms9si3631237qcb.36.2014.10.28.11.19.42 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 28 Oct 2014 11:19:42 -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 1XjBMr-0005wq-8t; Tue, 28 Oct 2014 18:19:41 +0000 Received: from mail-wi0-f176.google.com ([209.85.212.176]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XjBMe-0005wC-DM for lng-odp@lists.linaro.org; Tue, 28 Oct 2014 18:19:28 +0000 Received: by mail-wi0-f176.google.com with SMTP id n3so10171212wiv.9 for ; Tue, 28 Oct 2014 11:19:22 -0700 (PDT) X-Received: by 10.194.2.8 with SMTP id 8mr6563907wjq.85.1414520362583; Tue, 28 Oct 2014 11:19:22 -0700 (PDT) Received: from localhost.localdomain ([90.152.119.35]) by mx.google.com with ESMTPSA id u8sm16229311wiz.14.2014.10.28.11.19.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Oct 2014 11:19:21 -0700 (PDT) From: Zoltan Kiss To: lng-odp@lists.linaro.org, ciprian.barbu@linaro.org Date: Tue, 28 Oct 2014 18:19:07 +0000 Message-Id: <1414520348-27537-3-git-send-email-zoltan.kiss@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1414520348-27537-1-git-send-email-zoltan.kiss@linaro.org> References: <1414520348-27537-1-git-send-email-zoltan.kiss@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH OVS 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.49 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 3045570..8e9e585 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 @@ -278,7 +307,7 @@ AC_DEFUN([OVS_CHECK_ODP], [ AC_SUBST([ODP_PLATFORM_INCLUDE]) AC_SUBST([ODP_PLATFORM_INCLUDE_API]) AC_SUBST([ODP_LIB_DIR]) - CFLAGS="$CFLAGS -I$ODP_PLATFORM_INCLUDE -I$ODP_LINUX_GENERIC_INCLUDE -I$ODP_INCLUDE" + CFLAGS="$CFLAGS -I$ODP_PLATFORM_INCLUDE -I$ODP_LINUX_GENERIC_INCLUDE -I$ODP_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