17 #ifndef __DATASTATS_H__ 18 #define __DATASTATS_H__ 23 #include <common/config.h> 27 extern int _starpu_enable_stats;
29 void _starpu_datastats_init();
31 static inline int starpu_enable_stats(
void)
33 return _starpu_enable_stats;
36 void __starpu_msi_cache_hit(
unsigned node);
37 void __starpu_msi_cache_miss(
unsigned node);
39 #define _starpu_msi_cache_hit(node) do { \ 40 if (starpu_enable_stats()) \ 41 __starpu_msi_cache_hit(node); \ 44 #define _starpu_msi_cache_miss(node) do { \ 45 if (starpu_enable_stats()) \ 46 __starpu_msi_cache_miss(node); \ 49 void _starpu_display_msi_stats(FILE *stream);
51 void __starpu_allocation_cache_hit(
unsigned node STARPU_ATTRIBUTE_UNUSED);
52 void __starpu_data_allocation_inc_stats(
unsigned node STARPU_ATTRIBUTE_UNUSED);
54 #define _starpu_allocation_cache_hit(node) do { \ 55 if (starpu_enable_stats()) \ 56 __starpu_allocation_cache_hit(node); \ 59 #define _starpu_data_allocation_inc_stats(node) do { \ 60 if (starpu_enable_stats()) \ 61 __starpu_data_allocation_inc_stats(node); \ 64 void _starpu_display_alloc_cache_stats(FILE *stream);
66 #endif // __DATASTATS_H__