[dpdk-dev] [dpdk-users] How to printout PMD logs to console

Kavanagh, Mark B mark.b.kavanagh at intel.com
Tue Oct 18 12:58:42 CEST 2016


>
>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


More information about the dev mailing list