tracer

package
v0.0.0-...-98208a5 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: Apache-2.0 Imports: 18 Imported by: 4

Documentation

Overview

Package tracer is a generated protocol buffer package.

It is generated from these files:

event-structs-generated.proto

It has these top-level messages:

ProtobufCommonEvent
ProtobufConnectV4Event
ProtobufConnectV6Event
ProtobufChmodEvent
ProtobufChownEvent
ProtobufCloseEvent
ProtobufFchmodEvent
ProtobufFchmodatEvent
ProtobufFchownEvent
ProtobufFchownatEvent
ProtobufMkdirEvent
ProtobufMkdiratEvent
ProtobufOpenEvent
ProtobufReadEvent
ProtobufWriteEvent
Empty
Metric

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMetricCollectorServer

func RegisterMetricCollectorServer(s *grpc.Server, srv MetricCollectorServer)

Types

type BpfAttr

type BpfAttr struct {
	Data [48]byte
}

type CapUserData

type CapUserData struct {
	Effective   uint32
	Permitted   uint32
	Inheritable uint32
}

type CapUserHeader

type CapUserHeader struct {
	Version uint32
	Pid     int64
}

type ChmodEvent

type ChmodEvent struct {
	Filename [256]byte
	Mode     uint64
}

func (ChmodEvent) GetArgN

func (e ChmodEvent) GetArgN(n int, ret int64) (string, error)

func (ChmodEvent) Metric

func (e ChmodEvent) Metric() *Metric

func (ChmodEvent) String

func (e ChmodEvent) String(ret int64) string

type ChownEvent

type ChownEvent struct {
	Filename [256]byte
	User     uint32
	Group    uint32
}

func (ChownEvent) GetArgN

func (e ChownEvent) GetArgN(n int, ret int64) (string, error)

func (ChownEvent) Metric

func (e ChownEvent) Metric() *Metric

func (ChownEvent) String

func (e ChownEvent) String(ret int64) string

type CloseEvent

type CloseEvent struct {
	Fd     uint64
	FdPath string
}

func (CloseEvent) GetArgN

func (e CloseEvent) GetArgN(n int, ret int64) (string, error)

func (CloseEvent) Metric

func (e CloseEvent) Metric() *Metric

func (CloseEvent) String

func (e CloseEvent) String(ret int64) string

type CommonEvent

type CommonEvent struct {
	Timestamp uint64
	ProgramID uint64
	Pid       int64
	Ret       int64
	Name      string
	Hash      uint64
	Flags     uint64
}

this has to match the struct in cStructTemplate defined by metagenerator.go

func CommonEventFromBuffer

func CommonEventFromBuffer(buf *bytes.Buffer) (*CommonEvent, error)

func (*CommonEvent) Proto

func (e *CommonEvent) Proto() *ProtobufCommonEvent

type ConnectV4Event

type ConnectV4Event struct {
	Saddr uint32
	Daddr uint32
	Sport uint16
	Dport uint16
	Netns uint32
}

func (ConnectV4Event) GetArgN

func (e ConnectV4Event) GetArgN(n int, ret int64) (string, error)

func (ConnectV4Event) Metric

func (e ConnectV4Event) Metric() *Metric

func (ConnectV4Event) String

func (e ConnectV4Event) String(ret int64) string

type ConnectV6Event

type ConnectV6Event struct {
	Saddr [16]byte
	Daddr [16]byte
	Sport uint16
	Dport uint16
	Netns uint32
}

func (ConnectV6Event) GetArgN

func (e ConnectV6Event) GetArgN(n int, ret int64) (string, error)

func (ConnectV6Event) Metric

func (e ConnectV6Event) Metric() *Metric

func (ConnectV6Event) String

func (e ConnectV6Event) String(ret int64) string

type Context

type Context struct {
	Fds *FdMap
}

type DefaultEvent

type DefaultEvent struct{}

func (DefaultEvent) GetArgN

func (e DefaultEvent) GetArgN(n int, ret int64) (string, error)

func (DefaultEvent) Metric

func (w DefaultEvent) Metric() *Metric

func (DefaultEvent) String

func (w DefaultEvent) String(ret int64) string

type Empty

type Empty struct {
}

func (*Empty) Descriptor

func (*Empty) Descriptor() ([]byte, []int)

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

type Event

type Event interface {
	String(ret int64) string
	GetArgN(n int, ret int64) (string, error)
	Metric() *Metric
}

func GetStruct

func GetStruct(ce *CommonEvent, ctx Context, buf *bytes.Buffer) (Event, error)

type EventData

type EventData struct {
	Common CommonEvent
	Event  Event
}

