trace_event() not return complete packet
|Reported by:||yww4||Owned by:||perry|
In my application, I passed an empty packet which is created by calling trace_create_packet() to the trace_event() function, for reading the packet and catching the trace events. But there is error output after I use packet in other libtrace function says "Don't understand link layer type -1 in trace_get_payload_from_link()". After I run the application over the gdb, found out that packet returned by trace_event() is not a complete packet.