diff --git a/sort.c b/sort.c index e4ffa64..6f97941 100644 --- a/sort.c +++ b/sort.c @@ -37,6 +37,7 @@ #include #include #include +#include #include "ovni.h" #include "trace.h" @@ -127,17 +128,57 @@ ends_unsorted_region(struct ovni_ev *ev) ev->header.value == ']'; } +static void +hexdump(uint8_t *buf, size_t size) +{ + UNUSED(buf); + UNUSED(size); + +#ifdef ENABLE_DEBUG + + size_t i, j; + + //printf("writing %ld bytes in cpu=%d\n", size, rthread.cpu); + + for(i=0; itid); if(execute_sort_plan(&sp) < 0) { err("sort failed for stream tid=%d\n", @@ -325,6 +370,7 @@ process_trace(struct ovni_trace *trace) stream = &trace->stream[i]; if(operation_mode == SORT) { + dbg("sorting stream tid=%d\n", stream->tid); if(stream_winsort(stream, &ring) != 0) { err("sort stream tid=%d failed\n", stream->tid);