type FchmodEvent

type FchmodEvent struct {
	Fd     uint64
	FdPath string
	Mode   uint64
}

func (FchmodEvent) GetArgN

func (e FchmodEvent) GetArgN(n int, ret int64) (string, error)

func (FchmodEvent) Metric

func (e FchmodEvent) Metric() *Metric

func (FchmodEvent) String

func (e FchmodEvent) String(ret int64) string

type FchmodatEvent

type FchmodatEvent struct {
	Dfd      int64
	DfdPath  string
	Filename [256]byte
	Mode     uint64
}

func (FchmodatEvent) GetArgN

func (e FchmodatEvent) GetArgN(n int, ret int64) (string, error)

func (FchmodatEvent) Metric

func (e FchmodatEvent) Metric() *Metric

func (FchmodatEvent) String

func (e FchmodatEvent) String(ret int64) string

type FchownEvent

type FchownEvent struct {
	Fd     uint64
	FdPath string
	User   uint32
	Group  uint32
}

func (FchownEvent) GetArgN

func (e FchownEvent) GetArgN(n int, ret int64) (string, error)

func (FchownEvent) Metric

func (e FchownEvent) Metric() *Metric

func (FchownEvent) String

func (e FchownEvent) String(ret int64) string

type FchownatEvent

type FchownatEvent struct {
	Dfd      int64
	DfdPath  string
	Filename [256]byte
	User     uint32
	Group    uint32
	Flag     int64
}

func (FchownatEvent) GetArgN

func (e FchownatEvent) GetArgN(n int, ret int64) (string, error)

func (FchownatEvent) Metric

func (e FchownatEvent) Metric() *Metric

func (FchownatEvent) String

func (e FchownatEvent) String(ret int64) string

type FdInfo

type FdInfo struct {
	Path  string
	Ino   uint64
	Major uint64
	Minor uint64
}

type FdMap

type FdMap struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Pid -> Fd -> FdInfo

func NewFdMap

func NewFdMap() *FdMap

func (*FdMap) Clear

func (f *FdMap) Clear()

func (*FdMap) Delete

func (f *FdMap) Delete(pid, fd uint32)

func (*FdMap) DeletePid

func (f *FdMap) DeletePid(pid uint32)

func (*FdMap) Get

func (f *FdMap) Get(pid, fd uint32) (*FdInfo, bool)

func (*FdMap) Put

func (f *FdMap) Put(pid, fd uint32, info FdInfo)

type FileEvent

type FileEvent struct {
	Fd    uint64
	Ino   uint64
	Major uint64
	Minor uint64
}

func (FileEvent) GetArgN

func (e FileEvent) GetArgN(n int, ret int64) (string, error)

func (FileEvent) Metric

func (e FileEvent) Metric() *Metric

FileEvent is not meant to be seen by the users

func (FileEvent) String

func (e FileEvent) String(ret int64) string

type FileHandle

type FileHandle struct {
	HandleBytes uint32
	HandleType  int64
	FHandle     []uint8
}

type GetCPUCache

type GetCPUCache struct {
	Blob [16]uint64
}

type IoCb

type IoCb struct {
	AioData      uint64
	Padding      uint32
	AioLioOpcode uint16
	AioReqPrio   int16
	AioFilDes    uint32
	AioBuf       uint64
	AioNbytes    uint64
	AioOffset    int64
	AioReserved2 uint64
	AioFlags     uint32
	AioResfd     uint32
}

type IoEvent

type IoEvent struct {
	Data uint64
	Obj  uint64
	Res  int64
	Res2 int64
}

type Itimerspec

type Itimerspec struct {
	ItInterval syscall.Timespec
	ItValue    syscall.Timespec
}

type KexecSegment

type KexecSegment struct {
	Buf   unsafe.Pointer
	Bufsz int64
	Mem   unsafe.Pointer
	Memsz int64
}

type Metric

