X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fltt%2Fltt.h;h=423d7cd276729fbc456e1b171fb2ba37c752d53c;hb=d27446d1c753dc4d628c3072f11e6b7581ccfcd8;hp=02d937c24b003f787560ffdab2b0f57f2a8fe2d9;hpb=513eefe0b73ac073c1b9f5682ab786a12196fe56;p=lttv.git diff --git a/ltt/branches/poly/ltt/ltt.h b/ltt/branches/poly/ltt/ltt.h index 02d937c2..423d7cd2 100644 --- a/ltt/branches/poly/ltt/ltt.h +++ b/ltt/branches/poly/ltt/ltt.h @@ -1,5 +1,6 @@ /* This file is part of the Linux Trace Toolkit trace reading library * Copyright (C) 2003-2004 Michel Dagenais + * 2005 Mathieu Desnoyers * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -71,22 +72,13 @@ #define FACILITIES_BITS 8 #define AVG_EVENTS_PER_FACILITIES 10 -typedef struct _LttTrace LttTrace; +typedef struct LttTrace LttTrace; -typedef struct _LttTracefile LttTracefile; +typedef struct LttTracefile LttTracefile; -typedef struct _LttFacility LttFacility; - -typedef struct _LttEventType LttEventType; - -typedef struct _LttType LttType; - -typedef struct _LttField LttField; - -typedef struct _LttEvent LttEvent; - -typedef struct _LttSystemDescription LttSystemDescription; +typedef struct LttSystemDescription LttSystemDescription; +typedef struct LttEvent LttEvent; /* Checksums are used to differentiate facilities which have the same name but differ. */ @@ -109,11 +101,10 @@ typedef struct _TimeInterval{ typedef guint64 LttCycleCount; - /* Event positions are used to seek within a tracefile based on the block number and event position within the block. */ -typedef struct _LttEventPosition LttEventPosition; +typedef struct LttEventPosition LttEventPosition; /* Differences between architectures include word sizes, endianess, @@ -131,10 +122,46 @@ typedef enum _LttArchEndian } LttArchEndian; typedef enum _LttTypeEnum -{ 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 +{ LTT_INT_FIXED, + LTT_UINT_FIXED, + LTT_POINTER, + LTT_CHAR, + LTT_UCHAR, + LTT_SHORT, + LTT_USHORT, + LTT_INT, + LTT_UINT, + 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, + LTT_NONE } LttTypeEnum; + + +/* Architecture types */ +#define LTT_ARCH_TYPE_I386 1 +#define LTT_ARCH_TYPE_PPC 2 +#define LTT_ARCH_TYPE_SH 3 +#define LTT_ARCH_TYPE_S390 4 +#define LTT_ARCH_TYPE_MIPS 5 +#define LTT_ARCH_TYPE_ARM 6 +#define LTT_ARCH_TYPE_PPC64 7 +#define LTT_ARCH_TYPE_X86_64 8 +#define LTT_ARCH_TYPE_C2 9 +#define LTT_ARCH_TYPE_POWERPC 10 + +/* Standard definitions for variants */ +#define LTT_ARCH_VARIANT_NONE 0 /* Main architecture implementation */ + #endif // LTT_H