From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f196.google.com (mail-qk0-f196.google.com [209.85.220.196]) by dpdk.org (Postfix) with ESMTP id 940F8276C for ; Fri, 29 Sep 2017 03:42:54 +0200 (CEST) Received: by mail-qk0-f196.google.com with SMTP id z143so2033427qkb.4 for ; Thu, 28 Sep 2017 18:42:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=xlBgOC7joU9ZQ349/Nm3dqOYcf0rIgj5Em/iFwN12JI=; b=AN2BnWGI5bdXA691y0r//mKD8JCQj6HBPbrPSbPbGXYZ7ZSzSRaQgFGeHI9aoYLWB1 jn/8o18yHbHuqsuWtRCmTeDwRBbF4JF6J5jKF92pvQo1ie25sa/oIO61Gw+tZsQmgNQp zdYBSqoemXGGLIhQr4Rqjdnfi3nZBuHGeavheVBsWB+4Vo6eXabkXvDRKJB6IPC+ycXK 6PE77n1VTAcpBiw6Si4rILNlW0hMLXpHZNvqPGPkoexkNOEJvxS08CVcs1L0uocD8Z+6 5IWX6y1ft4k1XIaBfDrzORGp91aqgAftMMfB2QXPO4dUoTyLwl8w7jo//LTgOhNGL3XI gz5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=xlBgOC7joU9ZQ349/Nm3dqOYcf0rIgj5Em/iFwN12JI=; b=WpomvA9LN6kMkjHRTsT98nwepUqy/IhPMi+GM9nDq6twLgRa/cSVn7E7BbSddzx/rP m06HNXCIvK3ufkd5qw9UQtaY9uKGI1J8BtbB581cIX5GUsXhWkmV2MgI14wbnljmUdKt ii1CmmEhTvZqcAiLdnnpHI13dYhjhT7o/bJLO1a59si0yacHUaHXD41uKCJLyUjKsC1v r7E5aJJy7/ynYePg/VZIQlgDaWZLJSfXLo+t9tHbeHqHC4Nbg90BKPUxZe8AFbi1qqB7 M//r45CK7XvgXBsbcQ9kOTIM2bFcttStuR3rQYhZdu3LXrOux3/mXBymk3toXoZxagH8 CpJg== X-Gm-Message-State: AMCzsaWF3aIyGn1dzJWBsQ3nsOQ5Mt4B4rni+0CqSjY1fLjqApwHzi/t 3K0KHjHNSmd/0+vYCWdwTBMX2AJ81PLiedE6n2I= X-Google-Smtp-Source: AOwi7QA9XH5tLefz0YYuO3uS7FY4gbofZoiUNIbpaXf6mGDDgYKFr0zI+x5DGX4/Wek43JEt0pXATQn0dgScJGz8tI0= X-Received: by 10.55.31.163 with SMTP id n35mr1215250qkh.279.1506649373667; Thu, 28 Sep 2017 18:42:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.23.48 with HTTP; Thu, 28 Sep 2017 18:42:53 -0700 (PDT) In-Reply-To: References: From: Sam Date: Fri, 29 Sep 2017 09:42:53 +0800 Message-ID: To: "Burakov, Anatoly" Cc: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 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: Fri, 29 Sep 2017 01:42:54 -0000 My question is not clear. Actually ixgbevf driver in my system is kernel module, like this: [root@yf-mos-corp-host175 ~]# modinfo ixgbevf filename: /lib/modules/3.10.0-514.10.2.el7.mt20170307.x86_64/kernel/drivers/net/ethernet/intel/ixgbevf/ixgbevf.ko version: 2.12.1-k-rh7.3 license: GPL description: Intel(R) 10 Gigabit Virtual Function Network Driver author: Intel Corporation, rhelversion: 7.3 srcversion: C9F11E41E5F60ADED5673E1 alias: pci:v00008086d000015A9sv*sd*bc*sc*i* alias: pci:v00008086d000015A8sv*sd*bc*sc*i* alias: pci:v00008086d00001564sv*sd*bc*sc*i* alias: pci:v00008086d00001565sv*sd*bc*sc*i* alias: pci:v00008086d00001530sv*sd*bc*sc*i* alias: pci:v00008086d00001515sv*sd*bc*sc*i* alias: pci:v00008086d0000152Esv*sd*bc*sc*i* alias: pci:v00008086d000010EDsv*sd*bc*sc*i* depends: intree: Y vermagic: 3.10.0-514.10.2.el7.mt20170307.x86_64 SMP mod_unload modversions signer: CentOS Linux kernel signing key sig_key: 44:C9:F5:E3:67:CB:A0:1D:73:A5:17:C8:70:7B:BA:58:FA:FD:7E:30 sig_hashalgo: sha256 parm: debug:Debug level (0=none,...,16=all) (int) and I use dpdk_nic_bind with --driver option to bind netdevice with ixgbevf kernel driver. So I think I use ixgbevf kernel module which is distributed with kernel, and my kernel is: 3.10.0-514.10.2.el7 2017-09-28 19:54 GMT+08:00 Burakov, Anatoly : > 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 >