tracedump

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package tracedump contains generated bindings for API file tracedump.api.

Contents: - 1 enum - 17 messages

Index

Constants

View Source
const (
	APIFile    = "tracedump"
	APIVersion = "0.2.0"
	VersionCrc = 0x56abf80a
)

Variables

View Source
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

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type RPCService

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_TraceFilterFunctionDumpClient

type RPCService_TraceFilterFunctionDumpClient interface {
	Recv() (*TraceFilterFunctionDetails, error)
	api.Stream
}

type RPCService_TraceV2DumpClient

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

type TraceClearCache struct{}

trace_clear_cache TraceClearCache defines message 'trace_clear_cache'.

func (*TraceClearCache) GetCrcString

func (*TraceClearCache) GetCrcString() string

func (*TraceClearCache) GetMessageName

func (*TraceClearCache) GetMessageName() string

func (*TraceClearCache) GetMessageType

func (*TraceClearCache) GetMessageType() api.MessageType

func (*TraceClearCache) Marshal

func (m *TraceClearCache) Marshal(b []byte) ([]byte, error)

func (*TraceClearCache) Reset

func (m *TraceClearCache) Reset()

func (*TraceClearCache) Size

func (m *TraceClearCache) Size() (size int)

func (*TraceClearCache) Unmarshal

func (m *TraceClearCache) Unmarshal(b []byte) error

type TraceClearCacheReply

type TraceClearCacheReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

TraceClearCacheReply defines message 'trace_clear_cache_reply'.

func (*TraceClearCacheReply) GetCrcString

func (*TraceClearCacheReply) GetCrcString() string

func (*TraceClearCacheReply) GetMessageName

func (*TraceClearCacheReply) GetMessageName() string

func (*TraceClearCacheReply) GetMessageType

func (*TraceClearCacheReply) GetMessageType() api.MessageType

func (*TraceClearCacheReply) Marshal

func (m *TraceClearCacheReply) Marshal(b []byte) ([]byte, error)

func (*TraceClearCacheReply) Reset

func (m *TraceClearCacheReply) Reset()

func (*TraceClearCacheReply) Size

func (m *TraceClearCacheReply) Size() (size int)

func (*TraceClearCacheReply) Unmarshal

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) Marshal

func (m *TraceClearCapture) Marshal(b []byte) ([]byte, error)

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) Marshal

func (m *TraceDetails) Marshal(b []byte) ([]byte, error)

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) GetCrcString() string

func (*TraceDump) GetMessageName

func (*TraceDump) GetMessageName() string

func (*TraceDump) GetMessageType

func (*TraceDump) GetMessageType() api.MessageType

func (*TraceDump) Marshal

func (m *TraceDump) Marshal(b []byte) ([]byte, error)

func (*TraceDump) Reset

func (m *TraceDump) Reset()

func (*TraceDump) Size

func (m *TraceDump) Size() (size int)

func (*TraceDump) Unmarshal

func (m *TraceDump) Unmarshal(b []byte) error

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) Marshal

func (m *TraceDumpReply) Marshal(b []byte) ([]byte, error)

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 TraceFilterFunctionDetails

type TraceFilterFunctionDetails struct {
	Selected bool   `binapi:"bool,name=selected" json:"selected,omitempty"`
	Name     string `binapi:"string[],name=name" json:"name,omitempty"`
}

TraceFilterFunctionDetails defines message 'trace_filter_function_details'.

func (*TraceFilterFunctionDetails) GetCrcString

func (*TraceFilterFunctionDetails) GetCrcString() string

func (*TraceFilterFunctionDetails) GetMessageName

func (*TraceFilterFunctionDetails) GetMessageName() string

func (*TraceFilterFunctionDetails) GetMessageType

func (*TraceFilterFunctionDetails) GetMessageType() api.MessageType

func (*TraceFilterFunctionDetails) Marshal

func (m *TraceFilterFunctionDetails) Marshal(b []byte) ([]byte, error)

func (*TraceFilterFunctionDetails) Reset

func (m *TraceFilterFunctionDetails) Reset()

func (*TraceFilterFunctionDetails) Size

func (m *TraceFilterFunctionDetails) Size() (size int)

func (*TraceFilterFunctionDetails) Unmarshal

func (m *TraceFilterFunctionDetails) Unmarshal(b []byte) error

type TraceFilterFunctionDump

type TraceFilterFunctionDump struct{}

TraceFilterFunctionDump defines message 'trace_filter_function_dump'.

