[EXTERNAL] [PATCH V4] Add new tracepoint function for type time_t
Sunil Kumar Kori
skori at marvell.com
Wed May 28 18:14:11 CEST 2025
> From: Changqing Li <changqing.li at windriver.com>
>
> To support Y2038 issue, for 32bit system, -D_TIME_BITS=64 is passed to gcc, struct
> timespec time->tv_sec is 64bit, but size_t is 32bits, so dpdk will compile failed
> with error:
> "../git/lib/ethdev/ethdev_trace.h: In function
> 'rte_eth_trace_timesync_write_time':
> ../git/lib/eal/include/rte_common.h:498:55: error: size of unnamed array is
> negative
> 498 | #define RTE_BUILD_BUG_ON(condition) ((void)sizeof(char[1 -
> 2*!!(condition)]))"
>
> Add a new tracepoint function for type time_t to fix this issue
>
> Signed-off-by: Changqing Li <changqing.li at windriver.com>
> ---
> lib/eal/common/eal_common_trace_ctf.c | 5 +++++
> lib/eal/include/rte_trace_point.h | 5 +++++
> lib/ethdev/ethdev_trace.h | 8 ++++----
> 3 files changed, 14 insertions(+), 4 deletions(-)
>
Acked-by: Sunil Kumar Kori <skori at marvell.com>
More information about the dev
mailing list