type Metric struct {
	Count          uint64                  `protobuf:"varint,1,opt,name=Count" json:"Count,omitempty"`
	CommonEvent    *ProtobufCommonEvent    `protobuf:"bytes,2,opt,name=CommonEvent" json:"CommonEvent,omitempty"`
	ConnectV4Event *ProtobufConnectV4Event `protobuf:"bytes,3,opt,name=ConnectV4Event" json:"ConnectV4Event,omitempty"`
	ConnectV6Event *ProtobufConnectV6Event `protobuf:"bytes,4,opt,name=ConnectV6Event" json:"ConnectV6Event,omitempty"`
	ChmodEvent     *ProtobufChmodEvent     `protobuf:"bytes,5,opt,name=ChmodEvent" json:"ChmodEvent,omitempty"`
	ChownEvent     *ProtobufChownEvent     `protobuf:"bytes,6,opt,name=ChownEvent" json:"ChownEvent,omitempty"`
	CloseEvent     *ProtobufCloseEvent     `protobuf:"bytes,7,opt,name=CloseEvent" json:"CloseEvent,omitempty"`
	FchmodEvent    *ProtobufFchmodEvent    `protobuf:"bytes,8,opt,name=FchmodEvent" json:"FchmodEvent,omitempty"`
	FchmodatEvent  *ProtobufFchmodatEvent  `protobuf:"bytes,9,opt,name=FchmodatEvent" json:"FchmodatEvent,omitempty"`
	FchownEvent    *ProtobufFchownEvent    `protobuf:"bytes,10,opt,name=FchownEvent" json:"FchownEvent,omitempty"`
	FchownatEvent  *ProtobufFchownatEvent  `protobuf:"bytes,11,opt,name=FchownatEvent" json:"FchownatEvent,omitempty"`
	MkdirEvent     *ProtobufMkdirEvent     `protobuf:"bytes,12,opt,name=MkdirEvent" json:"MkdirEvent,omitempty"`
	MkdiratEvent   *ProtobufMkdiratEvent   `protobuf:"bytes,13,opt,name=MkdiratEvent" json:"MkdiratEvent,omitempty"`
	OpenEvent      *ProtobufOpenEvent      `protobuf:"bytes,14,opt,name=OpenEvent" json:"OpenEvent,omitempty"`
	ReadEvent      *ProtobufReadEvent      `protobuf:"bytes,15,opt,name=ReadEvent" json:"ReadEvent,omitempty"`
	WriteEvent     *ProtobufWriteEvent     `protobuf:"bytes,16,opt,name=WriteEvent" json:"WriteEvent,omitempty"`
}

func (*Metric) Descriptor

func (*Metric) Descriptor() ([]byte, []int)

func (*Metric) GetChmodEvent

func (m *Metric) GetChmodEvent() *ProtobufChmodEvent

func (*Metric) GetChownEvent

func (m *Metric) GetChownEvent() *ProtobufChownEvent

func (*Metric) GetCloseEvent

func (m *Metric) GetCloseEvent() *ProtobufCloseEvent

func (*Metric) GetCommonEvent

func (m *Metric) GetCommonEvent() *ProtobufCommonEvent

func (*Metric) GetConnectV4Event

func (m *Metric) GetConnectV4Event() *ProtobufConnectV4Event

func (*Metric) GetConnectV6Event

func (m *Metric) GetConnectV6Event() *ProtobufConnectV6Event

func (*Metric) GetCount

func (m *Metric) GetCount() uint64

func (*Metric) GetFchmodEvent

func (m *Metric) GetFchmodEvent() *ProtobufFchmodEvent

func (*Metric) GetFchmodatEvent

func (m *Metric) GetFchmodatEvent() *ProtobufFchmodatEvent

func (*Metric) GetFchownEvent

func (m *Metric) GetFchownEvent() *ProtobufFchownEvent

func (*Metric) GetFchownatEvent

func (m *Metric) GetFchownatEvent() *ProtobufFchownatEvent

func (*Metric) GetMkdirEvent

func (m *Metric) GetMkdirEvent() *ProtobufMkdirEvent

func (*Metric) GetMkdiratEvent

func (m *Metric) GetMkdiratEvent() *ProtobufMkdiratEvent

func (*Metric) GetOpenEvent

func (m *Metric) GetOpenEvent() *ProtobufOpenEvent

func (*Metric) GetReadEvent

func (m *Metric) GetReadEvent() *ProtobufReadEvent

func (*Metric) GetWriteEvent

func (m *Metric) GetWriteEvent() *ProtobufWriteEvent

func (*Metric) ProtoMessage

func (*Metric) ProtoMessage()

func (*Metric) Reset

func (m *Metric) Reset()

func (*Metric) String

func (m *Metric) String() string

type MetricCollectorClient

type MetricCollectorClient interface {
	Process(ctx context.Context, opts ...grpc.CallOption) (MetricCollector_ProcessClient, error)
}

func NewMetricCollectorClient

func NewMetricCollectorClient(cc *grpc.ClientConn) MetricCollectorClient

type MetricCollectorServer

type MetricCollectorServer interface {
	Process(MetricCollector_ProcessServer) error
}

type MetricCollector_ProcessClient

type MetricCollector_ProcessClient interface {
	Send(*Metric) error
	CloseAndRecv() (*Empty, error)
	grpc.ClientStream
}

