Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 69f62669a8
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 25 lines (18 sloc) 0.687 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#ifndef __MONO_MPLOG_UTILS_H__
#define __MONO_MPLOG_UTILS_H__

#include "config.h"
#include "mono/utils/mono-publib.h"

void utils_init (int fast_time);
int get_timer_overhead (void);
uint64_t current_time (void);
void* alloc_buffer (int size);
void free_buffer (void *buf, int size);
void take_lock (void);
void release_lock (void);
uintptr_t thread_id (void);
uintptr_t process_id (void);

void encode_uleb128 (uint64_t value, uint8_t *buf, uint8_t **endbuf);
void encode_sleb128 (intptr_t value, uint8_t *buf, uint8_t **endbuf);
uint64_t decode_uleb128 (uint8_t *buf, uint8_t **endbuf);
intptr_t decode_sleb128 (uint8_t *buf, uint8_t **endbuf);


#endif /* __MONO_MPLOG_UTILS_H__ */

Something went wrong with that request. Please try again.