[dpdk-users] Segmentation fault in rte_eth_devices()
Vincent Li
vincent.mc.li at gmail.com
Fri Jun 12 02:55:48 CEST 2020
On Thu, 11 Jun 2020, David Aldrich wrote:
> Following on from my question, I want to enable more debug info in DPDK. I
> am building DPDK using:
>
> usertools/dpdk-setup.sh
When I use dpdk-setup.sh, after the first build, there is a target
directory like x86_64-native-linuxapp-gcc created under dpdk root source
directory, and there is '.config' file in x86_64-native-linuxapp-gcc
directory, you can edit '.config' like 'CONFIG_RTE_LIBRTE_ETHDEV_DEBUG=y',
then run dpdk-setup.sh again to build. this is one way to do it.
According to doc/build-sdk-quick.txt, you can also
make config T=x86_64-native-linuxapp-gcc
then manually edit x86_64-native-linuxapp-gcc/.config for your debug
option
>
> Am I correct in thinking that the build commands in that script use make
> and I should modify the appropriate:
>
> config/defconfig_*
>
> file (defconfig_x86_64-native-linuxapp-gcc in my case) ?
>
> If so, would these values be appropriate?
>
> CONFIG_ RTE_LIBRTE_ETHDEV_DEBUG=y
> RTE_LOG_LEVEL=RTE_LOG_DEBUG
> RTE_LIBRTE_ETHDEV_DEBUG=y
>
> (not sure whether all values should be prefixed by 'CONFIG_'?)
>
> Finally, where do I specify '-O0 -g' for the DPDK build?
Again according to doc/build-sdk-quick.txt, maybe:
#EXTRA_CFLAGS='-O0 -g' make
More information about the users
mailing list