type MetricCollector_ProcessServer

type MetricCollector_ProcessServer interface {
	SendAndClose(*Empty) error
	Recv() (*Metric, error)
	grpc.ServerStream
}

type MkdirEvent

type MkdirEvent struct {
	Pathname [256]byte
	Mode     uint64
}

func (MkdirEvent) GetArgN

func (e MkdirEvent) GetArgN(n int, ret int64) (string, error)

func (MkdirEvent) Metric

func (e MkdirEvent) Metric() *Metric

func (MkdirEvent) String

func (e MkdirEvent) String(ret int64) string

type MkdiratEvent

type MkdiratEvent struct {
	Dfd      int64
	DfdPath  string
	Pathname [256]byte
	Mode     uint64
}

func (MkdiratEvent) GetArgN

func (e MkdiratEvent) GetArgN(n int, ret int64) (string, error)

func (MkdiratEvent) Metric

func (e MkdiratEvent) Metric() *Metric

func (MkdiratEvent) String

func (e MkdiratEvent) String(ret int64) string

type MqAttr

type MqAttr struct {
	MqFlags   int64
	MqMaxmsg  int64
	MqMsgsize int64
	MqCurmsgs int64
	Reserved  [4]int64
}

type Msgbuf

type Msgbuf struct {
	Mtype int64
	Mtext [1]byte
}

type OpenEvent

type OpenEvent struct {
	Filename [256]byte
	Flags    int64
	Mode     uint64
}

func (OpenEvent) GetArgN

func (e OpenEvent) GetArgN(n int, ret int64) (string, error)

func (OpenEvent) Metric

func (e OpenEvent) Metric() *Metric

func (OpenEvent) String

func (e OpenEvent) String(ret int64) string

type Pollfd

type Pollfd struct {
	Fd      int64
	Events  int16
	Revents int16
}

type ProtobufChmodEvent

type ProtobufChmodEvent struct {
	Filename []byte `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
	Mode     uint64 `protobuf:"varint,2,opt,name=mode" json:"mode,omitempty"`
}

func (*ProtobufChmodEvent) Descriptor

func (*ProtobufChmodEvent) Descriptor() ([]byte, []int)

func (*ProtobufChmodEvent) GetFilename

func (m *ProtobufChmodEvent) GetFilename() []byte

func (*ProtobufChmodEvent) GetMode

func (m *ProtobufChmodEvent) GetMode() uint64

func (*ProtobufChmodEvent) ProtoMessage

func (*ProtobufChmodEvent) ProtoMessage()

func (*ProtobufChmodEvent) Reset

func (m *ProtobufChmodEvent) Reset()

func (*ProtobufChmodEvent) String

func (m *ProtobufChmodEvent) String() string

type ProtobufChownEvent

type ProtobufChownEvent struct {
	Filename []byte `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
	User     uint32 `protobuf:"varint,2,opt,name=user" json:"user,omitempty"`
	Group    uint32 `protobuf:"varint,3,opt,name=group" json:"group,omitempty"`
}

func (*ProtobufChownEvent) Descriptor

func (*ProtobufChownEvent) Descriptor() ([]byte, []int)

func (*ProtobufChownEvent) GetFilename

func (m *ProtobufChownEvent) GetFilename() []byte

func (*ProtobufChownEvent) GetGroup

func (m *ProtobufChownEvent) GetGroup() uint32

func (*ProtobufChownEvent) GetUser

func (m *ProtobufChownEvent) GetUser() uint32

func (*ProtobufChownEvent) ProtoMessage

func (*ProtobufChownEvent) ProtoMessage()

func (*ProtobufChownEvent) Reset

func (m *ProtobufChownEvent) Reset()

func (*ProtobufChownEvent) String

func (m *ProtobufChownEvent) String() string

type ProtobufCloseEvent

type ProtobufCloseEvent struct {
	Fd uint64 `protobuf:"varint,1,opt,name=fd" json:"fd,omitempty"`
}

func (*ProtobufCloseEvent) Descriptor

func (*ProtobufCloseEvent) Descriptor() ([]byte, []int)

func (*ProtobufCloseEvent) GetFd

func (m *ProtobufCloseEvent) GetFd() uint64

func (*ProtobufCloseEvent) ProtoMessage

func (*ProtobufCloseEvent) ProtoMessage()

func (*ProtobufCloseEvent) Reset

func (m *ProtobufCloseEvent) Reset()

func (*ProtobufCloseEvent) String

func (m *ProtobufCloseEvent) String() string

type ProtobufCommonEvent

