On Fri, 15 Nov 2024, Stephen Hemminger wrote:

> Need to include <rte_cycles.h> to get the prototype rte_get_tsc_cycles()


For the code without <rte_cycles.h> could run on x86, I think I have found 
the reason. Through the path <rte_memory.h> -> <rte_eal_memconfig.h> -> 
<rte_spinlock.h>, the <rte_spinlock.h> is included.

<rte_spinlock.h> is independent on each architecture. And on x86 the 
<rte_spinlock.h> includes its own "rte_cycles.h", while other 
architectures do not.

Reply via email to