X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fltt%2Fconvert%2FLinuxEvents.h;h=dfd0840c9b2ce96c329dcfabb7c70afabaea0138;hb=f628823c5712cc8b8bfe10ade63b6c7c2862f5e5;hp=d678df89c7b88a49f2e3dc447043da1ab93c1ce7;hpb=15062788da3de89825fc48e314c91220d628c996;p=lttv.git diff --git a/ltt/branches/poly/ltt/convert/LinuxEvents.h b/ltt/branches/poly/ltt/convert/LinuxEvents.h index d678df89..dfd0840c 100644 --- a/ltt/branches/poly/ltt/convert/LinuxEvents.h +++ b/ltt/branches/poly/ltt/convert/LinuxEvents.h @@ -71,8 +71,20 @@ /* The information logged when the tracing is started */ #define TRACER_MAGIC_NUMBER 0x00D6B7ED /* That day marks an important historical event ... */ #define TRACER_SUP_VERSION_MAJOR 2 /* Major version number */ -#define TRACER_SUP_VERSION_MINOR 2 /* Minor version number */ -typedef struct _trace_start + +/* Minimum information contained in any trace start event */ +typedef struct _trace_start_any +{ + uint32_t MagicNumber; /* Magic number to identify a trace */ + uint32_t ArchType; /* Type of architecture */ + uint32_t ArchVariant; /* Variant of the given type of architecture */ + uint32_t SystemType; /* Operating system type */ + uint8_t MajorVersion; /* Major version of trace */ + uint8_t MinorVersion; /* Minor version of trace */ + +} LTT_PACKED_STRUCT trace_start_any; + +typedef struct _trace_start_2_2 { uint32_t MagicNumber; /* Magic number to identify a trace */ uint32_t ArchType; /* Type of architecture */ @@ -85,10 +97,27 @@ typedef struct _trace_start trace_event_mask EventMask; /* The event mask */ trace_event_mask DetailsMask; /* Are the event details logged */ uint8_t LogCPUID; /* Is the CPUID logged */ - uint8_t UseTSC; /* Are we using TSCs or time deltas */ + uint8_t UseTSC; /* Are we using TSCs or time deltas */ + +} LTT_PACKED_STRUCT trace_start_2_2; + +typedef struct _trace_start_2_3 +{ + uint32_t MagicNumber; /* Magic number to identify a trace */ + uint32_t ArchType; /* Type of architecture */ + uint32_t ArchVariant; /* Variant of the given type of architecture */ + uint32_t SystemType; /* Operating system type */ + uint8_t MajorVersion; /* Major version of trace */ + uint8_t MinorVersion; /* Minor version of trace */ -} LTT_PACKED_STRUCT trace_start; -#define START_EVENT(X) ((trace_start*)X) + uint32_t BufferSize; /* Size of buffers */ + trace_event_mask EventMask; /* The event mask */ + trace_event_mask DetailsMask; /* Are the event details logged */ + uint8_t LogCPUID; /* Is the CPUID logged */ + uint8_t UseTSC; /* Are we using TSCs or time deltas */ + + uint8_t FlightRecorder; /* Is this a flight recorder trace ? */ +} LTT_PACKED_STRUCT trace_start_2_3; /* TRACE_SYSCALL_ENTRY */ typedef struct _trace_syscall_entry @@ -148,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 */