type ProtobufCommonEvent struct {
	Timestamp uint64 `protobuf:"varint,1,opt,name=Timestamp" json:"Timestamp,omitempty"`
	Pid       int64  `protobuf:"varint,2,opt,name=Pid" json:"Pid,omitempty"`
	Ret       int64  `protobuf:"varint,3,opt,name=Ret" json:"Ret,omitempty"`
	Name      string `protobuf:"bytes,4,opt,name=Name" json:"Name,omitempty"`
	Hash      uint64 `protobuf:"varint,5,opt,name=Hash" json:"Hash,omitempty"`
	Flags     uint64 `protobuf:"varint,6,opt,name=Flags" json:"Flags,omitempty"`
}

func (*ProtobufCommonEvent) Descriptor

func (*ProtobufCommonEvent) Descriptor() ([]byte, []int)

func (*ProtobufCommonEvent) GetFlags

func (m *ProtobufCommonEvent) GetFlags() uint64

func (*ProtobufCommonEvent) GetHash

func (m *ProtobufCommonEvent) GetHash() uint64

func (*ProtobufCommonEvent) GetName

func (m *ProtobufCommonEvent) GetName() string

func (*ProtobufCommonEvent) GetPid

func (m *ProtobufCommonEvent) GetPid() int64

func (*ProtobufCommonEvent) GetRet

func (m *ProtobufCommonEvent) GetRet() int64

func (*ProtobufCommonEvent) GetTimestamp

func (m *ProtobufCommonEvent) GetTimestamp() uint64

func (*ProtobufCommonEvent) ProtoMessage

func (*ProtobufCommonEvent) ProtoMessage()

func (*ProtobufCommonEvent) Reset

func (m *ProtobufCommonEvent) Reset()

func (*ProtobufCommonEvent) String

func (m *ProtobufCommonEvent) String() string

type ProtobufConnectV4Event

type ProtobufConnectV4Event struct {
	Saddr uint32 `protobuf:"varint,1,opt,name=Saddr" json:"Saddr,omitempty"`
	Daddr uint32 `protobuf:"varint,2,opt,name=Daddr" json:"Daddr,omitempty"`
	Sport uint32 `protobuf:"varint,3,opt,name=Sport" json:"Sport,omitempty"`
	Dport uint32 `protobuf:"varint,4,opt,name=Dport" json:"Dport,omitempty"`
	Netns uint32 `protobuf:"varint,5,opt,name=Netns" json:"Netns,omitempty"`
}

func (*ProtobufConnectV4Event) Descriptor

func (*ProtobufConnectV4Event) Descriptor() ([]byte, []int)

func (*ProtobufConnectV4Event) GetDaddr

func (m *ProtobufConnectV4Event) GetDaddr() uint32

func (*ProtobufConnectV4Event) GetDport

func (m *ProtobufConnectV4Event) GetDport() uint32

func (*ProtobufConnectV4Event) GetNetns

func (m *ProtobufConnectV4Event) GetNetns() uint32

func (*ProtobufConnectV4Event) GetSaddr

func (m *ProtobufConnectV4Event) GetSaddr() uint32

func (*ProtobufConnectV4Event) GetSport

func (m *ProtobufConnectV4Event) GetSport() uint32

func (*ProtobufConnectV4Event) ProtoMessage

func (*ProtobufConnectV4Event) ProtoMessage()

func (*ProtobufConnectV4Event) Reset

func (m *ProtobufConnectV4Event) Reset()

func (*ProtobufConnectV4Event) String

func (m *ProtobufConnectV4Event) String() string

type ProtobufConnectV6Event

type ProtobufConnectV6Event struct {
	Saddr string `protobuf:"bytes,1,opt,name=Saddr" json:"Saddr,omitempty"`
	Daddr string `protobuf:"bytes,2,opt,name=Daddr" json:"Daddr,omitempty"`
	Sport uint32 `protobuf:"varint,3,opt,name=Sport" json:"Sport,omitempty"`
	Dport uint32 `protobuf:"varint,4,opt,name=Dport" json:"Dport,omitempty"`
	Netns uint32 `protobuf:"varint,5,opt,name=Netns" json:"Netns,omitempty"`
}

func (*ProtobufConnectV6Event) Descriptor

func (*ProtobufConnectV6Event) Descriptor() ([]byte, []int)

func (*ProtobufConnectV6Event) GetDaddr

func (m *ProtobufConnectV6Event) GetDaddr() string

func (*ProtobufConnectV6Event) GetDport

func (m *ProtobufConnectV6Event) GetDport() uint32

func (*ProtobufConnectV6Event) GetNetns

func (m *ProtobufConnectV6Event) GetNetns() uint32

