]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/include/rte_eal.h
eal/armv8: use high-resolution cycle counter
[dpdk.git] / lib / librte_eal / common / include / rte_eal.h
index a71d6f570acae630804bd46e39a1ad1bc3f4be86..d150b9dd714f05fb06d8ccff38c5986ef7f69f78 100644 (file)
@@ -44,6 +44,7 @@
 #include <sched.h>
 
 #include <rte_per_lcore.h>
+#include <rte_config.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -252,6 +253,9 @@ static inline int rte_gettid(void)
        return RTE_PER_LCORE(_thread_id);
 }
 
+#define RTE_INIT(func) \
+static void __attribute__((constructor, used)) func(void)
+
 #ifdef __cplusplus
 }
 #endif