6 #include "../../../liblfds710/inc/liblfds710.h"
7 #include "../../libtest/inc/libtest.h"
8 #include "util_cmdline.h"
14 #define BITS_PER_BYTE 8
18 #define TEST_DEFAULT_TEST_MEMORY_IN_MEGABYTES 512
19 #define ONE_MEGABYTE_IN_BYTES (1024 * 1024)
21 #define TEST_VERSION_STRING "7.1.0"
22 #define TEST_VERSION_INTEGER 710
24 #if( defined KERNEL_MODE )
25 #define MODE_TYPE_STRING "kernel-mode"
28 #if( !defined KERNEL_MODE )
29 #define MODE_TYPE_STRING "user-mode"
32 #if( defined NDEBUG && !defined COVERAGE && !defined TSAN && !defined PROF )
33 #define BUILD_TYPE_STRING "release"
36 #if( !defined NDEBUG && !defined COVERAGE && !defined TSAN && !defined PROF )
37 #define BUILD_TYPE_STRING "debug"
40 #if( !defined NDEBUG && defined COVERAGE && !defined TSAN && !defined PROF )
41 #define BUILD_TYPE_STRING "coverage"
44 #if( !defined NDEBUG && !defined COVERAGE && defined TSAN && !defined PROF )
45 #define BUILD_TYPE_STRING "threadsanitizer"
48 #if( !defined NDEBUG && !defined COVERAGE && !defined TSAN && defined PROF )
49 #define BUILD_TYPE_STRING "profiling"
58 /***** prototypes *****/
59 int main( int argc, char **argv );
61 void callback_test_start( char *test_name );
62 void callback_test_finish( char *result );
64 void internal_show_version();
65 void internal_logical_core_id_element_cleanup_callback( struct lfds710_list_asu_state *lasus, struct lfds710_list_asu_element *lasue );