This patch fixes errors caused by using Unix-only functions in tracing EAL. It introduces new internal EAL wrappers for directory management and provides simple, but correct implementation for some EAL functions required for tracing.
This patch implements rte_get_tsc_hz() instead of basing upon a pending patchset, because fixing the build allows testing said patchset in the first place, and also re-implemented code is only a few lines. Dmitry Kozlyuk (2): eal/windows: replace sys/queue.h with a complete one from FreeBSD eal/windows: fix build by supporting trace config/meson.build | 2 + .../common/eal_common_trace_utils.c | 29 +- lib/librte_eal/common/eal_private.h | 26 + lib/librte_eal/common/meson.build | 5 + lib/librte_eal/freebsd/Makefile | 4 + .../include/generic/rte_byteorder.h | 4 +- lib/librte_eal/linux/Makefile | 4 + lib/librte_eal/meson.build | 4 + lib/librte_eal/unix/eal_unix.c | 45 ++ lib/librte_eal/unix/meson.build | 6 + lib/librte_eal/windows/eal.c | 91 +++ lib/librte_eal/windows/eal_thread.c | 9 + lib/librte_eal/windows/eal_windows.h | 3 + lib/librte_eal/windows/include/rte_os.h | 33 +- lib/librte_eal/windows/include/sys/queue.h | 663 ++++++++++++++++-- 15 files changed, 838 insertions(+), 90 deletions(-) create mode 100644 lib/librte_eal/unix/eal_unix.c create mode 100644 lib/librte_eal/unix/meson.build -- 2.25.1