From: compudj Date: Tue, 24 Aug 2004 14:45:12 +0000 (+0000) Subject: fix for smp cfv, fix convert bug for 2.2 format, add task release event handling X-Git-Tag: v0.12.20~2655 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2da616770cf1e686eafdca9f2b155826ad94ee46;p=lttv.git fix for smp cfv, fix convert bug for 2.2 format, add task release event handling git-svn-id: http://ltt.polymtl.ca/svn@834 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/ltt/convert/LinuxEvents.h b/ltt/branches/poly/ltt/convert/LinuxEvents.h index 49ae4a8b..dfd0840c 100644 --- a/ltt/branches/poly/ltt/convert/LinuxEvents.h +++ b/ltt/branches/poly/ltt/convert/LinuxEvents.h @@ -177,6 +177,8 @@ typedef struct _trace_soft_irq #define TRACE_PROCESS_WAIT 4 /* A wait occured */ #define TRACE_PROCESS_SIGNAL 5 /* A signal has been sent */ #define TRACE_PROCESS_WAKEUP 6 /* Wake up a process */ +#define TRACE_PROCESS_RELEASE 7 /* A task struct has been released */ + typedef struct _trace_process { uint8_t event_sub_id; /* Process event ID */ diff --git a/ltt/branches/poly/ltt/convert/convert.c b/ltt/branches/poly/ltt/convert/convert.c index 3f7bc141..7b4403ea 100644 --- a/ltt/branches/poly/ltt/convert/convert.c +++ b/ltt/branches/poly/ltt/convert/convert.c @@ -111,7 +111,7 @@ int main(int argc, char ** argv){ int ltt_major_version=0; int ltt_minor_version=0; int ltt_log_cpu; - guint ltt_trace_start_size; + guint ltt_trace_start_size = 0; char buf[BUFFER_SIZE]; int i, k; @@ -346,11 +346,11 @@ int main(int argc, char ** argv){ ltt_trace_start_size = sizeof(trace_start_2_3); /* We do not use the flight recorder information for now, because we * never use the .proc file anyway */ - } else { - ltt_trace_start_size = 0; + } + + if(ltt_trace_start_size == 0) g_error("Minor version unknown : %hu. Supported minors : 2, 3", tStart->MinorVersion); - } block_size = ltt_block_size;//FIXME block_number = file_size/ltt_block_size; diff --git a/ltt/branches/poly/ltt/convert/core.xml b/ltt/branches/poly/ltt/convert/core.xml index f54441fd..b1b23d61 100644 --- a/ltt/branches/poly/ltt/convert/core.xml +++ b/ltt/branches/poly/ltt/convert/core.xml @@ -86,6 +86,7 @@