func (*ProtobufConnectV6Event) GetSaddr

func (m *ProtobufConnectV6Event) GetSaddr() string

func (*ProtobufConnectV6Event) GetSport

func (m *ProtobufConnectV6Event) GetSport() uint32

func (*ProtobufConnectV6Event) ProtoMessage

func (*ProtobufConnectV6Event) ProtoMessage()

func (*ProtobufConnectV6Event) Reset

func (m *ProtobufConnectV6Event) Reset()

func (*ProtobufConnectV6Event) String

func (m *ProtobufConnectV6Event) String() string

type ProtobufFchmodEvent

type ProtobufFchmodEvent struct {
	Fd   uint64 `protobuf:"varint,1,opt,name=fd" json:"fd,omitempty"`
	Mode uint64 `protobuf:"varint,2,opt,name=mode" json:"mode,omitempty"`
}

func (*ProtobufFchmodEvent) Descriptor

func (*ProtobufFchmodEvent) Descriptor() ([]byte, []int)

func (*ProtobufFchmodEvent) GetFd

func (m *ProtobufFchmodEvent) GetFd() uint64

func (*ProtobufFchmodEvent) GetMode

func (m *ProtobufFchmodEvent) GetMode() uint64

func (*ProtobufFchmodEvent) ProtoMessage

func (*ProtobufFchmodEvent) ProtoMessage()

func (*ProtobufFchmodEvent) Reset

func (m *ProtobufFchmodEvent) Reset()

func (*ProtobufFchmodEvent) String

func (m *ProtobufFchmodEvent) String() string

type ProtobufFchmodatEvent

type ProtobufFchmodatEvent struct {
	Dfd      int64  `protobuf:"varint,1,opt,name=dfd" json:"dfd,omitempty"`
	Filename []byte `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
	Mode     uint64 `protobuf:"varint,3,opt,name=mode" json:"mode,omitempty"`
}

func (*ProtobufFchmodatEvent) Descriptor

func (*ProtobufFchmodatEvent) Descriptor() ([]byte, []int)

func (*ProtobufFchmodatEvent) GetDfd

func (m *ProtobufFchmodatEvent) GetDfd() int64

func (*ProtobufFchmodatEvent) GetFilename

func (m *ProtobufFchmodatEvent) GetFilename() []byte

func (*ProtobufFchmodatEvent) GetMode

func (m *ProtobufFchmodatEvent) GetMode() uint64

func (*ProtobufFchmodatEvent) ProtoMessage

func (*ProtobufFchmodatEvent) ProtoMessage()

func (*ProtobufFchmodatEvent) Reset

func (m *ProtobufFchmodatEvent) Reset()

func (*ProtobufFchmodatEvent) String

func (m *ProtobufFchmodatEvent) String() string

type ProtobufFchownEvent

type ProtobufFchownEvent struct {
	Fd    uint64 `protobuf:"varint,1,opt,name=fd" json:"fd,omitempty"`
	User  uint32 `protobuf:"varint,2,opt,name=user" json:"user,omitempty"`
	Group uint32 `protobuf:"varint,3,opt,name=group" json:"group,omitempty"`
}

func (*ProtobufFchownEvent) Descriptor

func (*ProtobufFchownEvent) Descriptor() ([]byte, []int)

func (*ProtobufFchownEvent) GetFd

func (m *ProtobufFchownEvent) GetFd() uint64

func (*ProtobufFchownEvent) GetGroup

func (m *ProtobufFchownEvent) GetGroup() uint32

func (*ProtobufFchownEvent) GetUser

func (m *ProtobufFchownEvent) GetUser() uint32

func (*ProtobufFchownEvent) ProtoMessage

func (*ProtobufFchownEvent) ProtoMessage()

func (*ProtobufFchownEvent) Reset

func (m *ProtobufFchownEvent) Reset()

func (*ProtobufFchownEvent) String

func (m *ProtobufFchownEvent) String() string

type ProtobufFchownatEvent

type ProtobufFchownatEvent struct {
	Dfd      int64  `protobuf:"varint,1,opt,name=dfd" json:"dfd,omitempty"`
	Filename []byte `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
	User     uint32 `protobuf:"varint,3,opt,name=user" json:"user,omitempty"`
	Group    uint32 `protobuf:"varint,4,opt,name=group" json:"group,omitempty"`
	Flag     int64  `protobuf:"varint,5,opt,name=flag" json:"flag,omitempty"`
}

func (*ProtobufFchownatEvent) Descriptor

func (*ProtobufFchownatEvent) Descriptor() ([]byte, []int)

func (*ProtobufFchownatEvent) GetDfd

