1 #ifndef __MONO_MPLOG_UTILS_H__
2 #define __MONO_MPLOG_UTILS_H__
5 #include "mono/utils/mono-publib.h"
7 void utils_init (int fast_time);
8 int get_timer_overhead (void);
9 uint64_t current_time (void);
10 void* alloc_buffer (int size);
11 void free_buffer (void *buf, int size);
12 void take_lock (void);
13 void release_lock (void);
14 uintptr_t thread_id (void);
16 void encode_uleb128 (uint64_t value, uint8_t *buf, uint8_t **endbuf);
17 void encode_sleb128 (intptr_t value, uint8_t *buf, uint8_t **endbuf);
18 uint64_t decode_uleb128 (uint8_t *buf, uint8_t **endbuf);
19 intptr_t decode_sleb128 (uint8_t *buf, uint8_t **endbuf);
22 #endif /* __MONO_MPLOG_UTILS_H__ */