17#ifndef __DATASTATS_H__
18#define __DATASTATS_H__
23#include <common/config.h>
27extern int _starpu_enable_stats;
29void _starpu_datastats_init();
31static inline int starpu_enable_stats(
void)
33 return _starpu_enable_stats;
36void __starpu_msi_cache_hit(
unsigned node);
37void __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); \
49void _starpu_display_msi_stats(FILE *stream);
51void __starpu_allocation_cache_hit(
unsigned node STARPU_ATTRIBUTE_UNUSED);
52void __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); \
64void _starpu_display_alloc_cache_stats(FILE *stream);