4 #include "threads-model.h"
11 void enter_function(const uint32_t func_id, thread_id_t tid);
12 void exit_function(const uint32_t func_id, thread_id_t tid);
14 uint32_t get_func_counter() { return func_counter; }
15 void incr_func_counter() { func_counter++; }
17 void add_func_atomic(ModelAction *act, thread_id_t tid);
19 HashTable<const char *, uint32_t, uintptr_t, 4, model_malloc, model_calloc, model_free> * getFuncMap() { return &func_map; }
20 ModelVector<FuncNode *> * getFuncAtomics() { return &func_atomics; }
26 uint32_t func_counter;
28 /* map function names to integer ids */
29 HashTable<const char *, uint32_t, uintptr_t, 4, model_malloc, model_calloc, model_free> func_map;
31 ModelVector<FuncNode *> func_atomics;