set(DLMALLOC 0)
endif(VPP_USE_DLMALLOC)
+find_library(NUMA numa)
+if (NUMA)
+ set(NUMA_LIBRARY_FOUND 1)
+else(NUMA)
+ set(NUMA_LIBRARY_FOUND 0)
+endif()
+
configure_file(
${CMAKE_SOURCE_DIR}/vppinfra/config.h.in
${CMAKE_BINARY_DIR}/vppinfra/config.h
# vppinfra sources
##############################################################################
set(VPPINFRA_SRCS
- asm_x86.c
backtrace.c
+ bihash_all_vector.c
cpu.c
cuckoo_template.c
elf.c
macros.c
maplog.c
mhash.c
+ mpcap.c
pcap.c
pmalloc.c
pool.c
random.c
random_buffer.c
random_isaac.c
+ rbtree.c
serialize.c
slist.c
socket.c
string.c
time.c
time_range.c
- timer.c
timing_wheel.c
tw_timer_2t_1w_2048sl.c
tw_timer_16t_2w_512sl.c
)
set(VPPINFRA_HEADERS
- asm_mips.h
- asm_x86.h
+ sanitizer.h
bihash_16_8.h
bihash_24_8.h
bihash_40_8.h
bitops.h
byte_order.h
cache.h
+ callback.h
clib_error.h
clib.h
cpu.h
hash.h
heap.h
lb_hash_hash.h
+ llist.h
lock.h
longjmp.h
macros.h
mhash.h
mheap_bootstrap.h
mheap.h
+ mpcap.h
os.h
pcap.h
pcap_funcs.h
random_buffer.h
random.h
random_isaac.h
+ rbtree.h
serialize.h
+ sha2.h
slist.h
smp.h
socket.h
string.h
time.h
time_range.h
- timer.h
timing_wheel.h
tw_timer_16t_1w_2048sl.h
tw_timer_16t_2w_512sl.h
types.h
atomics.h
unix.h
- valgrind.h
valloc.h
vec_bootstrap.h
vec.h
add_vpp_library(vppinfra
SOURCES ${VPPINFRA_SRCS}
- LINK_LIBRARIES m
+ LINK_LIBRARIES m ${NUMA}
INSTALL_HEADERS ${VPPINFRA_HEADERS}
COMPONENT libvppinfra
)
ptclosure
random
random_isaac
+ rwlock
serialize
slist
socket
+ spinlock
time
time_range
timing_wheel
)
add_vpp_executable(test_${test}
SOURCES test_${test}.c
- LINK_LIBRARIES vppinfra
+ LINK_LIBRARIES vppinfra pthread
)
endforeach()