11 assert(lp->
pe->
delta_buffer[0] &&
"increase --buddy-size argument!");
26 unsigned char *current_state = (
unsigned char *)lp->
cur_state;
30 for (i = 0; i < state_sz; i++) {
31 snapshot[i] = current_state[i] - snapshot[i];
60 unsigned char *current_state = (
unsigned char *)lp->
cur_state;
69 for (i = 0; i < state_sz; i++) {
70 current_state[i] = current_state[i] - snapshot[i];
void * delta_buddy
Delta memory from buddy allocator.
int LZ4_decompress_fast(const char *source, char *dest, int originalSize)
size_t delta_size
Size of delta.
void tw_snapshot_restore(tw_lp *lp, size_t state_sz)
void tw_error(const char *file, int line, const char *fmt,...) NORETURN
tw_statistics stats
per PE counters
unsigned char * delta_buffer[3]
buffers used for delta encoding
static tw_clock tw_clock_read(void)
void * buddy_alloc(unsigned size)
long tw_snapshot_delta(tw_lp *lp, size_t state_sz)
int LZ4_compress_fast_extState(void *state, const char *source, char *dest, int inputSize, int maxOutputSize, int acceleration)
void tw_snapshot(tw_lp *lp, size_t state_sz)
tw_event * cur_event
Current event being processed.
void * cur_state
Current application LP data.
unsigned int g_tw_lz4_knob