DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Kavanagh, Mark B" <mark.b.kavanagh@intel.com>
To: yingzhi <kaitoy@qq.com>, "dev@dpdk.org" <dev@dpdk.org>,
	users <users@dpdk.org>
Subject: Re: [dpdk-dev] [dpdk-users]  How to printout PMD logs to console
Date: Tue, 18 Oct 2016 10:58:42 +0000	[thread overview]
Message-ID: <DC5AD7FA266D86499789B1BCAEC715F85C72E174@irsmsx105.ger.corp.intel.com> (raw)
In-Reply-To: <tencent_368D18EB6C98037A3A08C742@qq.com>

>
>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). 
	
	#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 defined. Just recompile DPDK with 'CONFIG_RTE_LIBRTE_IXGBE_DEBUG_RX=y' to resolve your issue.

Thanks,
Mark

>
>
>Currently I can only see RTE logs from console.
>
>
>Any comments is appreciated
>Thanks

  reply	other threads:[~2016-10-18 10:58 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-10  8:33 [dpdk-dev] Project Governance and Linux Foundation O'Driscoll, Tim
2016-10-17 10:23 ` Hobywan Kenoby
2016-10-17 11:52   ` O'Driscoll, Tim
2016-10-17 12:40     ` [dpdk-dev] [dpdk-users] " Thomas Monjalon
2016-10-17 14:40       ` O'Driscoll, Tim
2016-10-18 13:22         ` Thomas Monjalon
2016-10-17 21:23     ` [dpdk-dev] " Dave Neary
2016-10-18 11:34       ` Jerin Jacob
2016-10-18 13:27         ` Thomas Monjalon
2016-10-18 16:26           ` Jerin Jacob
2016-10-19  8:04             ` O'Driscoll, Tim
2016-10-19  8:40               ` Dave Neary
2016-10-19  9:56                 ` Thomas Monjalon
2016-10-19  9:09               ` Jerin Jacob
     [not found] ` <20161018121629630001294@chinamobile.com>
2016-10-18 10:29   ` [dpdk-dev] [dpdk-users] How to printout PMD logs to console yingzhi
2016-10-18 10:58     ` Kavanagh, Mark B [this message]
2016-10-18 12:51   ` [dpdk-dev] [dpdk-users] Project Governance and Linux Foundation Thomas Monjalon
2016-10-21 14:00 ` [dpdk-dev] " Dave Neary
2016-10-21 17:20   ` Wiles, Keith
2016-10-22 19:27   ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DC5AD7FA266D86499789B1BCAEC715F85C72E174@irsmsx105.ger.corp.intel.com \
    --to=mark.b.kavanagh@intel.com \
    --cc=dev@dpdk.org \
    --cc=kaitoy@qq.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).