* [dpdk-dev] How to dump DPDK log?
@ 2018-05-16 8:27 Sam
2018-05-16 8:30 ` Sam
0 siblings, 1 reply; 6+ messages in thread
From: Sam @ 2018-05-16 8:27 UTC (permalink / raw)
To: dev, ovs-dev
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~
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dpdk-dev] How to dump DPDK log?
2018-05-16 8:27 [dpdk-dev] How to dump DPDK log? Sam
@ 2018-05-16 8:30 ` Sam
2018-05-16 13:29 ` Ferruh Yigit
0 siblings, 1 reply; 6+ messages in thread
From: Sam @ 2018-05-16 8:30 UTC (permalink / raw)
To: dev, ovs-dev
I want DPDK VHOST module DEBUG level log
2018-05-16 16:27 GMT+08:00 Sam <batmanustc@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~
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dpdk-dev] How to dump DPDK log?
2018-05-16 8:30 ` Sam
@ 2018-05-16 13:29 ` Ferruh Yigit
2018-05-17 2:26 ` Sam
0 siblings, 1 reply; 6+ messages in thread
From: Ferruh Yigit @ 2018-05-16 13:29 UTC (permalink / raw)
To: Sam, dev, ovs-dev
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@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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dpdk-dev] How to dump DPDK log?
2018-05-16 13:29 ` Ferruh Yigit
@ 2018-05-17 2:26 ` Sam
2018-05-17 2:41 ` Sam
0 siblings, 1 reply; 6+ messages in thread
From: Sam @ 2018-05-17 2:26 UTC (permalink / raw)
To: Ferruh Yigit; +Cc: dev, ovs-dev
How to set this param...
I use this, but report me bug:
sudo /usr/local/bin/ovs-vsctl --no-wait set Open_vSwitch .
other_config:dpdk-extra="--log-level=user1,debug -c 0x40004 -n 4
--socket-mem 1024 -w 0000:01:00.0 -w 0000:01:00.1"
Bug:
2018-05-17T02:23:21.878Z|00010|dpdk|INFO|EAL ARGS: ovs-vswitchd
--log-level=user1,debug -c 0x40004 -n 4 --socket-mem 1024 -w 0000:01:00.0
-w 0000:01:00.1
2018-05-17T02:23:21.878Z|00011|dpdk|ERR|EAL: invalid parameters for
--log-level
2018-05-17T02:23:21.879Z|00012|dpdk|INFO|EAL: Detected 32 lcore(s)
2018-05-17T02:23:21.879Z|00013|dpdk|ERR|EAL: invalid parameters for
--log-level
2018-05-17T02:23:04.374Z|00010|dpdk|INFO|EAL ARGS: ovs-vswitchd
--log-level="user1,debug" -c 0x40004 -n 4 --socket-mem 1024 -w 0000:01:00.0
-w 0000:01:00.1
2018-05-17T02:23:04.374Z|00011|dpdk|ERR|EAL: invalid parameters for
--log-level
2018-05-17T02:23:04.375Z|00012|dpdk|INFO|EAL: Detected 32 lcore(s)
2018-05-17T02:23:04.375Z|00013|dpdk|ERR|EAL: invalid parameters for
--log-level
2018-05-16 21:29 GMT+08:00 Ferruh Yigit <ferruh.yigit@intel.com>:
> 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@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
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dpdk-dev] How to dump DPDK log?
2018-05-17 2:26 ` Sam
@ 2018-05-17 2:41 ` Sam
2018-05-17 9:15 ` Ferruh Yigit
0 siblings, 1 reply; 6+ messages in thread
From: Sam @ 2018-05-17 2:41 UTC (permalink / raw)
To: Ferruh Yigit; +Cc: dev, ovs-dev
Oh, it should be user1,8 in dpdk-17.05
OMG....
2018-05-17 10:26 GMT+08:00 Sam <batmanustc@gmail.com>:
> How to set this param...
>
> I use this, but report me bug:
>
> sudo /usr/local/bin/ovs-vsctl --no-wait set Open_vSwitch .
> other_config:dpdk-extra="--log-level=user1,debug -c 0x40004 -n 4
> --socket-mem 1024 -w 0000:01:00.0 -w 0000:01:00.1"
>
> Bug:
>
> 2018-05-17T02:23:21.878Z|00010|dpdk|INFO|EAL ARGS: ovs-vswitchd
> --log-level=user1,debug -c 0x40004 -n 4 --socket-mem 1024 -w 0000:01:00.0
> -w 0000:01:00.1
> 2018-05-17T02:23:21.878Z|00011|dpdk|ERR|EAL: invalid parameters for
> --log-level
> 2018-05-17T02:23:21.879Z|00012|dpdk|INFO|EAL: Detected 32 lcore(s)
> 2018-05-17T02:23:21.879Z|00013|dpdk|ERR|EAL: invalid parameters for
> --log-level
>
> 2018-05-17T02:23:04.374Z|00010|dpdk|INFO|EAL ARGS: ovs-vswitchd
> --log-level="user1,debug" -c 0x40004 -n 4 --socket-mem 1024 -w 0000:01:00.0
> -w 0000:01:00.1
> 2018-05-17T02:23:04.374Z|00011|dpdk|ERR|EAL: invalid parameters for
> --log-level
> 2018-05-17T02:23:04.375Z|00012|dpdk|INFO|EAL: Detected 32 lcore(s)
> 2018-05-17T02:23:04.375Z|00013|dpdk|ERR|EAL: invalid parameters for
> --log-level
>
> 2018-05-16 21:29 GMT+08:00 Ferruh Yigit <ferruh.yigit@intel.com>:
>
>> 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@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
>>
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dpdk-dev] How to dump DPDK log?
2018-05-17 2:41 ` Sam
@ 2018-05-17 9:15 ` Ferruh Yigit
0 siblings, 0 replies; 6+ messages in thread
From: Ferruh Yigit @ 2018-05-17 9:15 UTC (permalink / raw)
To: Sam; +Cc: dev, ovs-dev
On 5/17/2018 3:41 AM, Sam wrote:
> Oh, it should be user1,8 in dpdk-17.05
Yes, loglevel numbers are converted to more human readable format in this
release, old releases are using numbers.
>
> OMG....
>
> 2018-05-17 10:26 GMT+08:00 Sam <batmanustc@gmail.com <mailto:batmanustc@gmail.com>>:
>
> How to set this param...
>
> I use this, but report me bug:
>
> sudo /usr/local/bin/ovs-vsctl --no-wait set Open_vSwitch .
> other_config:dpdk-extra="--log-level=user1,debug -c 0x40004 -n 4
> --socket-mem 1024 -w 0000:01:00.0 -w 0000:01:00.1"
>
> Bug:
>
> 2018-05-17T02:23:21.878Z|00010|dpdk|INFO|EAL ARGS: ovs-vswitchd
> --log-level=user1,debug -c 0x40004 -n 4 --socket-mem 1024 -w 0000:01:00.0 -w
> 0000:01:00.1
> 2018-05-17T02:23:21.878Z|00011|dpdk|ERR|EAL: invalid parameters for --log-level
> 2018-05-17T02:23:21.879Z|00012|dpdk|INFO|EAL: Detected 32 lcore(s)
> 2018-05-17T02:23:21.879Z|00013|dpdk|ERR|EAL: invalid parameters for --log-level
>
> 2018-05-17T02:23:04.374Z|00010|dpdk|INFO|EAL ARGS: ovs-vswitchd
> --log-level="user1,debug" -c 0x40004 -n 4 --socket-mem 1024 -w 0000:01:00.0
> -w 0000:01:00.1
> 2018-05-17T02:23:04.374Z|00011|dpdk|ERR|EAL: invalid parameters for --log-level
> 2018-05-17T02:23:04.375Z|00012|dpdk|INFO|EAL: Detected 32 lcore(s)
> 2018-05-17T02:23:04.375Z|00013|dpdk|ERR|EAL: invalid parameters for --log-level
>
> 2018-05-16 21:29 GMT+08:00 Ferruh Yigit <ferruh.yigit@intel.com
> <mailto:ferruh.yigit@intel.com>>:
>
> 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@gmail.com
> <mailto:batmanustc@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
> <https://dpdk.org/browse/dpdk/tree/lib/librte_vhost/vhost.h?h=v18.05-rc4#n351>
>
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-05-17 9:15 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-16 8:27 [dpdk-dev] How to dump DPDK log? Sam
2018-05-16 8:30 ` Sam
2018-05-16 13:29 ` Ferruh Yigit
2018-05-17 2:26 ` Sam
2018-05-17 2:41 ` Sam
2018-05-17 9:15 ` Ferruh Yigit
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).