aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/odp_system_info.c
diff options
context:
space:
mode:
Diffstat (limited to 'platform/linux-generic/odp_system_info.c')
-rw-r--r--platform/linux-generic/odp_system_info.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/platform/linux-generic/odp_system_info.c b/platform/linux-generic/odp_system_info.c
index 5665a3ece..69a088032 100644
--- a/platform/linux-generic/odp_system_info.c
+++ b/platform/linux-generic/odp_system_info.c
@@ -362,6 +362,21 @@ static int read_config_file(void)
return 0;
}
+static void print_compiler_info(void)
+{
+ ODP_PRINT("Compiler defines:\n");
+ ODP_PRINT(" __GCC_ATOMIC_LLONG_LOCK_FREE: %d\n", __GCC_ATOMIC_LLONG_LOCK_FREE);
+ ODP_PRINT(" __GCC_ATOMIC_LONG_LOCK_FREE: %d\n", __GCC_ATOMIC_LONG_LOCK_FREE);
+ ODP_PRINT(" __GCC_ATOMIC_INT_LOCK_FREE: %d\n", __GCC_ATOMIC_INT_LOCK_FREE);
+ ODP_PRINT(" __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16: ");
+#ifdef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16
+ ODP_PRINT("1\n");
+#else
+ ODP_PRINT("0\n");
+#endif
+ ODP_PRINT("\n");
+}
+
/*
* System info initialisation
*/
@@ -415,6 +430,8 @@ int _odp_system_info_init(void)
system_hp(&odp_global_ro.hugepage_info);
+ print_compiler_info();
+
return 0;
}
@@ -612,5 +629,6 @@ void odp_sys_config_print(void)
ODP_PRINT("CONFIG_BURST_SIZE: %i\n", CONFIG_BURST_SIZE);
ODP_PRINT("CONFIG_POOL_MAX_NUM: %i\n", CONFIG_POOL_MAX_NUM);
ODP_PRINT("CONFIG_POOL_CACHE_MAX_SIZE: %i\n", CONFIG_POOL_CACHE_MAX_SIZE);
+ ODP_PRINT("CONFIG_TIMER_128BIT_ATOMICS: %i\n", CONFIG_TIMER_128BIT_ATOMICS);
ODP_PRINT("\n");
}