[PATCH V4] Add new tracepoint function for type time_t
Thomas Monjalon
thomas at monjalon.net
Mon Jun 9 15:36:06 CEST 2025
27/05/2025 14:04, changqing.li at windriver.com:
> 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>
Applied, thanks.
More information about the dev
mailing list