func (*TraceFilterFunctionDump) GetCrcString

func (*TraceFilterFunctionDump) GetCrcString() string

func (*TraceFilterFunctionDump) GetMessageName

func (*TraceFilterFunctionDump) GetMessageName() string

func (*TraceFilterFunctionDump) GetMessageType

func (*TraceFilterFunctionDump) GetMessageType() api.MessageType

func (*TraceFilterFunctionDump) Marshal

func (m *TraceFilterFunctionDump) Marshal(b []byte) ([]byte, error)

func (*TraceFilterFunctionDump) Reset

func (m *TraceFilterFunctionDump) Reset()

func (*TraceFilterFunctionDump) Size

func (m *TraceFilterFunctionDump) Size() (size int)

func (*TraceFilterFunctionDump) Unmarshal

func (m *TraceFilterFunctionDump) Unmarshal(b []byte) error

type TraceSetFilterFunction

type TraceSetFilterFunction struct {
	FilterFunctionName string `binapi:"string[],name=filter_function_name" json:"filter_function_name,omitempty"`
}

TraceSetFilterFunction defines message 'trace_set_filter_function'.

func (*TraceSetFilterFunction) GetCrcString

func (*TraceSetFilterFunction) GetCrcString() string

func (*TraceSetFilterFunction) GetMessageName

func (*TraceSetFilterFunction) GetMessageName() string

func (*TraceSetFilterFunction) GetMessageType

func (*TraceSetFilterFunction) GetMessageType() api.MessageType

func (*TraceSetFilterFunction) Marshal

func (m *TraceSetFilterFunction) Marshal(b []byte) ([]byte, error)

func (*TraceSetFilterFunction) Reset

func (m *TraceSetFilterFunction) Reset()

func (*TraceSetFilterFunction) Size

func (m *TraceSetFilterFunction) Size() (size int)

func (*TraceSetFilterFunction) Unmarshal

func (m *TraceSetFilterFunction) Unmarshal(b []byte) error

type TraceSetFilterFunctionReply

type TraceSetFilterFunctionReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

TraceSetFilterFunctionReply defines message 'trace_set_filter_function_reply'.

func (*TraceSetFilterFunctionReply) GetCrcString

func (*TraceSetFilterFunctionReply) GetCrcString() string

func (*TraceSetFilterFunctionReply) GetMessageName

func (*TraceSetFilterFunctionReply) GetMessageName() string

func (*TraceSetFilterFunctionReply) GetMessageType

func (*TraceSetFilterFunctionReply) GetMessageType() api.MessageType

func (*TraceSetFilterFunctionReply) Marshal

func (m *TraceSetFilterFunctionReply) Marshal(b []byte) ([]byte, error)

func (*TraceSetFilterFunctionReply) Reset

func (m *TraceSetFilterFunctionReply) Reset()

func (*TraceSetFilterFunctionReply) Size

func (m *TraceSetFilterFunctionReply) Size() (size int)

func (*TraceSetFilterFunctionReply) Unmarshal

func (m *TraceSetFilterFunctionReply) Unmarshal(b []byte) error

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) Marshal

func (m *TraceSetFilters) Marshal(b []byte) ([]byte, error)

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

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

func (*TraceV2Details) GetCrcString() string

func (*TraceV2Details) GetMessageName

func (*TraceV2Details) GetMessageName() string

func (*TraceV2Details) GetMessageType

func (*TraceV2Details) GetMessageType() api.MessageType

func (*TraceV2Details) Marshal

func (m *TraceV2Details) Marshal(b []byte) ([]byte, error)

func (*TraceV2Details) Reset

func (m *TraceV2Details) Reset()

func (*TraceV2Details) Size

func (m *TraceV2Details) Size() (size int)

func (*TraceV2Details) Unmarshal

func (m *TraceV2Details) Unmarshal(b []byte) error

type TraceV2Dump

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

func (*TraceV2Dump) GetCrcString() string

func (*TraceV2Dump) GetMessageName

func (*TraceV2Dump) GetMessageName() string

func (*TraceV2Dump) GetMessageType

func (*TraceV2Dump) GetMessageType() api.MessageType

func (*TraceV2Dump) Marshal

func (m *TraceV2Dump) Marshal(b []byte) ([]byte, error)

func (*TraceV2Dump) Reset

func (m *TraceV2Dump) Reset()

func (*TraceV2Dump) Size

func (m *TraceV2Dump) Size() (size int)

func (*TraceV2Dump) Unmarshal

func (m *TraceV2Dump) Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL