17 #ifndef __DATASTATS_H__
18 #define __DATASTATS_H__
23 #include <common/config.h>
27 #pragma GCC visibility push(hidden)
29 extern int _starpu_enable_stats;
31 void _starpu_datastats_init();
33 static inline int starpu_enable_stats(
void)
35 return _starpu_enable_stats;
38 void __starpu_msi_cache_hit(
unsigned node);
39 void __starpu_msi_cache_miss(
unsigned node);
41 #define _starpu_msi_cache_hit(node) do { \
42 if (starpu_enable_stats()) \
43 __starpu_msi_cache_hit(node); \
46 #define _starpu_msi_cache_miss(node) do { \
47 if (starpu_enable_stats()) \
48 __starpu_msi_cache_miss(node); \
51 void _starpu_display_msi_stats(FILE *stream);
53 void __starpu_allocation_cache_hit(
unsigned node STARPU_ATTRIBUTE_UNUSED);
54 void __starpu_data_allocation_inc_stats(
unsigned node STARPU_ATTRIBUTE_UNUSED);
56 #define _starpu_allocation_cache_hit(node) do { \
57 if (starpu_enable_stats()) \
58 __starpu_allocation_cache_hit(node); \
61 #define _starpu_data_allocation_inc_stats(node) do { \
62 if (starpu_enable_stats()) \
63 __starpu_data_allocation_inc_stats(node); \
66 void _starpu_display_alloc_cache_stats(FILE *stream);
68 #pragma GCC visibility pop