You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2022/02/28 04:01:23 UTC
[skywalking-goapi] branch main updated: Update data collect protocol for eBPF process and profiling protocol (#24)
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-goapi.git
The following commit(s) were added to refs/heads/main by this push:
new f1aefbf Update data collect protocol for eBPF process and profiling protocol (#24)
f1aefbf is described below
commit f1aefbfd2a8c07572ecbfba493186d6a66139b0f
Author: mrproliu <74...@qq.com>
AuthorDate: Mon Feb 28 12:01:18 2022 +0800
Update data collect protocol for eBPF process and profiling protocol (#24)
---
collect/ebpf/profiling/process/v3/Process.pb.go | 1008 ++++++++++++++++++++
.../ebpf/profiling/process/v3/Process_grpc.pb.go | 142 +++
collect/ebpf/profiling/v3/Profile.pb.go | 626 ++++++++++++
collect/ebpf/profiling/v3/Profile_grpc.pb.go | 177 ++++
dependencies.sh | 2 +-
scripts/update_sniff_protocol.sh | 3 +-
6 files changed, 1956 insertions(+), 2 deletions(-)
diff --git a/collect/ebpf/profiling/process/v3/Process.pb.go b/collect/ebpf/profiling/process/v3/Process.pb.go
new file mode 100644
index 0000000..9f59dec
--- /dev/null
+++ b/collect/ebpf/profiling/process/v3/Process.pb.go
@@ -0,0 +1,1008 @@
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.26.0
+// protoc v3.14.0
+// source: ebpf/profiling/Process.proto
+
+package v3
+
+import (
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ reflect "reflect"
+ v3 "skywalking.apache.org/repo/goapi/collect/common/v3"
+ sync "sync"
+)
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+type EBPFProcessReportList struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Processes []*EBPFProcessProperties `protobuf:"bytes,1,rep,name=processes,proto3" json:"processes,omitempty"`
+ // An ID generated by eBPF agent, should be unique globally.
+ EbpfAgentID string `protobuf:"bytes,2,opt,name=ebpfAgentID,proto3" json:"ebpfAgentID,omitempty"`
+}
+
+func (x *EBPFProcessReportList) Reset() {
+ *x = EBPFProcessReportList{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_ebpf_profiling_Process_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *EBPFProcessReportList) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*EBPFProcessReportList) ProtoMessage() {}
+
+func (x *EBPFProcessReportList) ProtoReflect() protoreflect.Message {
+ mi := &file_ebpf_profiling_Process_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use EBPFProcessReportList.ProtoReflect.Descriptor instead.
+func (*EBPFProcessReportList) Descriptor() ([]byte, []int) {
+ return file_ebpf_profiling_Process_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *EBPFProcessReportList) GetProcesses() []*EBPFProcessProperties {
+ if x != nil {
+ return x.Processes
+ }
+ return nil
+}
+
+func (x *EBPFProcessReportList) GetEbpfAgentID() string {
+ if x != nil {
+ return x.EbpfAgentID
+ }
+ return ""
+}
+
+type EBPFProcessProperties struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The Process metadata
+ //
+ // Types that are assignable to Metadata:
+ // *EBPFProcessProperties_HostProcess
+ // *EBPFProcessProperties_K8SProcess
+ Metadata isEBPFProcessProperties_Metadata `protobuf_oneof:"metadata"`
+}
+
+func (x *EBPFProcessProperties) Reset() {
+ *x = EBPFProcessProperties{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_ebpf_profiling_Process_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *EBPFProcessProperties) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*EBPFProcessProperties) ProtoMessage() {}
+
+func (x *EBPFProcessProperties) ProtoReflect() protoreflect.Message {
+ mi := &file_ebpf_profiling_Process_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use EBPFProcessProperties.ProtoReflect.Descriptor instead.
+func (*EBPFProcessProperties) Descriptor() ([]byte, []int) {
+ return file_ebpf_profiling_Process_proto_rawDescGZIP(), []int{1}
+}
+
+func (m *EBPFProcessProperties) GetMetadata() isEBPFProcessProperties_Metadata {
+ if m != nil {
+ return m.Metadata
+ }
+ return nil
+}
+
+func (x *EBPFProcessProperties) GetHostProcess() *EBPFHostProcessMetadata {
+ if x, ok := x.GetMetadata().(*EBPFProcessProperties_HostProcess); ok {
+ return x.HostProcess
+ }
+ return nil
+}
+
+func (x *EBPFProcessProperties) GetK8SProcess() *EBPFKubernetesProcessMetadata {
+ if x, ok := x.GetMetadata().(*EBPFProcessProperties_K8SProcess); ok {
+ return x.K8SProcess
+ }
+ return nil
+}
+
+type isEBPFProcessProperties_Metadata interface {
+ isEBPFProcessProperties_Metadata()
+}
+
+type EBPFProcessProperties_HostProcess struct {
+ HostProcess *EBPFHostProcessMetadata `protobuf:"bytes,1,opt,name=hostProcess,proto3,oneof"`
+}
+
+type EBPFProcessProperties_K8SProcess struct {
+ K8SProcess *EBPFKubernetesProcessMetadata `protobuf:"bytes,2,opt,name=k8sProcess,proto3,oneof"`
+}
+
+func (*EBPFProcessProperties_HostProcess) isEBPFProcessProperties_Metadata() {}
+
+func (*EBPFProcessProperties_K8SProcess) isEBPFProcessProperties_Metadata() {}
+
+type EBPFHostProcessMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // [required] Entity metadata
+ // Must ensure that entity information is unique at the time of reporting
+ Entity *EBPFProcessEntityMetadata `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
+ // [required] Process full command line
+ Cmd string `protobuf:"bytes,2,opt,name=cmd,proto3" json:"cmd,omitempty"`
+ // [required] The IP address of the host where the process resides
+ HostIP string `protobuf:"bytes,3,opt,name=hostIP,proto3" json:"hostIP,omitempty"`
+ // [required] The Process id of the host
+ Pid int32 `protobuf:"varint,4,opt,name=pid,proto3" json:"pid,omitempty"`
+}
+
+func (x *EBPFHostProcessMetadata) Reset() {
+ *x = EBPFHostProcessMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_ebpf_profiling_Process_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *EBPFHostProcessMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*EBPFHostProcessMetadata) ProtoMessage() {}
+
+func (x *EBPFHostProcessMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_ebpf_profiling_Process_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use EBPFHostProcessMetadata.ProtoReflect.Descriptor instead.
+func (*EBPFHostProcessMetadata) Descriptor() ([]byte, []int) {
+ return file_ebpf_profiling_Process_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *EBPFHostProcessMetadata) GetEntity() *EBPFProcessEntityMetadata {
+ if x != nil {
+ return x.Entity
+ }
+ return nil
+}
+
+func (x *EBPFHostProcessMetadata) GetCmd() string {
+ if x != nil {
+ return x.Cmd
+ }
+ return ""
+}
+
+func (x *EBPFHostProcessMetadata) GetHostIP() string {
+ if x != nil {
+ return x.HostIP
+ }
+ return ""
+}
+
+func (x *EBPFHostProcessMetadata) GetPid() int32 {
+ if x != nil {
+ return x.Pid
+ }
+ return 0
+}
+
+// Process Entity metadata
+type EBPFProcessEntityMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // [required] Process belong layer name which define in the backend
+ Layer string `protobuf:"bytes,1,opt,name=layer,proto3" json:"layer,omitempty"`
+ // [required] Process belong service name
+ ServiceName string `protobuf:"bytes,2,opt,name=serviceName,proto3" json:"serviceName,omitempty"`
+ // [required] Process belong service instance name
+ InstanceName string `protobuf:"bytes,3,opt,name=instanceName,proto3" json:"instanceName,omitempty"`
+ // [required] Process name
+ ProcessName string `protobuf:"bytes,4,opt,name=processName,proto3" json:"processName,omitempty"`
+}
+
+func (x *EBPFProcessEntityMetadata) Reset() {
+ *x = EBPFProcessEntityMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_ebpf_profiling_Process_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *EBPFProcessEntityMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*EBPFProcessEntityMetadata) ProtoMessage() {}
+
+func (x *EBPFProcessEntityMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_ebpf_profiling_Process_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use EBPFProcessEntityMetadata.ProtoReflect.Descriptor instead.
+func (*EBPFProcessEntityMetadata) Descriptor() ([]byte, []int) {
+ return file_ebpf_profiling_Process_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *EBPFProcessEntityMetadata) GetLayer() string {
+ if x != nil {
+ return x.Layer
+ }
+ return ""
+}
+
+func (x *EBPFProcessEntityMetadata) GetServiceName() string {
+ if x != nil {
+ return x.ServiceName
+ }
+ return ""
+}
+
+func (x *EBPFProcessEntityMetadata) GetInstanceName() string {
+ if x != nil {
+ return x.InstanceName
+ }
+ return ""
+}
+
+func (x *EBPFProcessEntityMetadata) GetProcessName() string {
+ if x != nil {
+ return x.ProcessName
+ }
+ return ""
+}
+
+// [WIP] Kubernetes process metadata
+type EBPFKubernetesProcessMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *EBPFKubernetesProcessMetadata) Reset() {
+ *x = EBPFKubernetesProcessMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_ebpf_profiling_Process_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *EBPFKubernetesProcessMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*EBPFKubernetesProcessMetadata) ProtoMessage() {}
+
+func (x *EBPFKubernetesProcessMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_ebpf_profiling_Process_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use EBPFKubernetesProcessMetadata.ProtoReflect.Descriptor instead.
+func (*EBPFKubernetesProcessMetadata) Descriptor() ([]byte, []int) {
+ return file_ebpf_profiling_Process_proto_rawDescGZIP(), []int{4}
+}
+
+type EBPFReportProcessDownstream struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Processes []*EBPFProcessDownstream `protobuf:"bytes,1,rep,name=processes,proto3" json:"processes,omitempty"`
+}
+
+func (x *EBPFReportProcessDownstream) Reset() {
+ *x = EBPFReportProcessDownstream{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_ebpf_profiling_Process_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *EBPFReportProcessDownstream) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*EBPFReportProcessDownstream) ProtoMessage() {}
+
+func (x *EBPFReportProcessDownstream) ProtoReflect() protoreflect.Message {
+ mi := &file_ebpf_profiling_Process_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use EBPFReportProcessDownstream.ProtoReflect.Descriptor instead.
+func (*EBPFReportProcessDownstream) Descriptor() ([]byte, []int) {
+ return file_ebpf_profiling_Process_proto_rawDescGZIP(), []int{5}
+}
+
+func (x *EBPFReportProcessDownstream) GetProcesses() []*EBPFProcessDownstream {
+ if x != nil {
+ return x.Processes
+ }
+ return nil
+}
+
+type EBPFProcessDownstream struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // Generated process id
+ ProcessId string `protobuf:"bytes,1,opt,name=processId,proto3" json:"processId,omitempty"`
+ // Locate the process by basic information
+ //
+ // Types that are assignable to Process:
+ // *EBPFProcessDownstream_HostProcess
+ // *EBPFProcessDownstream_K8SProcess
+ Process isEBPFProcessDownstream_Process `protobuf_oneof:"process"`
+}
+
+func (x *EBPFProcessDownstream) Reset() {
+ *x = EBPFProcessDownstream{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_ebpf_profiling_Process_proto_msgTypes[6]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *EBPFProcessDownstream) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*EBPFProcessDownstream) ProtoMessage() {}
+
+func (x *EBPFProcessDownstream) ProtoReflect() protoreflect.Message {
+ mi := &file_ebpf_profiling_Process_proto_msgTypes[6]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use EBPFProcessDownstream.ProtoReflect.Descriptor instead.
+func (*EBPFProcessDownstream) Descriptor() ([]byte, []int) {
+ return file_ebpf_profiling_Process_proto_rawDescGZIP(), []int{6}
+}
+
+func (x *EBPFProcessDownstream) GetProcessId() string {
+ if x != nil {
+ return x.ProcessId
+ }
+ return ""
+}
+
+func (m *EBPFProcessDownstream) GetProcess() isEBPFProcessDownstream_Process {
+ if m != nil {
+ return m.Process
+ }
+ return nil
+}
+
+func (x *EBPFProcessDownstream) GetHostProcess() *EBPFHostProcessDownstream {
+ if x, ok := x.GetProcess().(*EBPFProcessDownstream_HostProcess); ok {
+ return x.HostProcess
+ }
+ return nil
+}
+
+func (x *EBPFProcessDownstream) GetK8SProcess() *EBPFKubernetesProcessDownstream {
+ if x, ok := x.GetProcess().(*EBPFProcessDownstream_K8SProcess); ok {
+ return x.K8SProcess
+ }
+ return nil
+}
+
+type isEBPFProcessDownstream_Process interface {
+ isEBPFProcessDownstream_Process()
+}
+
+type EBPFProcessDownstream_HostProcess struct {
+ HostProcess *EBPFHostProcessDownstream `protobuf:"bytes,2,opt,name=hostProcess,proto3,oneof"`
+}
+
+type EBPFProcessDownstream_K8SProcess struct {
+ K8SProcess *EBPFKubernetesProcessDownstream `protobuf:"bytes,3,opt,name=k8sProcess,proto3,oneof"`
+}
+
+func (*EBPFProcessDownstream_HostProcess) isEBPFProcessDownstream_Process() {}
+
+func (*EBPFProcessDownstream_K8SProcess) isEBPFProcessDownstream_Process() {}
+
+type EBPFHostProcessDownstream struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Pid int32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"`
+}
+
+func (x *EBPFHostProcessDownstream) Reset() {
+ *x = EBPFHostProcessDownstream{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_ebpf_profiling_Process_proto_msgTypes[7]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *EBPFHostProcessDownstream) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*EBPFHostProcessDownstream) ProtoMessage() {}
+
+func (x *EBPFHostProcessDownstream) ProtoReflect() protoreflect.Message {
+ mi := &file_ebpf_profiling_Process_proto_msgTypes[7]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use EBPFHostProcessDownstream.ProtoReflect.Descriptor instead.
+func (*EBPFHostProcessDownstream) Descriptor() ([]byte, []int) {
+ return file_ebpf_profiling_Process_proto_rawDescGZIP(), []int{7}
+}
+
+func (x *EBPFHostProcessDownstream) GetPid() int32 {
+ if x != nil {
+ return x.Pid
+ }
+ return 0
+}
+
+// [WIP] Kubernetes process downstream
+type EBPFKubernetesProcessDownstream struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+}
+
+func (x *EBPFKubernetesProcessDownstream) Reset() {
+ *x = EBPFKubernetesProcessDownstream{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_ebpf_profiling_Process_proto_msgTypes[8]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *EBPFKubernetesProcessDownstream) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*EBPFKubernetesProcessDownstream) ProtoMessage() {}
+
+func (x *EBPFKubernetesProcessDownstream) ProtoReflect() protoreflect.Message {
+ mi := &file_ebpf_profiling_Process_proto_msgTypes[8]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use EBPFKubernetesProcessDownstream.ProtoReflect.Descriptor instead.
+func (*EBPFKubernetesProcessDownstream) Descriptor() ([]byte, []int) {
+ return file_ebpf_profiling_Process_proto_rawDescGZIP(), []int{8}
+}
+
+type EBPFProcessPingPkgList struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Processes []*EBPFProcessPingPkg `protobuf:"bytes,1,rep,name=processes,proto3" json:"processes,omitempty"`
+}
+
+func (x *EBPFProcessPingPkgList) Reset() {
+ *x = EBPFProcessPingPkgList{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_ebpf_profiling_Process_proto_msgTypes[9]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *EBPFProcessPingPkgList) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*EBPFProcessPingPkgList) ProtoMessage() {}
+
+func (x *EBPFProcessPingPkgList) ProtoReflect() protoreflect.Message {
+ mi := &file_ebpf_profiling_Process_proto_msgTypes[9]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use EBPFProcessPingPkgList.ProtoReflect.Descriptor instead.
+func (*EBPFProcessPingPkgList) Descriptor() ([]byte, []int) {
+ return file_ebpf_profiling_Process_proto_rawDescGZIP(), []int{9}
+}
+
+func (x *EBPFProcessPingPkgList) GetProcesses() []*EBPFProcessPingPkg {
+ if x != nil {
+ return x.Processes
+ }
+ return nil
+}
+
+type EBPFProcessPingPkg struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // Process id assigned by OAP server.
+ ProcessId string `protobuf:"bytes,1,opt,name=processId,proto3" json:"processId,omitempty"`
+}
+
+func (x *EBPFProcessPingPkg) Reset() {
+ *x = EBPFProcessPingPkg{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_ebpf_profiling_Process_proto_msgTypes[10]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *EBPFProcessPingPkg) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*EBPFProcessPingPkg) ProtoMessage() {}
+
+func (x *EBPFProcessPingPkg) ProtoReflect() protoreflect.Message {
+ mi := &file_ebpf_profiling_Process_proto_msgTypes[10]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use EBPFProcessPingPkg.ProtoReflect.Descriptor instead.
+func (*EBPFProcessPingPkg) Descriptor() ([]byte, []int) {
+ return file_ebpf_profiling_Process_proto_rawDescGZIP(), []int{10}
+}
+
+func (x *EBPFProcessPingPkg) GetProcessId() string {
+ if x != nil {
+ return x.ProcessId
+ }
+ return ""
+}
+
+var File_ebpf_profiling_Process_proto protoreflect.FileDescriptor
+
+var file_ebpf_profiling_Process_proto_rawDesc = []byte{
+ 0x0a, 0x1c, 0x65, 0x62, 0x70, 0x66, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67,
+ 0x2f, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d,
+ 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x1a, 0x13, 0x63,
+ 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x22, 0x7d, 0x0a, 0x15, 0x45, 0x42, 0x50, 0x46, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73,
+ 0x73, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x09, 0x70,
+ 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24,
+ 0x2e, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x45,
+ 0x42, 0x50, 0x46, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72,
+ 0x74, 0x69, 0x65, 0x73, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12,
+ 0x20, 0x0a, 0x0b, 0x65, 0x62, 0x70, 0x66, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x65, 0x62, 0x70, 0x66, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49,
+ 0x44, 0x22, 0xbf, 0x01, 0x0a, 0x15, 0x45, 0x42, 0x50, 0x46, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73,
+ 0x73, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x12, 0x4a, 0x0a, 0x0b, 0x68,
+ 0x6f, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x26, 0x2e, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33,
+ 0x2e, 0x45, 0x42, 0x50, 0x46, 0x48, 0x6f, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73,
+ 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0b, 0x68, 0x6f, 0x73, 0x74,
+ 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x12, 0x4e, 0x0a, 0x0a, 0x6b, 0x38, 0x73, 0x50, 0x72,
+ 0x6f, 0x63, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x73, 0x6b,
+ 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x45, 0x42, 0x50, 0x46,
+ 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73,
+ 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0a, 0x6b, 0x38, 0x73,
+ 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x42, 0x0a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64,
+ 0x61, 0x74, 0x61, 0x22, 0x97, 0x01, 0x0a, 0x17, 0x45, 0x42, 0x50, 0x46, 0x48, 0x6f, 0x73, 0x74,
+ 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12,
+ 0x40, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x28, 0x2e, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e,
+ 0x45, 0x42, 0x50, 0x46, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x45, 0x6e, 0x74, 0x69, 0x74,
+ 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x06, 0x65, 0x6e, 0x74, 0x69, 0x74,
+ 0x79, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x6d, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
+ 0x63, 0x6d, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x6f, 0x73, 0x74, 0x49, 0x50, 0x18, 0x03, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x6f, 0x73, 0x74, 0x49, 0x50, 0x12, 0x10, 0x0a, 0x03, 0x70,
+ 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x70, 0x69, 0x64, 0x22, 0x99, 0x01,
+ 0x0a, 0x19, 0x45, 0x42, 0x50, 0x46, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x45, 0x6e, 0x74,
+ 0x69, 0x74, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x6c,
+ 0x61, 0x79, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x79, 0x65,
+ 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e,
+ 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4e,
+ 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, 0x6e, 0x73, 0x74, 0x61,
+ 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x63, 0x65,
+ 0x73, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72,
+ 0x6f, 0x63, 0x65, 0x73, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x1f, 0x0a, 0x1d, 0x45, 0x42, 0x50,
+ 0x46, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x63, 0x65,
+ 0x73, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x61, 0x0a, 0x1b, 0x45, 0x42,
+ 0x50, 0x46, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x44,
+ 0x6f, 0x77, 0x6e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x42, 0x0a, 0x09, 0x70, 0x72, 0x6f,
+ 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x73,
+ 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x45, 0x42, 0x50,
+ 0x46, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x44, 0x6f, 0x77, 0x6e, 0x73, 0x74, 0x72, 0x65,
+ 0x61, 0x6d, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x22, 0xe0, 0x01,
+ 0x0a, 0x15, 0x45, 0x42, 0x50, 0x46, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x44, 0x6f, 0x77,
+ 0x6e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x63, 0x65,
+ 0x73, 0x73, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x63,
+ 0x65, 0x73, 0x73, 0x49, 0x64, 0x12, 0x4c, 0x0a, 0x0b, 0x68, 0x6f, 0x73, 0x74, 0x50, 0x72, 0x6f,
+ 0x63, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x73, 0x6b, 0x79,
+ 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x45, 0x42, 0x50, 0x46, 0x48,
+ 0x6f, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x44, 0x6f, 0x77, 0x6e, 0x73, 0x74,
+ 0x72, 0x65, 0x61, 0x6d, 0x48, 0x00, 0x52, 0x0b, 0x68, 0x6f, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x63,
+ 0x65, 0x73, 0x73, 0x12, 0x50, 0x0a, 0x0a, 0x6b, 0x38, 0x73, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73,
+ 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c,
+ 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x45, 0x42, 0x50, 0x46, 0x4b, 0x75, 0x62, 0x65,
+ 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x44, 0x6f, 0x77,
+ 0x6e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x48, 0x00, 0x52, 0x0a, 0x6b, 0x38, 0x73, 0x50, 0x72,
+ 0x6f, 0x63, 0x65, 0x73, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73,
+ 0x22, 0x2d, 0x0a, 0x19, 0x45, 0x42, 0x50, 0x46, 0x48, 0x6f, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x63,
+ 0x65, 0x73, 0x73, 0x44, 0x6f, 0x77, 0x6e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x10, 0x0a,
+ 0x03, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x70, 0x69, 0x64, 0x22,
+ 0x21, 0x0a, 0x1f, 0x45, 0x42, 0x50, 0x46, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65,
+ 0x73, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x44, 0x6f, 0x77, 0x6e, 0x73, 0x74, 0x72, 0x65,
+ 0x61, 0x6d, 0x22, 0x59, 0x0a, 0x16, 0x45, 0x42, 0x50, 0x46, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73,
+ 0x73, 0x50, 0x69, 0x6e, 0x67, 0x50, 0x6b, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x09,
+ 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
+ 0x21, 0x2e, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e,
+ 0x45, 0x42, 0x50, 0x46, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x50, 0x69, 0x6e, 0x67, 0x50,
+ 0x6b, 0x67, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x22, 0x32, 0x0a,
+ 0x12, 0x45, 0x42, 0x50, 0x46, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x50, 0x69, 0x6e, 0x67,
+ 0x50, 0x6b, 0x67, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x49, 0x64,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x49,
+ 0x64, 0x32, 0xca, 0x01, 0x0a, 0x12, 0x45, 0x42, 0x50, 0x46, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73,
+ 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x65, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f,
+ 0x72, 0x74, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x24, 0x2e, 0x73, 0x6b,
+ 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x45, 0x42, 0x50, 0x46,
+ 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73,
+ 0x74, 0x1a, 0x2a, 0x2e, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76,
+ 0x33, 0x2e, 0x45, 0x42, 0x50, 0x46, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x63,
+ 0x65, 0x73, 0x73, 0x44, 0x6f, 0x77, 0x6e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x22, 0x00, 0x12,
+ 0x4d, 0x0a, 0x09, 0x6b, 0x65, 0x65, 0x70, 0x41, 0x6c, 0x69, 0x76, 0x65, 0x12, 0x25, 0x2e, 0x73,
+ 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x45, 0x42, 0x50,
+ 0x46, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x50, 0x69, 0x6e, 0x67, 0x50, 0x6b, 0x67, 0x4c,
+ 0x69, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67,
+ 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x22, 0x00, 0x42, 0x83,
+ 0x01, 0x0a, 0x3b, 0x6f, 0x72, 0x67, 0x2e, 0x61, 0x70, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x73, 0x6b,
+ 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x70, 0x6d, 0x2e, 0x6e, 0x65, 0x74,
+ 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x62, 0x70, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c,
+ 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x2e, 0x76, 0x33, 0x50, 0x01,
+ 0x5a, 0x42, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x70, 0x61,
+ 0x63, 0x68, 0x65, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x2f, 0x67, 0x6f, 0x61,
+ 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x2f, 0x65, 0x62, 0x70, 0x66, 0x2f,
+ 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73,
+ 0x73, 0x2f, 0x76, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_ebpf_profiling_Process_proto_rawDescOnce sync.Once
+ file_ebpf_profiling_Process_proto_rawDescData = file_ebpf_profiling_Process_proto_rawDesc
+)
+
+func file_ebpf_profiling_Process_proto_rawDescGZIP() []byte {
+ file_ebpf_profiling_Process_proto_rawDescOnce.Do(func() {
+ file_ebpf_profiling_Process_proto_rawDescData = protoimpl.X.CompressGZIP(file_ebpf_profiling_Process_proto_rawDescData)
+ })
+ return file_ebpf_profiling_Process_proto_rawDescData
+}
+
+var file_ebpf_profiling_Process_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
+var file_ebpf_profiling_Process_proto_goTypes = []interface{}{
+ (*EBPFProcessReportList)(nil), // 0: skywalking.v3.EBPFProcessReportList
+ (*EBPFProcessProperties)(nil), // 1: skywalking.v3.EBPFProcessProperties
+ (*EBPFHostProcessMetadata)(nil), // 2: skywalking.v3.EBPFHostProcessMetadata
+ (*EBPFProcessEntityMetadata)(nil), // 3: skywalking.v3.EBPFProcessEntityMetadata
+ (*EBPFKubernetesProcessMetadata)(nil), // 4: skywalking.v3.EBPFKubernetesProcessMetadata
+ (*EBPFReportProcessDownstream)(nil), // 5: skywalking.v3.EBPFReportProcessDownstream
+ (*EBPFProcessDownstream)(nil), // 6: skywalking.v3.EBPFProcessDownstream
+ (*EBPFHostProcessDownstream)(nil), // 7: skywalking.v3.EBPFHostProcessDownstream
+ (*EBPFKubernetesProcessDownstream)(nil), // 8: skywalking.v3.EBPFKubernetesProcessDownstream
+ (*EBPFProcessPingPkgList)(nil), // 9: skywalking.v3.EBPFProcessPingPkgList
+ (*EBPFProcessPingPkg)(nil), // 10: skywalking.v3.EBPFProcessPingPkg
+ (*v3.Commands)(nil), // 11: skywalking.v3.Commands
+}
+var file_ebpf_profiling_Process_proto_depIdxs = []int32{
+ 1, // 0: skywalking.v3.EBPFProcessReportList.processes:type_name -> skywalking.v3.EBPFProcessProperties
+ 2, // 1: skywalking.v3.EBPFProcessProperties.hostProcess:type_name -> skywalking.v3.EBPFHostProcessMetadata
+ 4, // 2: skywalking.v3.EBPFProcessProperties.k8sProcess:type_name -> skywalking.v3.EBPFKubernetesProcessMetadata
+ 3, // 3: skywalking.v3.EBPFHostProcessMetadata.entity:type_name -> skywalking.v3.EBPFProcessEntityMetadata
+ 6, // 4: skywalking.v3.EBPFReportProcessDownstream.processes:type_name -> skywalking.v3.EBPFProcessDownstream
+ 7, // 5: skywalking.v3.EBPFProcessDownstream.hostProcess:type_name -> skywalking.v3.EBPFHostProcessDownstream
+ 8, // 6: skywalking.v3.EBPFProcessDownstream.k8sProcess:type_name -> skywalking.v3.EBPFKubernetesProcessDownstream
+ 10, // 7: skywalking.v3.EBPFProcessPingPkgList.processes:type_name -> skywalking.v3.EBPFProcessPingPkg
+ 0, // 8: skywalking.v3.EBPFProcessService.reportProcesses:input_type -> skywalking.v3.EBPFProcessReportList
+ 9, // 9: skywalking.v3.EBPFProcessService.keepAlive:input_type -> skywalking.v3.EBPFProcessPingPkgList
+ 5, // 10: skywalking.v3.EBPFProcessService.reportProcesses:output_type -> skywalking.v3.EBPFReportProcessDownstream
+ 11, // 11: skywalking.v3.EBPFProcessService.keepAlive:output_type -> skywalking.v3.Commands
+ 10, // [10:12] is the sub-list for method output_type
+ 8, // [8:10] is the sub-list for method input_type
+ 8, // [8:8] is the sub-list for extension type_name
+ 8, // [8:8] is the sub-list for extension extendee
+ 0, // [0:8] is the sub-list for field type_name
+}
+
+func init() { file_ebpf_profiling_Process_proto_init() }
+func file_ebpf_profiling_Process_proto_init() {
+ if File_ebpf_profiling_Process_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_ebpf_profiling_Process_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*EBPFProcessReportList); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_ebpf_profiling_Process_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*EBPFProcessProperties); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_ebpf_profiling_Process_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*EBPFHostProcessMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_ebpf_profiling_Process_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*EBPFProcessEntityMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_ebpf_profiling_Process_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*EBPFKubernetesProcessMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_ebpf_profiling_Process_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*EBPFReportProcessDownstream); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_ebpf_profiling_Process_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*EBPFProcessDownstream); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_ebpf_profiling_Process_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*EBPFHostProcessDownstream); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_ebpf_profiling_Process_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*EBPFKubernetesProcessDownstream); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_ebpf_profiling_Process_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*EBPFProcessPingPkgList); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_ebpf_profiling_Process_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*EBPFProcessPingPkg); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ file_ebpf_profiling_Process_proto_msgTypes[1].OneofWrappers = []interface{}{
+ (*EBPFProcessProperties_HostProcess)(nil),
+ (*EBPFProcessProperties_K8SProcess)(nil),
+ }
+ file_ebpf_profiling_Process_proto_msgTypes[6].OneofWrappers = []interface{}{
+ (*EBPFProcessDownstream_HostProcess)(nil),
+ (*EBPFProcessDownstream_K8SProcess)(nil),
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_ebpf_profiling_Process_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 11,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_ebpf_profiling_Process_proto_goTypes,
+ DependencyIndexes: file_ebpf_profiling_Process_proto_depIdxs,
+ MessageInfos: file_ebpf_profiling_Process_proto_msgTypes,
+ }.Build()
+ File_ebpf_profiling_Process_proto = out.File
+ file_ebpf_profiling_Process_proto_rawDesc = nil
+ file_ebpf_profiling_Process_proto_goTypes = nil
+ file_ebpf_profiling_Process_proto_depIdxs = nil
+}
diff --git a/collect/ebpf/profiling/process/v3/Process_grpc.pb.go b/collect/ebpf/profiling/process/v3/Process_grpc.pb.go
new file mode 100644
index 0000000..4126be6
--- /dev/null
+++ b/collect/ebpf/profiling/process/v3/Process_grpc.pb.go
@@ -0,0 +1,142 @@
+// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
+
+package v3
+
+import (
+ context "context"
+ grpc "google.golang.org/grpc"
+ codes "google.golang.org/grpc/codes"
+ status "google.golang.org/grpc/status"
+ v3 "skywalking.apache.org/repo/goapi/collect/common/v3"
+)
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the grpc package it is being compiled against.
+// Requires gRPC-Go v1.32.0 or later.
+const _ = grpc.SupportPackageIsVersion7
+
+// EBPFProcessServiceClient is the client API for EBPFProcessService service.
+//
+// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
+type EBPFProcessServiceClient interface {
+ // Report discovered process in Rover
+ ReportProcesses(ctx context.Context, in *EBPFProcessReportList, opts ...grpc.CallOption) (*EBPFReportProcessDownstream, error)
+ // Keep the process alive in the backend.
+ KeepAlive(ctx context.Context, in *EBPFProcessPingPkgList, opts ...grpc.CallOption) (*v3.Commands, error)
+}
+
+type eBPFProcessServiceClient struct {
+ cc grpc.ClientConnInterface
+}
+
+func NewEBPFProcessServiceClient(cc grpc.ClientConnInterface) EBPFProcessServiceClient {
+ return &eBPFProcessServiceClient{cc}
+}
+
+func (c *eBPFProcessServiceClient) ReportProcesses(ctx context.Context, in *EBPFProcessReportList, opts ...grpc.CallOption) (*EBPFReportProcessDownstream, error) {
+ out := new(EBPFReportProcessDownstream)
+ err := c.cc.Invoke(ctx, "/skywalking.v3.EBPFProcessService/reportProcesses", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *eBPFProcessServiceClient) KeepAlive(ctx context.Context, in *EBPFProcessPingPkgList, opts ...grpc.CallOption) (*v3.Commands, error) {
+ out := new(v3.Commands)
+ err := c.cc.Invoke(ctx, "/skywalking.v3.EBPFProcessService/keepAlive", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+// EBPFProcessServiceServer is the server API for EBPFProcessService service.
+// All implementations must embed UnimplementedEBPFProcessServiceServer
+// for forward compatibility
+type EBPFProcessServiceServer interface {
+ // Report discovered process in Rover
+ ReportProcesses(context.Context, *EBPFProcessReportList) (*EBPFReportProcessDownstream, error)
+ // Keep the process alive in the backend.
+ KeepAlive(context.Context, *EBPFProcessPingPkgList) (*v3.Commands, error)
+ mustEmbedUnimplementedEBPFProcessServiceServer()
+}
+
+// UnimplementedEBPFProcessServiceServer must be embedded to have forward compatible implementations.
+type UnimplementedEBPFProcessServiceServer struct {
+}
+
+func (UnimplementedEBPFProcessServiceServer) ReportProcesses(context.Context, *EBPFProcessReportList) (*EBPFReportProcessDownstream, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method ReportProcesses not implemented")
+}
+func (UnimplementedEBPFProcessServiceServer) KeepAlive(context.Context, *EBPFProcessPingPkgList) (*v3.Commands, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method KeepAlive not implemented")
+}
+func (UnimplementedEBPFProcessServiceServer) mustEmbedUnimplementedEBPFProcessServiceServer() {}
+
+// UnsafeEBPFProcessServiceServer may be embedded to opt out of forward compatibility for this service.
+// Use of this interface is not recommended, as added methods to EBPFProcessServiceServer will
+// result in compilation errors.
+type UnsafeEBPFProcessServiceServer interface {
+ mustEmbedUnimplementedEBPFProcessServiceServer()
+}
+
+func RegisterEBPFProcessServiceServer(s grpc.ServiceRegistrar, srv EBPFProcessServiceServer) {
+ s.RegisterService(&EBPFProcessService_ServiceDesc, srv)
+}
+
+func _EBPFProcessService_ReportProcesses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(EBPFProcessReportList)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(EBPFProcessServiceServer).ReportProcesses(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/skywalking.v3.EBPFProcessService/reportProcesses",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(EBPFProcessServiceServer).ReportProcesses(ctx, req.(*EBPFProcessReportList))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _EBPFProcessService_KeepAlive_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(EBPFProcessPingPkgList)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(EBPFProcessServiceServer).KeepAlive(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/skywalking.v3.EBPFProcessService/keepAlive",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(EBPFProcessServiceServer).KeepAlive(ctx, req.(*EBPFProcessPingPkgList))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+// EBPFProcessService_ServiceDesc is the grpc.ServiceDesc for EBPFProcessService service.
+// It's only intended for direct use with grpc.RegisterService,
+// and not to be introspected or modified (even as a copy)
+var EBPFProcessService_ServiceDesc = grpc.ServiceDesc{
+ ServiceName: "skywalking.v3.EBPFProcessService",
+ HandlerType: (*EBPFProcessServiceServer)(nil),
+ Methods: []grpc.MethodDesc{
+ {
+ MethodName: "reportProcesses",
+ Handler: _EBPFProcessService_ReportProcesses_Handler,
+ },
+ {
+ MethodName: "keepAlive",
+ Handler: _EBPFProcessService_KeepAlive_Handler,
+ },
+ },
+ Streams: []grpc.StreamDesc{},
+ Metadata: "ebpf/profiling/Process.proto",
+}
diff --git a/collect/ebpf/profiling/v3/Profile.pb.go b/collect/ebpf/profiling/v3/Profile.pb.go
new file mode 100644
index 0000000..b5056f4
--- /dev/null
+++ b/collect/ebpf/profiling/v3/Profile.pb.go
@@ -0,0 +1,626 @@
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.26.0
+// protoc v3.14.0
+// source: ebpf/profiling/Profile.proto
+
+package v3
+
+import (
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ reflect "reflect"
+ v3 "skywalking.apache.org/repo/goapi/collect/common/v3"
+ sync "sync"
+)
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+type EBPFProfilingStackType int32
+
+const (
+ EBPFProfilingStackType_PROCESS_KERNEL_SPACE EBPFProfilingStackType = 0
+ EBPFProfilingStackType_PROCESS_USER_SPACE EBPFProfilingStackType = 1
+)
+
+// Enum value maps for EBPFProfilingStackType.
+var (
+ EBPFProfilingStackType_name = map[int32]string{
+ 0: "PROCESS_KERNEL_SPACE",
+ 1: "PROCESS_USER_SPACE",
+ }
+ EBPFProfilingStackType_value = map[string]int32{
+ "PROCESS_KERNEL_SPACE": 0,
+ "PROCESS_USER_SPACE": 1,
+ }
+)
+
+func (x EBPFProfilingStackType) Enum() *EBPFProfilingStackType {
+ p := new(EBPFProfilingStackType)
+ *p = x
+ return p
+}
+
+func (x EBPFProfilingStackType) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (EBPFProfilingStackType) Descriptor() protoreflect.EnumDescriptor {
+ return file_ebpf_profiling_Profile_proto_enumTypes[0].Descriptor()
+}
+
+func (EBPFProfilingStackType) Type() protoreflect.EnumType {
+ return &file_ebpf_profiling_Profile_proto_enumTypes[0]
+}
+
+func (x EBPFProfilingStackType) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use EBPFProfilingStackType.Descriptor instead.
+func (EBPFProfilingStackType) EnumDescriptor() ([]byte, []int) {
+ return file_ebpf_profiling_Profile_proto_rawDescGZIP(), []int{0}
+}
+
+type EBPFProfilingTaskQuery struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // rover instance id
+ RoverInstanceId string `protobuf:"bytes,1,opt,name=roverInstanceId,proto3" json:"roverInstanceId,omitempty"`
+ // latest task update time
+ LatestUpdateTime int64 `protobuf:"varint,2,opt,name=latestUpdateTime,proto3" json:"latestUpdateTime,omitempty"`
+}
+
+func (x *EBPFProfilingTaskQuery) Reset() {
+ *x = EBPFProfilingTaskQuery{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_ebpf_profiling_Profile_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *EBPFProfilingTaskQuery) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*EBPFProfilingTaskQuery) ProtoMessage() {}
+
+func (x *EBPFProfilingTaskQuery) ProtoReflect() protoreflect.Message {
+ mi := &file_ebpf_profiling_Profile_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use EBPFProfilingTaskQuery.ProtoReflect.Descriptor instead.
+func (*EBPFProfilingTaskQuery) Descriptor() ([]byte, []int) {
+ return file_ebpf_profiling_Profile_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *EBPFProfilingTaskQuery) GetRoverInstanceId() string {
+ if x != nil {
+ return x.RoverInstanceId
+ }
+ return ""
+}
+
+func (x *EBPFProfilingTaskQuery) GetLatestUpdateTime() int64 {
+ if x != nil {
+ return x.LatestUpdateTime
+ }
+ return 0
+}
+
+type EBPFProfilingData struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // task metadata
+ Task *EBPFProfilingTaskMetadata `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
+ // profiling data
+ //
+ // Types that are assignable to Profiling:
+ // *EBPFProfilingData_OnCPU
+ Profiling isEBPFProfilingData_Profiling `protobuf_oneof:"profiling"`
+}
+
+func (x *EBPFProfilingData) Reset() {
+ *x = EBPFProfilingData{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_ebpf_profiling_Profile_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *EBPFProfilingData) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*EBPFProfilingData) ProtoMessage() {}
+
+func (x *EBPFProfilingData) ProtoReflect() protoreflect.Message {
+ mi := &file_ebpf_profiling_Profile_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use EBPFProfilingData.ProtoReflect.Descriptor instead.
+func (*EBPFProfilingData) Descriptor() ([]byte, []int) {
+ return file_ebpf_profiling_Profile_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *EBPFProfilingData) GetTask() *EBPFProfilingTaskMetadata {
+ if x != nil {
+ return x.Task
+ }
+ return nil
+}
+
+func (m *EBPFProfilingData) GetProfiling() isEBPFProfilingData_Profiling {
+ if m != nil {
+ return m.Profiling
+ }
+ return nil
+}
+
+func (x *EBPFProfilingData) GetOnCPU() *EBPFOnCPUProfiling {
+ if x, ok := x.GetProfiling().(*EBPFProfilingData_OnCPU); ok {
+ return x.OnCPU
+ }
+ return nil
+}
+
+type isEBPFProfilingData_Profiling interface {
+ isEBPFProfilingData_Profiling()
+}
+
+type EBPFProfilingData_OnCPU struct {
+ OnCPU *EBPFOnCPUProfiling `protobuf:"bytes,2,opt,name=onCPU,proto3,oneof"`
+}
+
+func (*EBPFProfilingData_OnCPU) isEBPFProfilingData_Profiling() {}
+
+type EBPFProfilingTaskMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // profiling task id
+ TaskId string `protobuf:"bytes,1,opt,name=taskId,proto3" json:"taskId,omitempty"`
+ // profiling process id
+ ProcessId string `protobuf:"bytes,2,opt,name=processId,proto3" json:"processId,omitempty"`
+ // the start time of this profiling process
+ ProfilingStartTime int64 `protobuf:"varint,3,opt,name=profilingStartTime,proto3" json:"profilingStartTime,omitempty"`
+ // report time
+ CurrentTime int64 `protobuf:"varint,4,opt,name=currentTime,proto3" json:"currentTime,omitempty"`
+}
+
+func (x *EBPFProfilingTaskMetadata) Reset() {
+ *x = EBPFProfilingTaskMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_ebpf_profiling_Profile_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *EBPFProfilingTaskMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*EBPFProfilingTaskMetadata) ProtoMessage() {}
+
+func (x *EBPFProfilingTaskMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_ebpf_profiling_Profile_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use EBPFProfilingTaskMetadata.ProtoReflect.Descriptor instead.
+func (*EBPFProfilingTaskMetadata) Descriptor() ([]byte, []int) {
+ return file_ebpf_profiling_Profile_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *EBPFProfilingTaskMetadata) GetTaskId() string {
+ if x != nil {
+ return x.TaskId
+ }
+ return ""
+}
+
+func (x *EBPFProfilingTaskMetadata) GetProcessId() string {
+ if x != nil {
+ return x.ProcessId
+ }
+ return ""
+}
+
+func (x *EBPFProfilingTaskMetadata) GetProfilingStartTime() int64 {
+ if x != nil {
+ return x.ProfilingStartTime
+ }
+ return 0
+}
+
+func (x *EBPFProfilingTaskMetadata) GetCurrentTime() int64 {
+ if x != nil {
+ return x.CurrentTime
+ }
+ return 0
+}
+
+type EBPFProfilingStackMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // stack type
+ StackType EBPFProfilingStackType `protobuf:"varint,1,opt,name=stackType,proto3,enum=skywalking.v3.EBPFProfilingStackType" json:"stackType,omitempty"`
+ // stack id from kernel provide
+ StackId int32 `protobuf:"varint,2,opt,name=stackId,proto3" json:"stackId,omitempty"`
+ // stack symbols
+ StackSymbols []string `protobuf:"bytes,3,rep,name=stackSymbols,proto3" json:"stackSymbols,omitempty"`
+}
+
+func (x *EBPFProfilingStackMetadata) Reset() {
+ *x = EBPFProfilingStackMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_ebpf_profiling_Profile_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *EBPFProfilingStackMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*EBPFProfilingStackMetadata) ProtoMessage() {}
+
+func (x *EBPFProfilingStackMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_ebpf_profiling_Profile_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use EBPFProfilingStackMetadata.ProtoReflect.Descriptor instead.
+func (*EBPFProfilingStackMetadata) Descriptor() ([]byte, []int) {
+ return file_ebpf_profiling_Profile_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *EBPFProfilingStackMetadata) GetStackType() EBPFProfilingStackType {
+ if x != nil {
+ return x.StackType
+ }
+ return EBPFProfilingStackType_PROCESS_KERNEL_SPACE
+}
+
+func (x *EBPFProfilingStackMetadata) GetStackId() int32 {
+ if x != nil {
+ return x.StackId
+ }
+ return 0
+}
+
+func (x *EBPFProfilingStackMetadata) GetStackSymbols() []string {
+ if x != nil {
+ return x.StackSymbols
+ }
+ return nil
+}
+
+type EBPFOnCPUProfiling struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // stack data in one task(thread)
+ Stacks []*EBPFProfilingStackMetadata `protobuf:"bytes,1,rep,name=stacks,proto3" json:"stacks,omitempty"`
+ // stack counts
+ DumpCount int32 `protobuf:"varint,2,opt,name=dumpCount,proto3" json:"dumpCount,omitempty"`
+}
+
+func (x *EBPFOnCPUProfiling) Reset() {
+ *x = EBPFOnCPUProfiling{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_ebpf_profiling_Profile_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *EBPFOnCPUProfiling) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*EBPFOnCPUProfiling) ProtoMessage() {}
+
+func (x *EBPFOnCPUProfiling) ProtoReflect() protoreflect.Message {
+ mi := &file_ebpf_profiling_Profile_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use EBPFOnCPUProfiling.ProtoReflect.Descriptor instead.
+func (*EBPFOnCPUProfiling) Descriptor() ([]byte, []int) {
+ return file_ebpf_profiling_Profile_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *EBPFOnCPUProfiling) GetStacks() []*EBPFProfilingStackMetadata {
+ if x != nil {
+ return x.Stacks
+ }
+ return nil
+}
+
+func (x *EBPFOnCPUProfiling) GetDumpCount() int32 {
+ if x != nil {
+ return x.DumpCount
+ }
+ return 0
+}
+
+var File_ebpf_profiling_Profile_proto protoreflect.FileDescriptor
+
+var file_ebpf_profiling_Profile_proto_rawDesc = []byte{
+ 0x0a, 0x1c, 0x65, 0x62, 0x70, 0x66, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67,
+ 0x2f, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d,
+ 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x1a, 0x13, 0x63,
+ 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x22, 0x6e, 0x0a, 0x16, 0x45, 0x42, 0x50, 0x46, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c,
+ 0x69, 0x6e, 0x67, 0x54, 0x61, 0x73, 0x6b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x28, 0x0a, 0x0f,
+ 0x72, 0x6f, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x6f, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x73, 0x74,
+ 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x10, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74,
+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03,
+ 0x52, 0x10, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69,
+ 0x6d, 0x65, 0x22, 0x99, 0x01, 0x0a, 0x11, 0x45, 0x42, 0x50, 0x46, 0x50, 0x72, 0x6f, 0x66, 0x69,
+ 0x6c, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x3c, 0x0a, 0x04, 0x74, 0x61, 0x73, 0x6b,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b,
+ 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x45, 0x42, 0x50, 0x46, 0x50, 0x72, 0x6f, 0x66, 0x69,
+ 0x6c, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
+ 0x52, 0x04, 0x74, 0x61, 0x73, 0x6b, 0x12, 0x39, 0x0a, 0x05, 0x6f, 0x6e, 0x43, 0x50, 0x55, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69,
+ 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x45, 0x42, 0x50, 0x46, 0x4f, 0x6e, 0x43, 0x50, 0x55, 0x50,
+ 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x05, 0x6f, 0x6e, 0x43, 0x50,
+ 0x55, 0x42, 0x0b, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x22, 0xa3,
+ 0x01, 0x0a, 0x19, 0x45, 0x42, 0x50, 0x46, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67,
+ 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06,
+ 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61,
+ 0x73, 0x6b, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x49,
+ 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73,
+ 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x12, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x53,
+ 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12,
+ 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69,
+ 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d,
+ 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74,
+ 0x54, 0x69, 0x6d, 0x65, 0x22, 0x9f, 0x01, 0x0a, 0x1a, 0x45, 0x42, 0x50, 0x46, 0x50, 0x72, 0x6f,
+ 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x64,
+ 0x61, 0x74, 0x61, 0x12, 0x43, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b,
+ 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x45, 0x42, 0x50, 0x46, 0x50, 0x72, 0x6f, 0x66, 0x69,
+ 0x6c, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x73,
+ 0x74, 0x61, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x74, 0x61, 0x63,
+ 0x6b, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x74, 0x61, 0x63, 0x6b,
+ 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x53, 0x79, 0x6d, 0x62, 0x6f,
+ 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x53,
+ 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x73, 0x22, 0x75, 0x0a, 0x12, 0x45, 0x42, 0x50, 0x46, 0x4f, 0x6e,
+ 0x43, 0x50, 0x55, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x12, 0x41, 0x0a, 0x06,
+ 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73,
+ 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x45, 0x42, 0x50,
+ 0x46, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x4d,
+ 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x06, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x12,
+ 0x1c, 0x0a, 0x09, 0x64, 0x75, 0x6d, 0x70, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01,
+ 0x28, 0x05, 0x52, 0x09, 0x64, 0x75, 0x6d, 0x70, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x2a, 0x4a, 0x0a,
+ 0x16, 0x45, 0x42, 0x50, 0x46, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x53, 0x74,
+ 0x61, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x14, 0x50, 0x52, 0x4f, 0x43, 0x45,
+ 0x53, 0x53, 0x5f, 0x4b, 0x45, 0x52, 0x4e, 0x45, 0x4c, 0x5f, 0x53, 0x50, 0x41, 0x43, 0x45, 0x10,
+ 0x00, 0x12, 0x16, 0x0a, 0x12, 0x50, 0x52, 0x4f, 0x43, 0x45, 0x53, 0x53, 0x5f, 0x55, 0x53, 0x45,
+ 0x52, 0x5f, 0x53, 0x50, 0x41, 0x43, 0x45, 0x10, 0x01, 0x32, 0xbd, 0x01, 0x0a, 0x14, 0x45, 0x42,
+ 0x50, 0x46, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x12, 0x4e, 0x0a, 0x0a, 0x71, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x73,
+ 0x12, 0x25, 0x2e, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33,
+ 0x2e, 0x45, 0x42, 0x50, 0x46, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x54, 0x61,
+ 0x73, 0x6b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x17, 0x2e, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c,
+ 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73,
+ 0x22, 0x00, 0x12, 0x55, 0x0a, 0x14, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f,
+ 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x20, 0x2e, 0x73, 0x6b, 0x79,
+ 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x45, 0x42, 0x50, 0x46, 0x50,
+ 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, 0x1a, 0x17, 0x2e, 0x73,
+ 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x6f, 0x6d,
+ 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x22, 0x00, 0x28, 0x01, 0x42, 0x73, 0x0a, 0x33, 0x6f, 0x72, 0x67,
+ 0x2e, 0x61, 0x70, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69,
+ 0x6e, 0x67, 0x2e, 0x61, 0x70, 0x6d, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65,
+ 0x62, 0x70, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33,
+ 0x50, 0x01, 0x5a, 0x3a, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x61,
+ 0x70, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x2f, 0x67,
+ 0x6f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x2f, 0x65, 0x62, 0x70,
+ 0x66, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x33, 0x62, 0x06,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_ebpf_profiling_Profile_proto_rawDescOnce sync.Once
+ file_ebpf_profiling_Profile_proto_rawDescData = file_ebpf_profiling_Profile_proto_rawDesc
+)
+
+func file_ebpf_profiling_Profile_proto_rawDescGZIP() []byte {
+ file_ebpf_profiling_Profile_proto_rawDescOnce.Do(func() {
+ file_ebpf_profiling_Profile_proto_rawDescData = protoimpl.X.CompressGZIP(file_ebpf_profiling_Profile_proto_rawDescData)
+ })
+ return file_ebpf_profiling_Profile_proto_rawDescData
+}
+
+var file_ebpf_profiling_Profile_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
+var file_ebpf_profiling_Profile_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
+var file_ebpf_profiling_Profile_proto_goTypes = []interface{}{
+ (EBPFProfilingStackType)(0), // 0: skywalking.v3.EBPFProfilingStackType
+ (*EBPFProfilingTaskQuery)(nil), // 1: skywalking.v3.EBPFProfilingTaskQuery
+ (*EBPFProfilingData)(nil), // 2: skywalking.v3.EBPFProfilingData
+ (*EBPFProfilingTaskMetadata)(nil), // 3: skywalking.v3.EBPFProfilingTaskMetadata
+ (*EBPFProfilingStackMetadata)(nil), // 4: skywalking.v3.EBPFProfilingStackMetadata
+ (*EBPFOnCPUProfiling)(nil), // 5: skywalking.v3.EBPFOnCPUProfiling
+ (*v3.Commands)(nil), // 6: skywalking.v3.Commands
+}
+var file_ebpf_profiling_Profile_proto_depIdxs = []int32{
+ 3, // 0: skywalking.v3.EBPFProfilingData.task:type_name -> skywalking.v3.EBPFProfilingTaskMetadata
+ 5, // 1: skywalking.v3.EBPFProfilingData.onCPU:type_name -> skywalking.v3.EBPFOnCPUProfiling
+ 0, // 2: skywalking.v3.EBPFProfilingStackMetadata.stackType:type_name -> skywalking.v3.EBPFProfilingStackType
+ 4, // 3: skywalking.v3.EBPFOnCPUProfiling.stacks:type_name -> skywalking.v3.EBPFProfilingStackMetadata
+ 1, // 4: skywalking.v3.EBPFProfilingService.queryTasks:input_type -> skywalking.v3.EBPFProfilingTaskQuery
+ 2, // 5: skywalking.v3.EBPFProfilingService.collectProfilingData:input_type -> skywalking.v3.EBPFProfilingData
+ 6, // 6: skywalking.v3.EBPFProfilingService.queryTasks:output_type -> skywalking.v3.Commands
+ 6, // 7: skywalking.v3.EBPFProfilingService.collectProfilingData:output_type -> skywalking.v3.Commands
+ 6, // [6:8] is the sub-list for method output_type
+ 4, // [4:6] is the sub-list for method input_type
+ 4, // [4:4] is the sub-list for extension type_name
+ 4, // [4:4] is the sub-list for extension extendee
+ 0, // [0:4] is the sub-list for field type_name
+}
+
+func init() { file_ebpf_profiling_Profile_proto_init() }
+func file_ebpf_profiling_Profile_proto_init() {
+ if File_ebpf_profiling_Profile_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_ebpf_profiling_Profile_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*EBPFProfilingTaskQuery); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_ebpf_profiling_Profile_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*EBPFProfilingData); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_ebpf_profiling_Profile_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*EBPFProfilingTaskMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_ebpf_profiling_Profile_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*EBPFProfilingStackMetadata); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_ebpf_profiling_Profile_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*EBPFOnCPUProfiling); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ file_ebpf_profiling_Profile_proto_msgTypes[1].OneofWrappers = []interface{}{
+ (*EBPFProfilingData_OnCPU)(nil),
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_ebpf_profiling_Profile_proto_rawDesc,
+ NumEnums: 1,
+ NumMessages: 5,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_ebpf_profiling_Profile_proto_goTypes,
+ DependencyIndexes: file_ebpf_profiling_Profile_proto_depIdxs,
+ EnumInfos: file_ebpf_profiling_Profile_proto_enumTypes,
+ MessageInfos: file_ebpf_profiling_Profile_proto_msgTypes,
+ }.Build()
+ File_ebpf_profiling_Profile_proto = out.File
+ file_ebpf_profiling_Profile_proto_rawDesc = nil
+ file_ebpf_profiling_Profile_proto_goTypes = nil
+ file_ebpf_profiling_Profile_proto_depIdxs = nil
+}
diff --git a/collect/ebpf/profiling/v3/Profile_grpc.pb.go b/collect/ebpf/profiling/v3/Profile_grpc.pb.go
new file mode 100644
index 0000000..2fdcf01
--- /dev/null
+++ b/collect/ebpf/profiling/v3/Profile_grpc.pb.go
@@ -0,0 +1,177 @@
+// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
+
+package v3
+
+import (
+ context "context"
+ grpc "google.golang.org/grpc"
+ codes "google.golang.org/grpc/codes"
+ status "google.golang.org/grpc/status"
+ v3 "skywalking.apache.org/repo/goapi/collect/common/v3"
+)
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the grpc package it is being compiled against.
+// Requires gRPC-Go v1.32.0 or later.
+const _ = grpc.SupportPackageIsVersion7
+
+// EBPFProfilingServiceClient is the client API for EBPFProfilingService service.
+//
+// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
+type EBPFProfilingServiceClient interface {
+ // Query profiling (start or stop) tasks
+ QueryTasks(ctx context.Context, in *EBPFProfilingTaskQuery, opts ...grpc.CallOption) (*v3.Commands, error)
+ // collect profiling data
+ CollectProfilingData(ctx context.Context, opts ...grpc.CallOption) (EBPFProfilingService_CollectProfilingDataClient, error)
+}
+
+type eBPFProfilingServiceClient struct {
+ cc grpc.ClientConnInterface
+}
+
+func NewEBPFProfilingServiceClient(cc grpc.ClientConnInterface) EBPFProfilingServiceClient {
+ return &eBPFProfilingServiceClient{cc}
+}
+
+func (c *eBPFProfilingServiceClient) QueryTasks(ctx context.Context, in *EBPFProfilingTaskQuery, opts ...grpc.CallOption) (*v3.Commands, error) {
+ out := new(v3.Commands)
+ err := c.cc.Invoke(ctx, "/skywalking.v3.EBPFProfilingService/queryTasks", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *eBPFProfilingServiceClient) CollectProfilingData(ctx context.Context, opts ...grpc.CallOption) (EBPFProfilingService_CollectProfilingDataClient, error) {
+ stream, err := c.cc.NewStream(ctx, &EBPFProfilingService_ServiceDesc.Streams[0], "/skywalking.v3.EBPFProfilingService/collectProfilingData", opts...)
+ if err != nil {
+ return nil, err
+ }
+ x := &eBPFProfilingServiceCollectProfilingDataClient{stream}
+ return x, nil
+}
+
+type EBPFProfilingService_CollectProfilingDataClient interface {
+ Send(*EBPFProfilingData) error
+ CloseAndRecv() (*v3.Commands, error)
+ grpc.ClientStream
+}
+
+type eBPFProfilingServiceCollectProfilingDataClient struct {
+ grpc.ClientStream
+}
+
+func (x *eBPFProfilingServiceCollectProfilingDataClient) Send(m *EBPFProfilingData) error {
+ return x.ClientStream.SendMsg(m)
+}
+
+func (x *eBPFProfilingServiceCollectProfilingDataClient) CloseAndRecv() (*v3.Commands, error) {
+ if err := x.ClientStream.CloseSend(); err != nil {
+ return nil, err
+ }
+ m := new(v3.Commands)
+ if err := x.ClientStream.RecvMsg(m); err != nil {
+ return nil, err
+ }
+ return m, nil
+}
+
+// EBPFProfilingServiceServer is the server API for EBPFProfilingService service.
+// All implementations must embed UnimplementedEBPFProfilingServiceServer
+// for forward compatibility
+type EBPFProfilingServiceServer interface {
+ // Query profiling (start or stop) tasks
+ QueryTasks(context.Context, *EBPFProfilingTaskQuery) (*v3.Commands, error)
+ // collect profiling data
+ CollectProfilingData(EBPFProfilingService_CollectProfilingDataServer) error
+ mustEmbedUnimplementedEBPFProfilingServiceServer()
+}
+
+// UnimplementedEBPFProfilingServiceServer must be embedded to have forward compatible implementations.
+type UnimplementedEBPFProfilingServiceServer struct {
+}
+
+func (UnimplementedEBPFProfilingServiceServer) QueryTasks(context.Context, *EBPFProfilingTaskQuery) (*v3.Commands, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method QueryTasks not implemented")
+}
+func (UnimplementedEBPFProfilingServiceServer) CollectProfilingData(EBPFProfilingService_CollectProfilingDataServer) error {
+ return status.Errorf(codes.Unimplemented, "method CollectProfilingData not implemented")
+}
+func (UnimplementedEBPFProfilingServiceServer) mustEmbedUnimplementedEBPFProfilingServiceServer() {}
+
+// UnsafeEBPFProfilingServiceServer may be embedded to opt out of forward compatibility for this service.
+// Use of this interface is not recommended, as added methods to EBPFProfilingServiceServer will
+// result in compilation errors.
+type UnsafeEBPFProfilingServiceServer interface {
+ mustEmbedUnimplementedEBPFProfilingServiceServer()
+}
+
+func RegisterEBPFProfilingServiceServer(s grpc.ServiceRegistrar, srv EBPFProfilingServiceServer) {
+ s.RegisterService(&EBPFProfilingService_ServiceDesc, srv)
+}
+
+func _EBPFProfilingService_QueryTasks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(EBPFProfilingTaskQuery)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(EBPFProfilingServiceServer).QueryTasks(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/skywalking.v3.EBPFProfilingService/queryTasks",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(EBPFProfilingServiceServer).QueryTasks(ctx, req.(*EBPFProfilingTaskQuery))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _EBPFProfilingService_CollectProfilingData_Handler(srv interface{}, stream grpc.ServerStream) error {
+ return srv.(EBPFProfilingServiceServer).CollectProfilingData(&eBPFProfilingServiceCollectProfilingDataServer{stream})
+}
+
+type EBPFProfilingService_CollectProfilingDataServer interface {
+ SendAndClose(*v3.Commands) error
+ Recv() (*EBPFProfilingData, error)
+ grpc.ServerStream
+}
+
+type eBPFProfilingServiceCollectProfilingDataServer struct {
+ grpc.ServerStream
+}
+
+func (x *eBPFProfilingServiceCollectProfilingDataServer) SendAndClose(m *v3.Commands) error {
+ return x.ServerStream.SendMsg(m)
+}
+
+func (x *eBPFProfilingServiceCollectProfilingDataServer) Recv() (*EBPFProfilingData, error) {
+ m := new(EBPFProfilingData)
+ if err := x.ServerStream.RecvMsg(m); err != nil {
+ return nil, err
+ }
+ return m, nil
+}
+
+// EBPFProfilingService_ServiceDesc is the grpc.ServiceDesc for EBPFProfilingService service.
+// It's only intended for direct use with grpc.RegisterService,
+// and not to be introspected or modified (even as a copy)
+var EBPFProfilingService_ServiceDesc = grpc.ServiceDesc{
+ ServiceName: "skywalking.v3.EBPFProfilingService",
+ HandlerType: (*EBPFProfilingServiceServer)(nil),
+ Methods: []grpc.MethodDesc{
+ {
+ MethodName: "queryTasks",
+ Handler: _EBPFProfilingService_QueryTasks_Handler,
+ },
+ },
+ Streams: []grpc.StreamDesc{
+ {
+ StreamName: "collectProfilingData",
+ Handler: _EBPFProfilingService_CollectProfilingData_Handler,
+ ClientStreams: true,
+ },
+ },
+ Metadata: "ebpf/profiling/Profile.proto",
+}
diff --git a/dependencies.sh b/dependencies.sh
index a192ce1..77feb24 100644
--- a/dependencies.sh
+++ b/dependencies.sh
@@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.
-export COLLECT_PROTOCOL_SHA=667134d08ffd63122062971d320c34e7e10a7c9e
+export COLLECT_PROTOCOL_SHA=b89d47d747aaeb7c52924f125779cb52bedf944d
export QUERY_PROTOCOL_SHA=d6e294735ab43b2fa9e70b11c91d85268591dec0
export ENVOY_SERVICE_PROTOCOL_SHA=533b32f1b390a3a88ec2008d0561e07c926d879a
export XDS_SERVICE_PROTOCOL_SHA=25de7278fc844d392d607214f36dbedf50f167ee
diff --git a/scripts/update_sniff_protocol.sh b/scripts/update_sniff_protocol.sh
index ab706db..f391a9d 100644
--- a/scripts/update_sniff_protocol.sh
+++ b/scripts/update_sniff_protocol.sh
@@ -68,7 +68,8 @@ function generateCodes(){
--proto_path="$PROTOCOLDIR"/skywalking-collect \
--go_out="$BASEDIR" \
--go-grpc_out="$BASEDIR" \
- "$PROTOCOLDIR"/skywalking-collect/*/*.proto
+ "$PROTOCOLDIR"/skywalking-collect/*/*.proto \
+ "$PROTOCOLDIR"/skywalking-collect/*/*/*.proto
"$BASEDIR"/scripts/protoc.sh \
--proto_path="$PROTOCOLDIR"/skywalking-collect \