From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 532A22BB5; Tue, 18 Oct 2016 12:58:45 +0200 (CEST) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP; 18 Oct 2016 03:58:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,361,1473145200"; d="scan'208";a="20758568" Received: from irsmsx104.ger.corp.intel.com ([163.33.3.159]) by fmsmga005.fm.intel.com with ESMTP; 18 Oct 2016 03:58:43 -0700 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.196]) by IRSMSX104.ger.corp.intel.com ([163.33.3.159]) with mapi id 14.03.0248.002; Tue, 18 Oct 2016 11:58:43 +0100 From: "Kavanagh, Mark B" To: yingzhi , "dev@dpdk.org" , users Thread-Topic: [dpdk-dev] [dpdk-users] How to printout PMD logs to console Thread-Index: AQHSKSqmI0SOU2De1k+JdV/SeIPadqCuCWfA Date: Tue, 18 Oct 2016 10:58:42 +0000 Message-ID: References: <26FA93C7ED1EAA44AB77D62FBE1D27BA675F0B5A@IRSMSX108.ger.corp.intel.com> <20161018121629630001294@chinamobile.com> In-Reply-To: Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNThmNTQ1ZDUtNjY5Yy00MDUzLTk4YTQtZmIwZjc0ODIwMWQzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6InRrZjNtNG5hTzlVSDA2SFVzTm4wRjFLSWlLQ1JLNXdNN0lVMlg5UFEzd2M9In0= x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-users] [dpdk-dev] How to printout PMD logs to console X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2016 10:58:46 -0000 > >Hi All, > > >I'm doing app debug and would like to see device PMD logs, e.g. >dpdk/drivers/net/ixgbe/ixgbe_rxtx.c:1703 > PMD_RX_LOG(...) Hi Yingzhi, PMD_RX_LOG is defined in ixgbe_logs.h (see code snippet below).=20 =09 #ifdef RTE_LIBRTE_IXGBE_DEBUG_RX #define PMD_RX_LOG(level, fmt, args...) \ RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) #else #define PMD_RX_LOG(level, fmt, args...) do { } while(0) #endif As you can see, the logs are only printed if RTE_LIBRTE_IXGBE_DEBUG_RX is d= efined. Just recompile DPDK with 'CONFIG_RTE_LIBRTE_IXGBE_DEBUG_RX=3Dy' to = resolve your issue. Thanks, Mark > > >Currently I can only see RTE logs from console. > > >Any comments is appreciated >Thanks