[dpdk-dev] [PATCH v2 3/3] eal/windows: fix build by enabling trace compilation
Thomas Monjalon
thomas at monjalon.net
Sun Apr 26 17:38:22 CEST 2020
I think this patch is doing too many things at once.
Why not just disabling tracing on Windows for now,
and apply proper patches for memory management, timer, endianness, etc
in 20.08?
Some cosmetic comments below,
26/04/2020 17:28, Dmitry Kozlyuk:
> Replace clock_gettime(CLOCK_REALTIME) with C11 timespec_get().
> Implementation is provided for MinGW-w64 that misses this function.
>
> Provide minimum viable implementations of malloc and timer functions
> used by tracing. Regex stubs are already present in Windows EAL.
>
> Fixes: 185b7dc1d467 ("trace: save bootup timestamp")
> Fixes: 321dd5f8fa62 ("trace: add internal init and fini interface")
> Reported-by: Pallavi Kadam <pallavi.kadam at intel.com>
> Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk at gmail.com>
Blank line is required between "Fixes" block and " Reported/SoB".
[...]
> --- a/lib/librte_eal/include/generic/rte_byteorder.h
> +++ b/lib/librte_eal/include/generic/rte_byteorder.h
> -#ifdef RTE_EXEC_ENV_FREEBSD
> +#if defined(RTE_EXEC_ENV_FREEBSD)
No need to change above line.
> #include <sys/endian.h>
> -#else
> +#elif defined(RTE_EXEC_ENV_LINUX)
Parenthesis are useless.
> #include <endian.h>
> #endif
More information about the dev
mailing list