func (m *ProtobufFchownatEvent) GetDfd() int64

func (*ProtobufFchownatEvent) GetFilename

func (m *ProtobufFchownatEvent) GetFilename() []byte

func (*ProtobufFchownatEvent) GetFlag

func (m *ProtobufFchownatEvent) GetFlag() int64

func (*ProtobufFchownatEvent) GetGroup

func (m *ProtobufFchownatEvent) GetGroup() uint32

func (*ProtobufFchownatEvent) GetUser

func (m *ProtobufFchownatEvent) GetUser() uint32

func (*ProtobufFchownatEvent) ProtoMessage

func (*ProtobufFchownatEvent) ProtoMessage()

func (*ProtobufFchownatEvent) Reset

func (m *ProtobufFchownatEvent) Reset()

func (*ProtobufFchownatEvent) String

func (m *ProtobufFchownatEvent) String() string

type ProtobufMkdirEvent

type ProtobufMkdirEvent struct {
	Pathname []byte `protobuf:"bytes,1,opt,name=pathname,proto3" json:"pathname,omitempty"`
	Mode     uint64 `protobuf:"varint,2,opt,name=mode" json:"mode,omitempty"`
}

func (*ProtobufMkdirEvent) Descriptor

func (*ProtobufMkdirEvent) Descriptor() ([]byte, []int)

func (*ProtobufMkdirEvent) GetMode

func (m *ProtobufMkdirEvent) GetMode() uint64

func (*ProtobufMkdirEvent) GetPathname

func (m *ProtobufMkdirEvent) GetPathname() []byte

func (*ProtobufMkdirEvent) ProtoMessage

func (*ProtobufMkdirEvent) ProtoMessage()

func (*ProtobufMkdirEvent) Reset

func (m *ProtobufMkdirEvent) Reset()

func (*ProtobufMkdirEvent) String

func (m *ProtobufMkdirEvent) String() string

type ProtobufMkdiratEvent

type ProtobufMkdiratEvent struct {
	Dfd      int64  `protobuf:"varint,1,opt,name=dfd" json:"dfd,omitempty"`
	Pathname []byte `protobuf:"bytes,2,opt,name=pathname,proto3" json:"pathname,omitempty"`
	Mode     uint64 `protobuf:"varint,3,opt,name=mode" json:"mode,omitempty"`
}

func (*ProtobufMkdiratEvent) Descriptor

func (*ProtobufMkdiratEvent) Descriptor() ([]byte, []int)

func (*ProtobufMkdiratEvent) GetDfd

func (m *ProtobufMkdiratEvent) GetDfd() int64

func (*ProtobufMkdiratEvent) GetMode

func (m *ProtobufMkdiratEvent) GetMode() uint64

func (*ProtobufMkdiratEvent) GetPathname

func (m *ProtobufMkdiratEvent) GetPathname() []byte

func (*ProtobufMkdiratEvent) ProtoMessage

func (*ProtobufMkdiratEvent) ProtoMessage()

func (*ProtobufMkdiratEvent) Reset

func (m *ProtobufMkdiratEvent) Reset()

func (*ProtobufMkdiratEvent) String

func (m *ProtobufMkdiratEvent) String() string

type ProtobufOpenEvent

