Documentation
¶
Overview ¶
Package tracedump contains generated bindings for API file tracedump.api.
Contents: - 1 enum - 13 messages
Index ¶
- Constants
- Variables
- func AllMessages() []api.Message
- type RPCService
- type RPCService_TraceDumpClient
- type RPCService_TraceV2DumpClient
- type TraceCapturePackets
- func (*TraceCapturePackets) GetCrcString() string
- func (*TraceCapturePackets) GetMessageName() string
- func (*TraceCapturePackets) GetMessageType() api.MessageType
- func (m *TraceCapturePackets) Marshal(b []byte) ([]byte, error)
- func (m *TraceCapturePackets) Reset()
- func (m *TraceCapturePackets) Size() (size int)
- func (m *TraceCapturePackets) Unmarshal(b []byte) error
- type TraceCapturePacketsReply
- func (*TraceCapturePacketsReply) GetCrcString() string
- func (*TraceCapturePacketsReply) GetMessageName() string
- func (*TraceCapturePacketsReply) GetMessageType() api.MessageType
- func (m *TraceCapturePacketsReply) Marshal(b []byte) ([]byte, error)
- func (m *TraceCapturePacketsReply) Reset()
- func (m *TraceCapturePacketsReply) Size() (size int)
- func (m *TraceCapturePacketsReply) Unmarshal(b []byte) error
- type TraceClearCache
- func (*TraceClearCache) GetCrcString() string
- func (*TraceClearCache) GetMessageName() string
- func (*TraceClearCache) GetMessageType() api.MessageType
- func (m *TraceClearCache) Marshal(b []byte) ([]byte, error)
- func (m *TraceClearCache) Reset()
- func (m *TraceClearCache) Size() (size int)
- func (m *TraceClearCache) Unmarshal(b []byte) error
- type TraceClearCacheReply
- func (*TraceClearCacheReply) GetCrcString() string
- func (*TraceClearCacheReply) GetMessageName() string
- func (*TraceClearCacheReply) GetMessageType() api.MessageType
- func (m *TraceClearCacheReply) Marshal(b []byte) ([]byte, error)
- func (m *TraceClearCacheReply) Reset()
- func (m *TraceClearCacheReply) Size() (size int)
- func (m *TraceClearCacheReply) Unmarshal(b []byte) error
- type TraceClearCapture
- func (*TraceClearCapture) GetCrcString() string
- func (*TraceClearCapture) GetMessageName() string
- func (*TraceClearCapture) GetMessageType() api.MessageType
- func (m *TraceClearCapture) Marshal(b []byte) ([]byte, error)
- func (m *TraceClearCapture) Reset()
- func (m *TraceClearCapture) Size() (size int)
- func (m *TraceClearCapture) Unmarshal(b []byte) error
- type TraceClearCaptureReply
- func (*TraceClearCaptureReply) GetCrcString() string
- func (*TraceClearCaptureReply) GetMessageName() string
- func (*TraceClearCaptureReply) GetMessageType() api.MessageType
- func (m *TraceClearCaptureReply) Marshal(b []byte) ([]byte, error)
- func (m *TraceClearCaptureReply) Reset()
- func (m *TraceClearCaptureReply) Size() (size int)
- func (m *TraceClearCaptureReply) Unmarshal(b []byte) error
- type TraceDetails
- func (*TraceDetails) GetCrcString() string
- func (*TraceDetails) GetMessageName() string
- func (*TraceDetails) GetMessageType() api.MessageType
- func (m *TraceDetails) Marshal(b []byte) ([]byte, error)
- func (m *TraceDetails) Reset()
- func (m *TraceDetails) Size() (size int)
- func (m *TraceDetails) Unmarshal(b []byte) error
- type TraceDump
- type TraceDumpReply
- func (*TraceDumpReply) GetCrcString() string
- func (*TraceDumpReply) GetMessageName() string
- func (*TraceDumpReply) GetMessageType() api.MessageType
- func (m *TraceDumpReply) Marshal(b []byte) ([]byte, error)
- func (m *TraceDumpReply) Reset()
- func (m *TraceDumpReply) Size() (size int)
- func (m *TraceDumpReply) Unmarshal(b []byte) error
- type TraceFilterFlag
- type TraceSetFilters
- func (*TraceSetFilters) GetCrcString() string
- func (*TraceSetFilters) GetMessageName() string
- func (*TraceSetFilters) GetMessageType() api.MessageType
- func (m *TraceSetFilters) Marshal(b []byte) ([]byte, error)
- func (m *TraceSetFilters) Reset()
- func (m *TraceSetFilters) Size() (size int)
- func (m *TraceSetFilters) Unmarshal(b []byte) error
- type TraceSetFiltersReply
- func (*TraceSetFiltersReply) GetCrcString() string
- func (*TraceSetFiltersReply) GetMessageName() string
- func (*TraceSetFiltersReply) GetMessageType() api.MessageType
- func (m *TraceSetFiltersReply) Marshal(b []byte) ([]byte, error)
- func (m *TraceSetFiltersReply) Reset()
- func (m *TraceSetFiltersReply) Size() (size int)
- func (m *TraceSetFiltersReply) Unmarshal(b []byte) error
- type TraceV2Details
- func (*TraceV2Details) GetCrcString() string
- func (*TraceV2Details) GetMessageName() string
- func (*TraceV2Details) GetMessageType() api.MessageType
- func (m *TraceV2Details) Marshal(b []byte) ([]byte, error)
- func (m *TraceV2Details) Reset()
- func (m *TraceV2Details) Size() (size int)
- func (m *TraceV2Details) Unmarshal(b []byte) error
- type TraceV2Dump
- func (*TraceV2Dump) GetCrcString() string
- func (*TraceV2Dump) GetMessageName() string
- func (*TraceV2Dump) GetMessageType() api.MessageType
- func (m *TraceV2Dump) Marshal(b []byte) ([]byte, error)
- func (m *TraceV2Dump) Reset()
- func (m *TraceV2Dump) Size() (size int)
- func (m *TraceV2Dump) Unmarshal(b []byte) error
Constants ¶
const ( APIFile = "tracedump" APIVersion = "0.2.0" VersionCrc = 0x1ca3fc2f )
Variables ¶
var ( TraceFilterFlag_name = map[uint32]string{ 0: "TRACE_FF_NONE", 1: "TRACE_FF_INCLUDE_NODE", 2: "TRACE_FF_EXCLUDE_NODE", 3: "TRACE_FF_INCLUDE_CLASSIFIER", 4: "TRACE_FF_EXCLUDE_CLASSIFIER", } TraceFilterFlag_value = map[string]uint32{ "TRACE_FF_NONE": 0, "TRACE_FF_INCLUDE_NODE": 1, "TRACE_FF_EXCLUDE_NODE": 2, "TRACE_FF_INCLUDE_CLASSIFIER": 3, "TRACE_FF_EXCLUDE_CLASSIFIER": 4, } )
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type RPCService ¶
type RPCService interface { TraceCapturePackets(ctx context.Context, in *TraceCapturePackets) (*TraceCapturePacketsReply, error) TraceClearCache(ctx context.Context, in *TraceClearCache) (*TraceClearCacheReply, error) TraceClearCapture(ctx context.Context, in *TraceClearCapture) (*TraceClearCaptureReply, error) TraceDump(ctx context.Context, in *TraceDump) (RPCService_TraceDumpClient, error) TraceSetFilters(ctx context.Context, in *TraceSetFilters) (*TraceSetFiltersReply, error) TraceV2Dump(ctx context.Context, in *TraceV2Dump) (RPCService_TraceV2DumpClient, error) }
RPCService defines RPC service tracedump.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
type RPCService_TraceDumpClient ¶
type RPCService_TraceDumpClient interface { Recv() (*TraceDetails, *TraceDumpReply, error) api.Stream }
type RPCService_TraceV2DumpClient ¶ added in v0.8.0
type RPCService_TraceV2DumpClient interface { Recv() (*TraceV2Details, error) api.Stream }
type TraceCapturePackets ¶
type TraceCapturePackets struct { NodeIndex uint32 `binapi:"u32,name=node_index" json:"node_index,omitempty"` MaxPackets uint32 `binapi:"u32,name=max_packets" json:"max_packets,omitempty"` UseFilter bool `binapi:"bool,name=use_filter" json:"use_filter,omitempty"` Verbose bool `binapi:"bool,name=verbose" json:"verbose,omitempty"` PreCaptureClear bool `binapi:"bool,name=pre_capture_clear" json:"pre_capture_clear,omitempty"` }
trace_capture_packets
- node_index - graph input node whose packets are captured
- max_packets - maximum number of packets to capture
- use_filter - if true, apply filters to select/reject packets
- verbose - if true, set verbose packet capture flag
- pre_capture_clear - if true, clear buffer before capture begins
TraceCapturePackets defines message 'trace_capture_packets'.
func (*TraceCapturePackets) GetCrcString ¶
func (*TraceCapturePackets) GetCrcString() string
func (*TraceCapturePackets) GetMessageName ¶
func (*TraceCapturePackets) GetMessageName() string
func (*TraceCapturePackets) GetMessageType ¶
func (*TraceCapturePackets) GetMessageType() api.MessageType
func (*TraceCapturePackets) Marshal ¶
func (m *TraceCapturePackets) Marshal(b []byte) ([]byte, error)
func (*TraceCapturePackets) Reset ¶
func (m *TraceCapturePackets) Reset()
func (*TraceCapturePackets) Size ¶
func (m *TraceCapturePackets) Size() (size int)
func (*TraceCapturePackets) Unmarshal ¶
func (m *TraceCapturePackets) Unmarshal(b []byte) error
type TraceCapturePacketsReply ¶
type TraceCapturePacketsReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
TraceCapturePacketsReply defines message 'trace_capture_packets_reply'.
func (*TraceCapturePacketsReply) GetCrcString ¶
func (*TraceCapturePacketsReply) GetCrcString() string
func (*TraceCapturePacketsReply) GetMessageName ¶
func (*TraceCapturePacketsReply) GetMessageName() string
func (*TraceCapturePacketsReply) GetMessageType ¶
func (*TraceCapturePacketsReply) GetMessageType() api.MessageType
func (*TraceCapturePacketsReply) Marshal ¶
func (m *TraceCapturePacketsReply) Marshal(b []byte) ([]byte, error)
func (*TraceCapturePacketsReply) Reset ¶
func (m *TraceCapturePacketsReply) Reset()
func (*TraceCapturePacketsReply) Size ¶
func (m *TraceCapturePacketsReply) Size() (size int)
func (*TraceCapturePacketsReply) Unmarshal ¶
func (m *TraceCapturePacketsReply) Unmarshal(b []byte) error
type TraceClearCache ¶ added in v0.8.0
type TraceClearCache struct{}
trace_clear_cache TraceClearCache defines message 'trace_clear_cache'.
func (*TraceClearCache) GetCrcString ¶ added in v0.8.0
func (*TraceClearCache) GetCrcString() string
func (*TraceClearCache) GetMessageName ¶ added in v0.8.0
func (*TraceClearCache) GetMessageName() string
func (*TraceClearCache) GetMessageType ¶ added in v0.8.0
func (*TraceClearCache) GetMessageType() api.MessageType
func (*TraceClearCache) Marshal ¶ added in v0.8.0
func (m *TraceClearCache) Marshal(b []byte) ([]byte, error)
func (*TraceClearCache) Reset ¶ added in v0.8.0
func (m *TraceClearCache) Reset()
func (*TraceClearCache) Size ¶ added in v0.8.0
func (m *TraceClearCache) Size() (size int)
func (*TraceClearCache) Unmarshal ¶ added in v0.8.0
func (m *TraceClearCache) Unmarshal(b []byte) error
type TraceClearCacheReply ¶ added in v0.8.0
type TraceClearCacheReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
TraceClearCacheReply defines message 'trace_clear_cache_reply'.
func (*TraceClearCacheReply) GetCrcString ¶ added in v0.8.0
func (*TraceClearCacheReply) GetCrcString() string
func (*TraceClearCacheReply) GetMessageName ¶ added in v0.8.0
func (*TraceClearCacheReply) GetMessageName() string
func (*TraceClearCacheReply) GetMessageType ¶ added in v0.8.0
func (*TraceClearCacheReply) GetMessageType() api.MessageType
func (*TraceClearCacheReply) Marshal ¶ added in v0.8.0
func (m *TraceClearCacheReply) Marshal(b []byte) ([]byte, error)
func (*TraceClearCacheReply) Reset ¶ added in v0.8.0
func (m *TraceClearCacheReply) Reset()
func (*TraceClearCacheReply) Size ¶ added in v0.8.0
func (m *TraceClearCacheReply) Size() (size int)
func (*TraceClearCacheReply) Unmarshal ¶ added in v0.8.0
func (m *TraceClearCacheReply) Unmarshal(b []byte) error
type TraceClearCapture ¶
type TraceClearCapture struct{}
trace_clear_capture TraceClearCapture defines message 'trace_clear_capture'.
func (*TraceClearCapture) GetCrcString ¶
func (*TraceClearCapture) GetCrcString() string
func (*TraceClearCapture) GetMessageName ¶
func (*TraceClearCapture) GetMessageName() string
func (*TraceClearCapture) GetMessageType ¶
func (*TraceClearCapture) GetMessageType() api.MessageType
func (*TraceClearCapture) Reset ¶
func (m *TraceClearCapture) Reset()
func (*TraceClearCapture) Size ¶
func (m *TraceClearCapture) Size() (size int)
func (*TraceClearCapture) Unmarshal ¶
func (m *TraceClearCapture) Unmarshal(b []byte) error
type TraceClearCaptureReply ¶
type TraceClearCaptureReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
TraceClearCaptureReply defines message 'trace_clear_capture_reply'.
func (*TraceClearCaptureReply) GetCrcString ¶
func (*TraceClearCaptureReply) GetCrcString() string
func (*TraceClearCaptureReply) GetMessageName ¶
func (*TraceClearCaptureReply) GetMessageName() string
func (*TraceClearCaptureReply) GetMessageType ¶
func (*TraceClearCaptureReply) GetMessageType() api.MessageType
func (*TraceClearCaptureReply) Marshal ¶
func (m *TraceClearCaptureReply) Marshal(b []byte) ([]byte, error)
func (*TraceClearCaptureReply) Reset ¶
func (m *TraceClearCaptureReply) Reset()
func (*TraceClearCaptureReply) Size ¶
func (m *TraceClearCaptureReply) Size() (size int)
func (*TraceClearCaptureReply) Unmarshal ¶
func (m *TraceClearCaptureReply) Unmarshal(b []byte) error
type TraceDetails ¶
type TraceDetails struct { ThreadID uint32 `binapi:"u32,name=thread_id" json:"thread_id,omitempty"` Position uint32 `binapi:"u32,name=position" json:"position,omitempty"` MoreThisThread uint8 `binapi:"u8,name=more_this_thread" json:"more_this_thread,omitempty"` MoreThreads uint8 `binapi:"u8,name=more_threads" json:"more_threads,omitempty"` Done uint8 `binapi:"u8,name=done" json:"done,omitempty"` PacketNumber uint32 `binapi:"u32,name=packet_number" json:"packet_number,omitempty"` TraceData string `binapi:"string[],name=trace_data" json:"trace_data,omitempty"` }
TraceDetails defines message 'trace_details'.
func (*TraceDetails) GetCrcString ¶
func (*TraceDetails) GetCrcString() string
func (*TraceDetails) GetMessageName ¶
func (*TraceDetails) GetMessageName() string
func (*TraceDetails) GetMessageType ¶
func (*TraceDetails) GetMessageType() api.MessageType
func (*TraceDetails) Reset ¶
func (m *TraceDetails) Reset()
func (*TraceDetails) Size ¶
func (m *TraceDetails) Size() (size int)
func (*TraceDetails) Unmarshal ¶
func (m *TraceDetails) Unmarshal(b []byte) error
type TraceDump ¶
type TraceDump struct { ClearCache uint8 `binapi:"u8,name=clear_cache" json:"clear_cache,omitempty"` ThreadID uint32 `binapi:"u32,name=thread_id" json:"thread_id,omitempty"` Position uint32 `binapi:"u32,name=position" json:"position,omitempty"` MaxRecords uint32 `binapi:"u32,name=max_records" json:"max_records,omitempty"` }
TraceDump defines message 'trace_dump'.
func (*TraceDump) GetCrcString ¶
func (*TraceDump) GetMessageName ¶
func (*TraceDump) GetMessageType ¶
func (*TraceDump) GetMessageType() api.MessageType
type TraceDumpReply ¶
type TraceDumpReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` LastThreadID uint32 `binapi:"u32,name=last_thread_id" json:"last_thread_id,omitempty"` LastPosition uint32 `binapi:"u32,name=last_position" json:"last_position,omitempty"` MoreThisThread uint8 `binapi:"u8,name=more_this_thread" json:"more_this_thread,omitempty"` MoreThreads uint8 `binapi:"u8,name=more_threads" json:"more_threads,omitempty"` FlushOnly uint8 `binapi:"u8,name=flush_only" json:"flush_only,omitempty"` Done uint8 `binapi:"u8,name=done" json:"done,omitempty"` }
TraceDumpReply defines message 'trace_dump_reply'.
func (*TraceDumpReply) GetCrcString ¶
func (*TraceDumpReply) GetCrcString() string
func (*TraceDumpReply) GetMessageName ¶
func (*TraceDumpReply) GetMessageName() string
func (*TraceDumpReply) GetMessageType ¶
func (*TraceDumpReply) GetMessageType() api.MessageType
func (*TraceDumpReply) Reset ¶
func (m *TraceDumpReply) Reset()
func (*TraceDumpReply) Size ¶
func (m *TraceDumpReply) Size() (size int)
func (*TraceDumpReply) Unmarshal ¶
func (m *TraceDumpReply) Unmarshal(b []byte) error
type TraceFilterFlag ¶
type TraceFilterFlag uint32
TraceFilterFlag defines enum 'trace_filter_flag'.
const ( TRACE_FF_NONE TraceFilterFlag = 0 TRACE_FF_INCLUDE_NODE TraceFilterFlag = 1 TRACE_FF_EXCLUDE_NODE TraceFilterFlag = 2 TRACE_FF_INCLUDE_CLASSIFIER TraceFilterFlag = 3 TRACE_FF_EXCLUDE_CLASSIFIER TraceFilterFlag = 4 )
func (TraceFilterFlag) String ¶
func (x TraceFilterFlag) String() string
type TraceSetFilters ¶
type TraceSetFilters struct { Flag TraceFilterFlag `binapi:"trace_filter_flag,name=flag" json:"flag,omitempty"` Count uint32 `binapi:"u32,name=count" json:"count,omitempty"` NodeIndex uint32 `binapi:"u32,name=node_index,default=4294967295" json:"node_index,omitempty"` ClassifierTableIndex uint32 `binapi:"u32,name=classifier_table_index,default=4294967295" json:"classifier_table_index,omitempty"` }
trace_set_filters
- flag - One of the trace_filter_flag values
- node_index = The node-index to include/exclude
- classifier_table_index = The include/exclude classifier table
- count = The number of packets to include/exclude
TraceSetFilters defines message 'trace_set_filters'.
func (*TraceSetFilters) GetCrcString ¶
func (*TraceSetFilters) GetCrcString() string
func (*TraceSetFilters) GetMessageName ¶
func (*TraceSetFilters) GetMessageName() string
func (*TraceSetFilters) GetMessageType ¶
func (*TraceSetFilters) GetMessageType() api.MessageType
func (*TraceSetFilters) Reset ¶
func (m *TraceSetFilters) Reset()
func (*TraceSetFilters) Size ¶
func (m *TraceSetFilters) Size() (size int)
func (*TraceSetFilters) Unmarshal ¶
func (m *TraceSetFilters) Unmarshal(b []byte) error
type TraceSetFiltersReply ¶
type TraceSetFiltersReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
TraceSetFiltersReply defines message 'trace_set_filters_reply'.
func (*TraceSetFiltersReply) GetCrcString ¶
func (*TraceSetFiltersReply) GetCrcString() string
func (*TraceSetFiltersReply) GetMessageName ¶
func (*TraceSetFiltersReply) GetMessageName() string
func (*TraceSetFiltersReply) GetMessageType ¶
func (*TraceSetFiltersReply) GetMessageType() api.MessageType
func (*TraceSetFiltersReply) Marshal ¶
func (m *TraceSetFiltersReply) Marshal(b []byte) ([]byte, error)
func (*TraceSetFiltersReply) Reset ¶
func (m *TraceSetFiltersReply) Reset()
func (*TraceSetFiltersReply) Size ¶
func (m *TraceSetFiltersReply) Size() (size int)
func (*TraceSetFiltersReply) Unmarshal ¶
func (m *TraceSetFiltersReply) Unmarshal(b []byte) error
type TraceV2Details ¶ added in v0.8.0
type TraceV2Details struct { ThreadID uint32 `binapi:"u32,name=thread_id" json:"thread_id,omitempty"` Position uint32 `binapi:"u32,name=position" json:"position,omitempty"` More bool `binapi:"bool,name=more" json:"more,omitempty"` TraceData string `binapi:"string[],name=trace_data" json:"trace_data,omitempty"` }
trace_v2_details
- thread_id - thread index from which the packet come from
- position - position of the packet in its thread cache
- more - true if there is still more packets to dump for this thread
- trace_data - string packet data
TraceV2Details defines message 'trace_v2_details'.
func (*TraceV2Details) GetCrcString ¶ added in v0.8.0
func (*TraceV2Details) GetCrcString() string
func (*TraceV2Details) GetMessageName ¶ added in v0.8.0
func (*TraceV2Details) GetMessageName() string
func (*TraceV2Details) GetMessageType ¶ added in v0.8.0
func (*TraceV2Details) GetMessageType() api.MessageType
func (*TraceV2Details) Marshal ¶ added in v0.8.0
func (m *TraceV2Details) Marshal(b []byte) ([]byte, error)
func (*TraceV2Details) Reset ¶ added in v0.8.0
func (m *TraceV2Details) Reset()
func (*TraceV2Details) Size ¶ added in v0.8.0
func (m *TraceV2Details) Size() (size int)
func (*TraceV2Details) Unmarshal ¶ added in v0.8.0
func (m *TraceV2Details) Unmarshal(b []byte) error
type TraceV2Dump ¶ added in v0.8.0
type TraceV2Dump struct { ThreadID uint32 `binapi:"u32,name=thread_id,default=4294967295" json:"thread_id,omitempty"` Position uint32 `binapi:"u32,name=position" json:"position,omitempty"` Max uint32 `binapi:"u32,name=max,default=50" json:"max,omitempty"` ClearCache bool `binapi:"bool,name=clear_cache" json:"clear_cache,omitempty"` }
trace_v2_dump
- thread_id - specific thread to dump from, ~0 to dump from all
- position - position of the first packet to dump in the per thread cache, ~0 to only clear the cache
- max - maximum of packets to dump from each thread
- clear_cache - dispose of any cached data before we begin
TraceV2Dump defines message 'trace_v2_dump'.
func (*TraceV2Dump) GetCrcString ¶ added in v0.8.0
func (*TraceV2Dump) GetCrcString() string
func (*TraceV2Dump) GetMessageName ¶ added in v0.8.0
func (*TraceV2Dump) GetMessageName() string
func (*TraceV2Dump) GetMessageType ¶ added in v0.8.0
func (*TraceV2Dump) GetMessageType() api.MessageType
func (*TraceV2Dump) Marshal ¶ added in v0.8.0
func (m *TraceV2Dump) Marshal(b []byte) ([]byte, error)
func (*TraceV2Dump) Reset ¶ added in v0.8.0
func (m *TraceV2Dump) Reset()
func (*TraceV2Dump) Size ¶ added in v0.8.0
func (m *TraceV2Dump) Size() (size int)
func (*TraceV2Dump) Unmarshal ¶ added in v0.8.0
func (m *TraceV2Dump) Unmarshal(b []byte) error