TinySTM  1.0.5
mod_stats.h
Go to the documentation of this file.
1 /*
2  * File:
3  * mod_stats.h
4  * Author(s):
5  * Pascal Felber <pascal.felber@unine.ch>
6  * Patrick Marlier <patrick.marlier@unine.ch>
7  * Description:
8  * Module for gathering statistics about transactions.
9  *
10  * Copyright (c) 2007-2014.
11  *
12  * This program is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU General Public License
14  * as published by the Free Software Foundation, version 2
15  * of the License.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * This program has a dual license and can also be distributed
23  * under the terms of the MIT license.
24  */
25 
41 #ifndef _MOD_STATS_H_
42 # define _MOD_STATS_H_
43 
44 # include "stm.h"
45 
46 # ifdef __cplusplus
47 extern "C" {
48 # endif
49 
62 int stm_get_global_stats(const char *name, void *val);
63 
76 int stm_get_local_stats(const char *name, void *val);
77 
83 void mod_stats_init(void);
84 
85 # ifdef __cplusplus
86 }
87 # endif
88 
89 #endif /* _MOD_STATS_H_ */