type ProtobufOpenEvent struct {
	Filename []byte `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
	Flags    int64  `protobuf:"varint,2,opt,name=flags" json:"flags,omitempty"`
	Mode     uint64 `protobuf:"varint,3,opt,name=mode" json:"mode,omitempty"`
}

func (*ProtobufOpenEvent) Descriptor

func (*ProtobufOpenEvent) Descriptor() ([]byte, []int)

func (*ProtobufOpenEvent) GetFilename

func (m *ProtobufOpenEvent) GetFilename() []byte

func (*ProtobufOpenEvent) GetFlags

func (m *ProtobufOpenEvent) GetFlags() int64

func (*ProtobufOpenEvent) GetMode

func (m *ProtobufOpenEvent) GetMode() uint64

func (*ProtobufOpenEvent) ProtoMessage

func (*ProtobufOpenEvent) ProtoMessage()

func (*ProtobufOpenEvent) Reset

func (m *ProtobufOpenEvent) Reset()

func (*ProtobufOpenEvent) String

func (m *ProtobufOpenEvent) String() string

type ProtobufReadEvent

type ProtobufReadEvent struct {
	Fd    uint64 `protobuf:"varint,1,opt,name=fd" json:"fd,omitempty"`
	Buf   []byte `protobuf:"bytes,2,opt,name=buf,proto3" json:"buf,omitempty"`
	Count int64  `protobuf:"varint,3,opt,name=count" json:"count,omitempty"`
}

func (*ProtobufReadEvent) Descriptor

func (*ProtobufReadEvent) Descriptor() ([]byte, []int)

func (*ProtobufReadEvent) GetBuf

func (m *ProtobufReadEvent) GetBuf() []byte

func (*ProtobufReadEvent) GetCount

func (m *ProtobufReadEvent) GetCount() int64

func (*ProtobufReadEvent) GetFd

func (m *ProtobufReadEvent) GetFd() uint64

func (*ProtobufReadEvent) ProtoMessage

func (*ProtobufReadEvent) ProtoMessage()

func (*ProtobufReadEvent) Reset

func (m *ProtobufReadEvent) Reset()

func (*ProtobufReadEvent) String

func (m *ProtobufReadEvent) String() string

type ProtobufWriteEvent

type ProtobufWriteEvent struct {
	Fd    uint64 `protobuf:"varint,1,opt,name=fd" json:"fd,omitempty"`
	Buf   []byte `protobuf:"bytes,2,opt,name=buf,proto3" json:"buf,omitempty"`
	Count int64  `protobuf:"varint,3,opt,name=count" json:"count,omitempty"`
}

func (*ProtobufWriteEvent) Descriptor

func (*ProtobufWriteEvent) Descriptor() ([]byte, []int)

func (*ProtobufWriteEvent) GetBuf

func (m *ProtobufWriteEvent) GetBuf() []byte

func (*ProtobufWriteEvent) GetCount

func (m *ProtobufWriteEvent) GetCount() int64

func (*ProtobufWriteEvent) GetFd

func (m *ProtobufWriteEvent) GetFd() uint64

func (*ProtobufWriteEvent) ProtoMessage

func (*ProtobufWriteEvent) ProtoMessage()

func (*ProtobufWriteEvent) Reset

func (m *ProtobufWriteEvent) Reset()

func (*ProtobufWriteEvent) String

func (m *ProtobufWriteEvent) String() string

type ReadEvent

type ReadEvent struct {
	Fd     uint64
	FdPath string
	Buf    [256]byte
	Count  int64
}

func (ReadEvent) GetArgN

func (e ReadEvent) GetArgN(n int, ret int64) (string, error)

func (ReadEvent) Metric

func (e ReadEvent) Metric() *Metric

func (ReadEvent) String

func (e ReadEvent) String(ret int64) string

type RobustList

type RobustList struct {
	Next unsafe.Pointer
}

type RobustListHead

type RobustListHead struct {
	List          RobustList
	FutexOffset   int64
	ListOpPending unsafe.Pointer
}

type SigSet

type SigSet struct {
	Sig []uint64
}

type Sigaction

type Sigaction struct {
	SaHandler  unsafe.Pointer
	SaRestorer unsafe.Pointer
	SaMask     SigSet
}

type Sigevent

type Sigevent struct {
	SigevValue  Sigval
	SigevSigno  int64
	SigevNotify int64
	Pad         [13]int // (64 - 3*4) / 4
}

type Sigval

type Sigval struct {
	SivalInt int64
	SivalPtr unsafe.Pointer
}

type Stack

type Stack struct {
	SsSp    []byte // size?
	SsFlags int64
	SsSize  int64
}

type SysctlArgs

type SysctlArgs struct {
	Name    []int64
	Nlen    int64
	Oldval  unsafe.Pointer
	OldLenp int64
	Newval  unsafe.Pointer
	Newlen  int64
}

type Timezone

type Timezone struct {
	TzMinuteswest int64
	TzDsttime     int64
}

type Tracer

type Tracer struct {
	Probe *probe.Probe
	// contains filtered or unexported fields
}

func New

func New(callback func(*[]byte), callbackLost func(uint64), cacheSize int) (*Tracer, error)

func (*Tracer) Stop

func (t *Tracer) Stop()

type UserMsghdr

type UserMsghdr struct {
	MsgName       unsafe.Pointer
	MsgNamelen    int64
	MsgIov        syscall.Iovec
	MsgIovlen     int64
	MsgControl    unsafe.Pointer
	MsgControllen int64
	MsgFlags      uint64
}

type WriteEvent

type WriteEvent struct {
	Fd     uint64
	FdPath string
	Buf    [256]byte
	Count  int64
}

func (WriteEvent) GetArgN

func (e WriteEvent) GetArgN(n int, ret int64) (string, error)

func (WriteEvent) Metric

func (e WriteEvent) Metric() *Metric

func (WriteEvent) String

func (e WriteEvent) String(ret int64) string

Jump to

Keyboard shortcuts

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