But I don't got any log from DPDK, ether INFO or DEBUG, I use ovs2.8.0 like
this
[gangyewei@yf-mos-test-net07 gyw_ovs]$ git diff
[gangyewei@yf-mos-test-net07 gyw_ovs]$ git branch
* (detached from v2.8.0)
I use dpdk-17.05, and enable debugging like the mail defore
[gangyewei@yf-mos-test-net07 gyw_dpdk]$ git branch
* (detached from v17.05-rc1)
I set log level like you said:
[root@yf-mos-test-net07 vms]# sudo /usr/local/bin/ovs-appctl vlog/set
file:netdev_dpdk:dbg
[root@yf-mos-test-net07 vms]# sudo /usr/local/bin/ovs-appctl vlog/set
file:dpdk:dbg
[root@yf-mos-test-net07 vms]# sudo /usr/local/bin/ovs-appctl vlog/list |
grep dpdk
dpdk OFF ERR DBG
netdev_dpdk OFF ERR DBG
But I can't get DPDK log:
tailf /usr/local/var/log/openvswitch/ovs-vswitchd.log
BTW, I use this path to dump dpdk log before, this way could also NOT work
FILE *fp = fopen("/usr/local/var/log/openvswitch/dpdk.log", "a+b");
if (fp) {
rte_openlog_stream(fp);
}
BTW, I use gdb to debug ovs-vswitchd, and I set break point in rte_log(),
then I add port or something,
but I found I can't step into this function !!!
I don't know if there are any one who dump DPDK log in ovs2.8.0+dpdk17.05.1
2018-05-16 20:17 GMT+08:00 Eelco Chaudron <[email protected]>:
> Yes that should do it, once done don't forget to rebuild both DPDK and OVS.
>
> Cant remember from the top of my head which DPDK debug to enable, but the
> following will do it for sure:
>
> ovs-appctl vlog/set file:dpdk:dbg
>
>
> ovs-appctl vlog/set file:netdev_dpdk:dbg
>
> //Eelco
>
>
> On 16/05/18 14:11, Sam wrote:
>
> Is this to enable debug log in DPDK?
>
> diff --git a/config/common_base b/config/common_base
> index 5f2ad94..ecbfb3f 100644
> --- a/config/common_base
> +++ b/config/common_base
> @@ -93,8 +93,8 @@ CONFIG_RTE_MAX_NUMA_NODES=8
> CONFIG_RTE_MAX_MEMSEG=256
> CONFIG_RTE_MAX_MEMZONE=2560
> CONFIG_RTE_MAX_TAILQ=32
> -CONFIG_RTE_LOG_LEVEL=RTE_LOG_INFO
> -CONFIG_RTE_LOG_DP_LEVEL=RTE_LOG_INFO
> +CONFIG_RTE_LOG_LEVEL=RTE_LOG_DEBUG
> +CONFIG_RTE_LOG_DP_LEVEL=RTE_LOG_DEBUG
> CONFIG_RTE_LOG_HISTORY=256
> CONFIG_RTE_LIBEAL_USE_HPET=n
> CONFIG_RTE_EAL_ALLOW_INV_SOCKET_ID=n
> @@ -651,7 +651,7 @@ CONFIG_RTE_LIBRTE_KNI=n
> CONFIG_RTE_LIBRTE_PMD_KNI=n
> CONFIG_RTE_KNI_KMOD=n
> CONFIG_RTE_KNI_KMOD_ETHTOOL=n
> -CONFIG_RTE_KNI_PREEMPT_DEFAULT=y
> +CONFIG_RTE_KNI_PREEMPT_DEFAULT=n
>
> #
> # Compile the pdump library
> @@ -661,9 +661,9 @@ CONFIG_RTE_LIBRTE_PDUMP=y
> #
> # Compile vhost user library
> #
> -CONFIG_RTE_LIBRTE_VHOST=n
> +CONFIG_RTE_LIBRTE_VHOST=y
> CONFIG_RTE_LIBRTE_VHOST_NUMA=n
> -CONFIG_RTE_LIBRTE_VHOST_DEBUG=n
> +CONFIG_RTE_LIBRTE_VHOST_DEBUG=y
>
> 2018-05-16 20:04 GMT+08:00 Eelco Chaudron <[email protected]>:
>
>> On 16/05/18 10:30, Sam wrote:
>>
>>> I want DPDK VHOST module DEBUG level log
>>>
>> First make sure you build DPDK with debug logging enabled, than you can
>> set the debug level using appctl.
>>
>> ovs-appctl vlog/list | grep dpdk
>> ovs-appctl vlog/set file:dpdk:dbg
>>
>> Logs should be in the ovs-vswitchd.log.
>>
>> //Eelco
>>
>> 2018-05-16 16:27 GMT+08:00 Sam <[email protected]>:
>>>
>>> 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~
>>>>
>>>> _______________________________________________
>>> dev mailing list
>>> [email protected]
>>> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
>>>
>>
>>
>> _______________________________________________
>> dev mailing list
>> [email protected]
>> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
>>
>
>
>
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev