1 /**
2 * Copyright (C) Mellanox Technologies Ltd. 2001-2016.  ALL RIGHTS RESERVED.
3 *
4 * See file LICENSE for terms.
5 */
6 
7 #ifndef UCS_STATS_FD_H_
8 #define UCS_STATS_FD_H_
9 
10 #include <stdint.h>
11 
12 #include <ucs/sys/compiler_def.h>
13 
14 BEGIN_C_DECLS
15 
16 /** @file stats_fwd.h */
17 
18 typedef uint64_t                          ucs_stats_counter_t;        /* Stats counter*/
19 typedef struct ucs_stats_class            ucs_stats_class_t;          /* Stats class */
20 typedef struct ucs_stats_node             ucs_stats_node_t;           /* Stats node */
21 typedef struct ucs_stats_filter_node      ucs_stats_filter_node_t;    /* Stats filter node */
22 
23 typedef enum {
24     UCS_STATS_FULL,        /* Full statistics report */
25     UCS_STATS_FULL_AGG,    /* Full statistics report */
26     UCS_STATS_SUMMARY,     /* Summary statistics report */
27     UCS_STATS_LAST
28 } ucs_stats_formats_t;
29 
30 extern const char *ucs_stats_formats_names[];
31 ucs_stats_node_t * ucs_stats_get_root(void);
32 
33 END_C_DECLS
34 
35 #endif /* STATS_FD_H_ */
36