From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 33BD59FE for ; Thu, 28 Sep 2017 13:54:06 +0200 (CEST) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Sep 2017 04:54:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,449,1500966000"; d="scan'208";a="156534680" Received: from aburakov-mobl2.ger.corp.intel.com (HELO [10.237.210.18]) ([10.237.210.18]) by fmsmga005.fm.intel.com with ESMTP; 28 Sep 2017 04:54:05 -0700 To: dev@dpdk.org References: From: "Burakov, Anatoly" Message-ID: Date: Thu, 28 Sep 2017 12:54:04 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] How to use ixgbe module log? X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Sep 2017 11:54:07 -0000 On 28-Sep-17 11:26 AM, Sam wrote: > Hi all, > > I'm working on ixgbe, I want to enable "PMD_RX_LOG" and "PMD_TX_LOG", how > to do this? > > As for normal application, I could use --log-level param to start, but > ixgbe is kernel module, how to do this? > > Thank you~ > Hi Sam, In DPDK, ixgbe is not a kernel module - these are customized, userspace drivers. In order to enable RX and TX logging, corresponding config options should be set at compile time. For example, if you want to enable RX/TX logging for IXGBE driver, here's a rough list of steps you need to do: 1) create a custom config file in config/ directory. Copy whatever it is that you're using for your application (e.g. defconfig_x86_64-native-linuxapp-gcc), and name it something starting with defconfig_ (e.g. defconfig_myconfig) 2) Set CONFIG_RTE_LIBRTE_IXGBE_DEBUG_RX and CONFIG_RTE_LIBRTE_IXGBE_DEBUG_TX (and whatever other options you may need, see [1] and [2]) to "y" in your custom config 3) do "make config T=myconfig && make" (or whatever other command you use to build/install DPDK - make sure to specify your custom config as target) After that, you should be able to see RX/TX logs in DPDK applications. [1] http://dpdk.org/browse/dpdk/tree/config/common_base#n171 [2] http://dpdk.org/browse/dpdk/tree/drivers/net/ixgbe/ixgbe_logs.h -- Thanks, Anatoly