]> pd.if.org Git - liblfds/blob - liblfds/liblfds7.1.0/test_and_benchmark/test/src/internal.h
Initial import (all versions, including the new 7.1.0)
[liblfds] / liblfds / liblfds7.1.0 / test_and_benchmark / test / src / internal.h
1 /***** includes *****/
2 #include <assert.h>
3 #include <ctype.h>
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include "../../../liblfds710/inc/liblfds710.h"
7 #include "../../libtest/inc/libtest.h"
8 #include "util_cmdline.h"
9
10 /***** defines *****/
11 #define and &&
12 #define or  ||
13
14 #define BITS_PER_BYTE 8
15
16 #define NO_FLAGS 0x0
17
18 #define TEST_DEFAULT_TEST_MEMORY_IN_MEGABYTES  512
19 #define ONE_MEGABYTE_IN_BYTES                  (1024 * 1024)
20
21 #define TEST_VERSION_STRING   "7.1.0"
22 #define TEST_VERSION_INTEGER  710
23
24 #if( defined KERNEL_MODE )
25   #define MODE_TYPE_STRING "kernel-mode"
26 #endif
27
28 #if( !defined KERNEL_MODE )
29   #define MODE_TYPE_STRING "user-mode"
30 #endif
31
32 #if( defined NDEBUG && !defined COVERAGE && !defined TSAN && !defined PROF )
33   #define BUILD_TYPE_STRING "release"
34 #endif
35
36 #if( !defined NDEBUG && !defined COVERAGE && !defined TSAN && !defined PROF )
37   #define BUILD_TYPE_STRING "debug"
38 #endif
39
40 #if( !defined NDEBUG && defined COVERAGE && !defined TSAN && !defined PROF )
41   #define BUILD_TYPE_STRING "coverage"
42 #endif
43
44 #if( !defined NDEBUG && !defined COVERAGE && defined TSAN && !defined PROF )
45   #define BUILD_TYPE_STRING "threadsanitizer"
46 #endif
47
48 #if( !defined NDEBUG && !defined COVERAGE && !defined TSAN && defined PROF )
49   #define BUILD_TYPE_STRING "profiling"
50 #endif
51
52 /***** enums *****/
53
54 /***** structs *****/
55
56 /***** externs *****/
57
58 /***** prototypes *****/
59 int main( int argc, char **argv );
60
61 void callback_test_start( char *test_name );
62 void callback_test_finish( char *result );
63
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 );
66
67