]> pd.if.org Git - liblfds/blob - liblfds/liblfds7.1.0/test_and_benchmark/libtest/inc/libtest/libtest_misc.h
Initial import (all versions, including the new 7.1.0)
[liblfds] / liblfds / liblfds7.1.0 / test_and_benchmark / libtest / inc / libtest / libtest_misc.h
1 /***** defines *****/
2 #define LIBTEST_MISC_VERSION_STRING   "7.1.0"
3 #define LIBTEST_MISC_VERSION_INTEGER  710
4
5 #define LIBTEST_MISC_OFFSETOF( structure, member )  (lfds710_pal_uint_t) ( ( &( (structure *) NULL )->member ) )
6
7 /***** enums *****/
8 enum libtest_misc_determine_erg_result
9 {
10   LIBTEST_MISC_DETERMINE_ERG_RESULT_SUCCESS,
11   LIBTEST_MISC_DETERMINE_ERG_RESULT_ONE_PHYSICAL_CORE,
12   LIBTEST_MISC_DETERMINE_ERG_RESULT_ONE_PHYSICAL_CORE_OR_NO_LLSC,
13   LIBTEST_MISC_DETERMINE_ERG_RESULT_NO_LLSC,
14   LIBTEST_MISC_DETERMINE_ERG_RESULT_NOT_SUPPORTED
15 };
16
17 enum libtest_misc_query
18 {
19   LIBTEST_MISC_QUERY_GET_BUILD_AND_VERSION_STRING
20 };
21
22 /***** externs *****/
23 extern char
24   *libtest_misc_global_validity_names[];
25
26 /***** public prototypes *****/
27 void *libtest_misc_aligned_malloc( lfds710_pal_uint_t size, lfds710_pal_uint_t align_in_bytes );
28 void libtest_misc_aligned_free( void *memory );
29
30 void libtest_misc_determine_erg( struct libshared_memory_state *ms,
31                                  lfds710_pal_uint_t (*count_array)[10],
32                                  enum libtest_misc_determine_erg_result *der,
33                                  lfds710_pal_uint_t *erg_length_in_bytes );
34
35 void libtest_misc_pal_helper_add_logical_processor_to_list_of_logical_processors( struct lfds710_list_asu_state *list_of_logical_processors,
36                                                                                   struct libshared_memory_state *ms,
37                                                                                   lfds710_pal_uint_t logical_processor_number,
38                                                                                   lfds710_pal_uint_t windows_processor_group_number );
39
40 void libtest_misc_query( enum libtest_misc_query query_type,
41                          void *query_input,
42                          void *query_output );
43