Documentation
¶
Index ¶
- Variables
- func Dial() (*grpc.ClientConn, context.CancelFunc, error)
- type BpfRecorder
- func (b *BpfRecorder) Run() error
- func (b *BpfRecorder) Start(ctx context.Context, r *api.EmptyRequest) (*api.EmptyResponse, error)
- func (b *BpfRecorder) Stop(ctx context.Context, r *api.EmptyRequest) (*api.EmptyResponse, error)
- func (b *BpfRecorder) SyscallsForProfile(ctx context.Context, r *api.ProfileRequest) (*api.SyscallsResponse, error)
- type Pid
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("no PID found for profile")
ErrNotFound is the GRPC error if no recording PID could be found.
Functions ¶
func Dial ¶
func Dial() (*grpc.ClientConn, context.CancelFunc, error)
Dial can be used to connect to the default GRPC server by creating a new client.
Types ¶
type BpfRecorder ¶
type BpfRecorder struct { api.UnimplementedBpfRecorderServer // contains filtered or unexported fields }
BpfRecorder is the main structure of this package.
func (*BpfRecorder) Start ¶
func (b *BpfRecorder) Start( ctx context.Context, r *api.EmptyRequest, ) (*api.EmptyResponse, error)
func (*BpfRecorder) Stop ¶
func (b *BpfRecorder) Stop( ctx context.Context, r *api.EmptyRequest, ) (*api.EmptyResponse, error)
func (*BpfRecorder) SyscallsForProfile ¶
func (b *BpfRecorder) SyscallsForProfile( ctx context.Context, r *api.ProfileRequest, ) (*api.SyscallsResponse, error)
SyscallsForProfile returns the syscall names for the provided PID.
Click to show internal directories.
Click to hide internal directories.