X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Ftrace_format.hpp;h=d5fd81b5b9eeacd6f9a6f2da06ac78a90c5353d9;hb=480267f41ed992e16450bde4c1e46164c0bcd399;hp=5aade00361f4c70d6a6ddb814f30debc355cc271;hpb=eb64451efcd8100d02ec89ff2ae6ea2c78c7645b;p=apitrace diff --git a/common/trace_format.hpp b/common/trace_format.hpp index 5aade00..d5fd81b 100644 --- a/common/trace_format.hpp +++ b/common/trace_format.hpp @@ -66,8 +66,11 @@ namespace trace { * * - version 3: * - enums signatures are recorded for the a whole set of values (not as individual values) + * + * - version 4: + * - call enter events include thread ID */ -#define TRACE_VERSION 3 +#define TRACE_VERSION 4 /* @@ -75,7 +78,7 @@ namespace trace { * * trace = event* EOF * - * event = EVENT_ENTER call_sig call_detail+ + * event = EVENT_ENTER thread_id call_sig call_detail+ * | EVENT_LEAVE call_no call_detail+ * * call_sig = sig_id ( name arg_names )? @@ -93,11 +96,12 @@ namespace trace { * | DOUBLE double * | STRING string * | BLOB string - * | ENUM enum_sig + * | ENUM enum_sig value * | BITMASK bitmask_sig value * | ARRAY length value+ * | STRUCT struct_sig value+ * | OPAQUE int + * | REPR value value * * call_sig = id name arg_name* * | id @@ -140,6 +144,7 @@ enum Type { TYPE_ARRAY, TYPE_STRUCT, TYPE_OPAQUE, + TYPE_REPR, };