X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=genevent-new%2Fparser.h;h=482e16d0eb6de5466ee988ab79b3620443534ab5;hb=5a413497af425939d816da3773555b6dcd985f81;hp=c846697b89099338c938e9fef05784a738f6e133;hpb=3583026d9a76dc3c9402f95a41b2c54dee63b8c8;p=lttv.git diff --git a/genevent-new/parser.h b/genevent-new/parser.h index c846697b..482e16d0 100644 --- a/genevent-new/parser.h +++ b/genevent-new/parser.h @@ -77,9 +77,15 @@ static const int BUFFER_SIZE = 1024; /* Events data types */ typedef enum _data_type { + INT_FIXED, + UINT_FIXED, + POINTER, + CHAR, + UCHAR, + SHORT, + USHORT, INT, UINT, - POINTER, LONG, ULONG, SIZE_T, @@ -101,7 +107,7 @@ typedef struct _type_descriptor { char * type_name; //used for named type data_type_t type; char *fmt; - int size; + unsigned long long size; sequence_t labels; // for enumeration sequence_t labels_description; int already_printed; @@ -139,7 +145,8 @@ typedef struct _facility { table_t named_types; } facility_t; -int getSize(parse_file_t *in); +int getSizeindex(unsigned int value); +unsigned long long int getSize(parse_file_t *in); unsigned long getTypeChecksum(unsigned long aCrc, type_descriptor_t * type); void parseFacility(parse_file_t *in, facility_t * fac); @@ -206,4 +213,13 @@ crc32(const char *s) } +extern char *intOutputTypes[]; + +extern char *uintOutputTypes[]; + +extern char *floatOutputTypes[]; + + + + #endif // PARSER_H