Enum value maps for FailKernRequest_FAILTYPE.
var ( FailKernRequest_FAILTYPE_name = map[int32]string{ 0: "SLAB", 1: "PAGE", 2: "BIO", } FailKernRequest_FAILTYPE_value = map[string]int32{ "SLAB": 0, "PAGE": 1, "BIO": 2, } )
var File_bpfki_proto protoreflect.FileDescriptor
func RegisterBPFKIServiceServer(s *grpc.Server, srv BPFKIServiceServer)
BPFKIServiceClient is the client API for BPFKIService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type BPFKIServiceClient interface { SetTimeVal(ctx context.Context, in *BumpTimeRequest, opts ...grpc.CallOption) (*StatusResponse, error) RecoverTimeVal(ctx context.Context, in *BumpTimeRequest, opts ...grpc.CallOption) (*StatusResponse, error) SetTimeSpec(ctx context.Context, in *BumpTimeRequest, opts ...grpc.CallOption) (*StatusResponse, error) RecoverTimeSpec(ctx context.Context, in *BumpTimeRequest, opts ...grpc.CallOption) (*StatusResponse, error) FailMMOrBIO(ctx context.Context, in *FailKernRequest, opts ...grpc.CallOption) (*StatusResponse, error) RecoverMMOrBIO(ctx context.Context, in *FailKernRequest, opts ...grpc.CallOption) (*StatusResponse, error) FailSyscall(ctx context.Context, in *FailSyscallRequest, opts ...grpc.CallOption) (*StatusResponse, error) RecoverSyscall(ctx context.Context, in *FailSyscallRequest, opts ...grpc.CallOption) (*StatusResponse, error) }
func NewBPFKIServiceClient(cc grpc.ClientConnInterface) BPFKIServiceClient
BPFKIServiceServer is the server API for BPFKIService service.
type BPFKIServiceServer interface { SetTimeVal(context.Context, *BumpTimeRequest) (*StatusResponse, error) RecoverTimeVal(context.Context, *BumpTimeRequest) (*StatusResponse, error) SetTimeSpec(context.Context, *BumpTimeRequest) (*StatusResponse, error) RecoverTimeSpec(context.Context, *BumpTimeRequest) (*StatusResponse, error) FailMMOrBIO(context.Context, *FailKernRequest) (*StatusResponse, error) RecoverMMOrBIO(context.Context, *FailKernRequest) (*StatusResponse, error) FailSyscall(context.Context, *FailSyscallRequest) (*StatusResponse, error) RecoverSyscall(context.Context, *FailSyscallRequest) (*StatusResponse, error) }
type BumpTimeRequest struct { Pid uint32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` Tid uint32 `protobuf:"varint,2,opt,name=tid,proto3" json:"tid,omitempty"` Second int32 `protobuf:"varint,3,opt,name=second,proto3" json:"second,omitempty"` Subsecond int32 `protobuf:"varint,4,opt,name=subsecond,proto3" json:"subsecond,omitempty"` Probability float32 `protobuf:"fixed32,5,opt,name=probability,proto3" json:"probability,omitempty"` // contains filtered or unexported fields }
func (*BumpTimeRequest) Descriptor() ([]byte, []int)
Deprecated: Use BumpTimeRequest.ProtoReflect.Descriptor instead.
func (x *BumpTimeRequest) GetPid() uint32
func (x *BumpTimeRequest) GetProbability() float32
func (x *BumpTimeRequest) GetSecond() int32
func (x *BumpTimeRequest) GetSubsecond() int32
func (x *BumpTimeRequest) GetTid() uint32
func (*BumpTimeRequest) ProtoMessage()
func (x *BumpTimeRequest) ProtoReflect() protoreflect.Message
func (x *BumpTimeRequest) Reset()
func (x *BumpTimeRequest) String() string
type FailKernRequest struct { Pid uint32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` Tid uint32 `protobuf:"varint,2,opt,name=tid,proto3" json:"tid,omitempty"` Ftype FailKernRequest_FAILTYPE `protobuf:"varint,3,opt,name=ftype,proto3,enum=bpfki.FailKernRequest_FAILTYPE" json:"ftype,omitempty"` Headers []string `protobuf:"bytes,4,rep,name=headers,proto3" json:"headers,omitempty"` Callchain []*FailKernRequestFrame `protobuf:"bytes,5,rep,name=callchain,proto3" json:"callchain,omitempty"` Probability float32 `protobuf:"fixed32,6,opt,name=probability,proto3" json:"probability,omitempty"` Times uint32 `protobuf:"varint,7,opt,name=times,proto3" json:"times,omitempty"` // contains filtered or unexported fields }
func (*FailKernRequest) Descriptor() ([]byte, []int)
Deprecated: Use FailKernRequest.ProtoReflect.Descriptor instead.
func (x *FailKernRequest) GetCallchain() []*FailKernRequestFrame
func (x *FailKernRequest) GetFtype() FailKernRequest_FAILTYPE
func (x *FailKernRequest) GetHeaders() []string
func (x *FailKernRequest) GetPid() uint32
func (x *FailKernRequest) GetProbability() float32
func (x *FailKernRequest) GetTid() uint32
func (x *FailKernRequest) GetTimes() uint32
func (*FailKernRequest) ProtoMessage()
func (x *FailKernRequest) ProtoReflect() protoreflect.Message
func (x *FailKernRequest) Reset()
func (x *FailKernRequest) String() string
type FailKernRequestFrame struct { Funcname string `protobuf:"bytes,1,opt,name=funcname,proto3" json:"funcname,omitempty"` Parameters string `protobuf:"bytes,2,opt,name=parameters,proto3" json:"parameters,omitempty"` Predicate string `protobuf:"bytes,3,opt,name=predicate,proto3" json:"predicate,omitempty"` // contains filtered or unexported fields }
func (*FailKernRequestFrame) Descriptor() ([]byte, []int)
Deprecated: Use FailKernRequestFrame.ProtoReflect.Descriptor instead.
func (x *FailKernRequestFrame) GetFuncname() string
func (x *FailKernRequestFrame) GetParameters() string
func (x *FailKernRequestFrame) GetPredicate() string
func (*FailKernRequestFrame) ProtoMessage()
func (x *FailKernRequestFrame) ProtoReflect() protoreflect.Message
func (x *FailKernRequestFrame) Reset()
func (x *FailKernRequestFrame) String() string
type FailKernRequest_FAILTYPE int32
const ( FailKernRequest_SLAB FailKernRequest_FAILTYPE = 0 FailKernRequest_PAGE FailKernRequest_FAILTYPE = 1 FailKernRequest_BIO FailKernRequest_FAILTYPE = 2 )
func (FailKernRequest_FAILTYPE) Descriptor() protoreflect.EnumDescriptor
func (x FailKernRequest_FAILTYPE) Enum() *FailKernRequest_FAILTYPE
func (FailKernRequest_FAILTYPE) EnumDescriptor() ([]byte, []int)
Deprecated: Use FailKernRequest_FAILTYPE.Descriptor instead.
func (x FailKernRequest_FAILTYPE) Number() protoreflect.EnumNumber
func (x FailKernRequest_FAILTYPE) String() string
func (FailKernRequest_FAILTYPE) Type() protoreflect.EnumType
type FailSyscallRequest struct { Pid uint32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` Tid uint32 `protobuf:"varint,2,opt,name=tid,proto3" json:"tid,omitempty"` Methods []string `protobuf:"bytes,3,rep,name=methods,proto3" json:"methods,omitempty"` Err uint32 `protobuf:"varint,4,opt,name=err,proto3" json:"err,omitempty"` Probability float32 `protobuf:"fixed32,5,opt,name=probability,proto3" json:"probability,omitempty"` // contains filtered or unexported fields }
func (*FailSyscallRequest) Descriptor() ([]byte, []int)
Deprecated: Use FailSyscallRequest.ProtoReflect.Descriptor instead.
func (x *FailSyscallRequest) GetErr() uint32
func (x *FailSyscallRequest) GetMethods() []string
func (x *FailSyscallRequest) GetPid() uint32
func (x *FailSyscallRequest) GetProbability() float32
func (x *FailSyscallRequest) GetTid() uint32
func (*FailSyscallRequest) ProtoMessage()
func (x *FailSyscallRequest) ProtoReflect() protoreflect.Message
func (x *FailSyscallRequest) Reset()
func (x *FailSyscallRequest) String() string
type StatusResponse struct { Ret int32 `protobuf:"varint,1,opt,name=ret,proto3" json:"ret,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*StatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.
func (x *StatusResponse) GetMsg() string
func (x *StatusResponse) GetRet() int32
func (*StatusResponse) ProtoMessage()
func (x *StatusResponse) ProtoReflect() protoreflect.Message
func (x *StatusResponse) Reset()
func (x *StatusResponse) String() string
UnimplementedBPFKIServiceServer can be embedded to have forward compatible implementations.
type UnimplementedBPFKIServiceServer struct { }
func (*UnimplementedBPFKIServiceServer) FailMMOrBIO(context.Context, *FailKernRequest) (*StatusResponse, error)
func (*UnimplementedBPFKIServiceServer) FailSyscall(context.Context, *FailSyscallRequest) (*StatusResponse, error)
func (*UnimplementedBPFKIServiceServer) RecoverMMOrBIO(context.Context, *FailKernRequest) (*StatusResponse, error)
func (*UnimplementedBPFKIServiceServer) RecoverSyscall(context.Context, *FailSyscallRequest) (*StatusResponse, error)
func (*UnimplementedBPFKIServiceServer) RecoverTimeSpec(context.Context, *BumpTimeRequest) (*StatusResponse, error)
func (*UnimplementedBPFKIServiceServer) RecoverTimeVal(context.Context, *BumpTimeRequest) (*StatusResponse, error)
func (*UnimplementedBPFKIServiceServer) SetTimeSpec(context.Context, *BumpTimeRequest) (*StatusResponse, error)
func (*UnimplementedBPFKIServiceServer) SetTimeVal(context.Context, *BumpTimeRequest) (*StatusResponse, error)