+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
heartbeat beat;
uint64_t adaptation_tsc; // (Mathieu)
uint32_t size_lost;
- int reserve_size = sizeof(buffer_start) +
- sizeof(buffer_end) + //buffer_end event
- sizeof(uint32_t); //lost size
int nb_para;
new_process process;
cur_pos += sizeof(uint32_t); //skip time delta
tStart = (trace_start_any*)cur_pos;
if(tStart->MagicNumber != TRACER_MAGIC_NUMBER)
- g_error("Trace magic number does not match : %lx, should be %lx",
+ g_error("Trace magic number does not match : %x, should be %x",
tStart->MagicNumber, TRACER_MAGIC_NUMBER);
if(tStart->MajorVersion != TRACER_SUP_VERSION_MAJOR)
g_error("Trace Major number does match : %hu, should be %u",
end.block_id = start.block_id;
- g_printf("Trace version %hu.%hu detected\n",
+ g_message("Trace version %hu.%hu detected\n",
tStart->MajorVersion,
tStart->MinorVersion);
if(tStart->MinorVersion == 2) {
* with TRACE_SYSCALL_ENTRY.
*/
g_warning("This is a 2.3 trace format that has a 2.2 tag. Please upgrade your kernel");
- g_printf("Processing the trace as a 2.3 format\n");
+ g_message("Processing the trace as a 2.3 format\n");
tStart->MinorVersion = 3;
}
close(fdProc);
fclose(fp);
- g_printf("Conversion completed. Don't forget to copy core.xml to eventdefs directory\n");
+ g_message("Conversion completed. Don't forget to copy core.xml to eventdefs directory\n");
return 0;
}