X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fltt%2Fltt.h;h=02d937c24b003f787560ffdab2b0f57f2a8fe2d9;hb=129fd24a34d6771b0678a8c7449afdb246f7ff07;hp=0aa413bd7e7439fa3641622df630dc687a7317df;hpb=f95bc8309fe113855266f4445874248b6a285062;p=lttv.git diff --git a/ltt/branches/poly/ltt/ltt.h b/ltt/branches/poly/ltt/ltt.h index 0aa413bd..02d937c2 100644 --- a/ltt/branches/poly/ltt/ltt.h +++ b/ltt/branches/poly/ltt/ltt.h @@ -19,8 +19,9 @@ #ifndef LTT_H #define LTT_H -#include #include +#include +#include /* A trace is associated with a tracing session run on a single, possibly multi-cpu, system. It is defined as a pathname to a directory containing @@ -66,6 +67,10 @@ contained information (byte offsets) may vary with the architecture associated to the trace. */ +#define NUM_FACILITIES 256 +#define FACILITIES_BITS 8 +#define AVG_EVENTS_PER_FACILITIES 10 + typedef struct _LttTrace LttTrace; typedef struct _LttTracefile LttTracefile; @@ -82,10 +87,11 @@ typedef struct _LttEvent LttEvent; typedef struct _LttSystemDescription LttSystemDescription; + /* Checksums are used to differentiate facilities which have the same name but differ. */ -typedef unsigned long LttChecksum; +//typedef guint32 LttChecksum; /* Events are usually stored with the easily obtained CPU clock cycle count, @@ -96,8 +102,8 @@ typedef unsigned long LttChecksum; typedef struct _TimeInterval{ - LttTime startTime; - LttTime endTime; + LttTime start_time; + LttTime end_time; } TimeInterval; @@ -125,9 +131,10 @@ typedef enum _LttArchEndian } LttArchEndian; typedef enum _LttTypeEnum -{ LTT_INT, LTT_UINT, LTT_FLOAT, LTT_STRING, LTT_ENUM, LTT_ARRAY, +{ LTT_INT, LTT_UINT, LTT_POINTER, LTT_LONG, LTT_ULONG, LTT_SIZE_T, + LTT_SSIZE_T, LTT_OFF_T, LTT_FLOAT, LTT_STRING, LTT_ENUM, LTT_ARRAY, LTT_SEQUENCE, LTT_STRUCT, LTT_UNION } LttTypeEnum; - + #endif // LTT_H