[dpdk-dev] How to dump DPDK log?

Ferruh Yigit ferruh.yigit at intel.com
Wed May 16 15:29:09 CEST 2018


On 5/16/2018 9:30 AM, Sam wrote:
> I want DPDK VHOST module DEBUG level log
> 
> 2018-05-16 16:27 GMT+08:00 Sam <batmanustc at gmail.com>:
> 
>> Hi all,
>>
>> I'm debugging OVS2.9.0 and DPDK18.02, I found I could not dump DPDK log
>> like vhost module.
>>
>> How can I dump DPDK log into files? Thank you~
>>

(Unfortunately) vhost module doesn't register its log type but uses USER1 log
type [1].

Need to set user1 log type to debug, following eal parameter should work:
--log-level="user1,debug"

Same can be done with logging related APIs by application


[1]
https://dpdk.org/browse/dpdk/tree/lib/librte_vhost/vhost.h?h=v18.05-rc4#n351


More information about the dev mailing list