Beispiel #1
0
 public CtfClock(CtfPropertyBag bag)
 {
     Name        = bag.GetString("name");
     UUID        = new Guid(bag.GetString("uuid"));
     Description = bag.GetString("description");
     Frequency   = bag.GetUlong("freq");
     Offset      = bag.GetUlong("offset");
 }
Beispiel #2
0
 public CtfEnvironment(CtfPropertyBag bag)
 {
     HostName    = bag.GetString("hostname");
     Domain      = bag.GetString("domain");
     TracerName  = bag.GetString("tracer");
     TracerMajor = bag.GetIntOrNull("tracer_major") ?? 0;
     TracerMinor = bag.GetIntOrNull("tracer_minor") ?? 0;
 }
Beispiel #3
0
 public CtfTrace(CtfPropertyBag bag)
 {
     Major     = bag.GetShort("major");
     Minor     = bag.GetShort("minor");
     UUID      = new Guid(bag.GetString("uuid"));
     ByteOrder = bag.GetString("byte_order");
     Header    = bag.GetStruct("packet.header");
 }
 public CtfInteger(CtfPropertyBag bag)
     : base(CtfTypes.Integer)
 {
     Size     = bag.GetShort("size");
     _align   = bag.GetShortOrNull("align") ?? 8;
     Signed   = bag.GetBoolean("signed");
     Encoding = bag.GetString("encoding") ?? "none";
     Base     = bag.GetShortOrNull("base") ?? 10;
     Map      = bag.GetString("map");
 }
 public CtfFloat(CtfPropertyBag bag)
     : base(CtfTypes.Float)
 {
     Exp       = bag.GetInt("exp_dig");
     Mant      = bag.GetInt("mant_dig");
     ByteOrder = bag.GetString("byte_order");
     _align    = bag.GetInt("align");
 }
Beispiel #6
0
        public CtfEvent(CtfPropertyBag bag)
        {
            ID       = bag.GetInt("id");
            Name     = bag.GetString("name");
            Stream   = bag.GetInt("stream_id");
            LogLevel = bag.GetUInt("loglevel");

            Definition = bag.GetStruct("fields");
        }