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 69485e1  Sync query and collect protocol for service level eBPF 
Profiling (#32)
69485e1 is described below

commit 69485e13dbb3c28f3775fcb18d26dd55b9b14bd7
Author: mrproliu <[email protected]>
AuthorDate: Thu Apr 7 21:04:04 2022 +0800

    Sync query and collect protocol for service level eBPF Profiling (#32)
---
 collect/ebpf/profiling/process/v3/Process.pb.go | 135 +++++++++++++-----------
 dependencies.sh                                 |   4 +-
 query/schema.go                                 |  88 ++++-----------
 3 files changed, 95 insertions(+), 132 deletions(-)

diff --git a/collect/ebpf/profiling/process/v3/Process.pb.go 
b/collect/ebpf/profiling/process/v3/Process.pb.go
index 4b130ff..3e4f242 100644
--- a/collect/ebpf/profiling/process/v3/Process.pb.go
+++ b/collect/ebpf/profiling/process/v3/Process.pb.go
@@ -266,6 +266,8 @@ type EBPFProcessEntityMetadata struct {
        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"`
+       // Process labels for aggregate from service
+       Labels []string `protobuf:"bytes,5,rep,name=labels,proto3" 
json:"labels,omitempty"`
 }
 
 func (x *EBPFProcessEntityMetadata) Reset() {
@@ -328,6 +330,13 @@ func (x *EBPFProcessEntityMetadata) GetProcessName() 
string {
        return ""
 }
 
+func (x *EBPFProcessEntityMetadata) GetLabels() []string {
+       if x != nil {
+               return x.Labels
+       }
+       return nil
+}
+
 // [WIP] Kubernetes process metadata
 type EBPFKubernetesProcessMetadata struct {
        state         protoimpl.MessageState
@@ -722,7 +731,7 @@ var file_ebpf_profiling_Process_proto_rawDesc = []byte{
        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,
+       0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x70, 0x69, 
0x64, 0x22, 0xb1, 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,
@@ -732,68 +741,70 @@ var file_ebpf_profiling_Process_proto_rawDesc = []byte{
        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, 0x66, 0x0a,
-       0x12, 0x45, 0x42, 0x50, 0x46, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 
0x50, 0x69, 0x6e, 0x67,
-       0x50, 0x6b, 0x67, 0x12, 0x50, 0x0a, 0x0e, 0x65, 0x6e, 0x74, 0x69, 0x74, 
0x79, 0x4d, 0x65, 0x74,
-       0x61, 0x64, 0x61, 0x74, 0x61, 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, 0x0e, 0x65, 0x6e, 0x74, 0x69, 0x74, 
0x79, 0x4d, 0x65, 0x74,
-       0x61, 0x64, 0x61, 0x74, 0x61, 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,
+       0x6f, 0x63, 0x65, 0x73, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 
0x06, 0x6c, 0x61, 0x62,
+       0x65, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x6c, 
0x61, 0x62, 0x65, 0x6c,
+       0x73, 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, 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,
+       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, 0x66, 0x0a, 0x12, 0x45, 0x42, 0x50, 
0x46, 0x50, 0x72, 0x6f,
+       0x63, 0x65, 0x73, 0x73, 0x50, 0x69, 0x6e, 0x67, 0x50, 0x6b, 0x67, 0x12, 
0x50, 0x0a, 0x0e, 0x65,
+       0x6e, 0x74, 0x69, 0x74, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 
0x61, 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, 0x0e, 0x65,
+       0x6e, 0x74, 0x69, 0x74, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 
0x61, 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 (
diff --git a/dependencies.sh b/dependencies.sh
index f33e02e..38050b3 100644
--- a/dependencies.sh
+++ b/dependencies.sh
@@ -17,8 +17,8 @@
 # specific language governing permissions and limitations
 # under the License.
 
-export COLLECT_PROTOCOL_SHA=6864c6c67b0d77890cd22492161985c43620bc71
-export QUERY_PROTOCOL_SHA=673439780259838a55a5c1490029eda84556eeee
+export COLLECT_PROTOCOL_SHA=2981c652ca6c5125d71bb104dbe441abe3d8a2d4
+export QUERY_PROTOCOL_SHA=50fbae4f53be6ab5d153c2a0e84a68a7bc2d0d1e
 export ENVOY_SERVICE_PROTOCOL_SHA=533b32f1b390a3a88ec2008d0561e07c926d879a
 export XDS_SERVICE_PROTOCOL_SHA=25de7278fc844d392d607214f36dbedf50f167ee
 export PROTOC_VALIDATE_SHA=v0.6.1
diff --git a/query/schema.go b/query/schema.go
index b7951aa..6fe2dc7 100644
--- a/query/schema.go
+++ b/query/schema.go
@@ -125,11 +125,6 @@ type EBPFProfilingAnalyzeTimeRange struct {
        End   int64 `json:"end"`
 }
 
-type EBPFProfilingProcessFinder struct {
-       FinderType EBPFProfilingProcessFinderType `json:"finderType"`
-       ProcessID  *string                        `json:"processId"`
-}
-
 type EBPFProfilingSchedule struct {
        ScheduleID string   `json:"scheduleId"`
        TaskID     string   `json:"taskId"`
@@ -147,26 +142,15 @@ type EBPFProfilingStackElement struct {
 }
 
 type EBPFProfilingTask struct {
-       TaskID               string                         `json:"taskId"`
-       ProcessFinderType    EBPFProfilingProcessFinderType 
`json:"processFinderType"`
-       ServiceID            *string                        `json:"serviceId"`
-       ServiceName          *string                        `json:"serviceName"`
-       InstanceID           *string                        `json:"instanceId"`
-       InstanceName         *string                        
`json:"instanceName"`
-       ProcessID            *string                        `json:"processId"`
-       ProcessName          *string                        `json:"processName"`
-       TaskStartTime        int64                          
`json:"taskStartTime"`
-       TriggerType          EBPFProfilingTriggerType       `json:"triggerType"`
-       FixedTriggerDuration *int64                         
`json:"fixedTriggerDuration"`
-       TargetType           EBPFProfilingTargetType        `json:"targetType"`
-       CreateTime           int64                          `json:"createTime"`
-}
-
-type EBPFProfilingTaskCondition struct {
-       FinderType *EBPFProfilingProcessFinderType `json:"finderType"`
-       ServiceID  *string                         `json:"serviceId"`
-       InstanceID *string                         `json:"instanceId"`
-       ProcessID  *string                         `json:"processId"`
+       TaskID               string                   `json:"taskId"`
+       ServiceID            string                   `json:"serviceId"`
+       ServiceName          string                   `json:"serviceName"`
+       ProcessLabels        []string                 `json:"processLabels"`
+       TaskStartTime        int64                    `json:"taskStartTime"`
+       TriggerType          EBPFProfilingTriggerType `json:"triggerType"`
+       FixedTriggerDuration *int64                   
`json:"fixedTriggerDuration"`
+       TargetType           EBPFProfilingTargetType  `json:"targetType"`
+       CreateTime           int64                    `json:"createTime"`
 }
 
 type EBPFProfilingTaskCreationResult struct {
@@ -176,10 +160,16 @@ type EBPFProfilingTaskCreationResult struct {
 }
 
 type EBPFProfilingTaskFixedTimeCreationRequest struct {
-       ProcessFinder *EBPFProfilingProcessFinder `json:"processFinder"`
-       StartTime     int64                       `json:"startTime"`
-       Duration      int                         `json:"duration"`
-       TargetType    EBPFProfilingTargetType     `json:"targetType"`
+       ServiceID     string                  `json:"serviceId"`
+       ProcessLabels []string                `json:"processLabels"`
+       StartTime     int64                   `json:"startTime"`
+       Duration      int                     `json:"duration"`
+       TargetType    EBPFProfilingTargetType `json:"targetType"`
+}
+
+type EBPFProfilingTaskPrepare struct {
+       CouldProfiling bool     `json:"couldProfiling"`
+       ProcessLabels  []string `json:"processLabels"`
 }
 
 type EBPFProfilingTree struct {
@@ -387,6 +377,7 @@ type Process struct {
        AgentID      string       `json:"agentId"`
        DetectType   string       `json:"detectType"`
        Attributes   []*Attribute `json:"attributes"`
+       Labels       []string     `json:"labels"`
 }
 
 type ProfileAnalyzation struct {
@@ -717,45 +708,6 @@ func (e DetectPoint) MarshalGQL(w io.Writer) {
        fmt.Fprint(w, strconv.Quote(e.String()))
 }
 
-type EBPFProfilingProcessFinderType string
-
-const (
-       EBPFProfilingProcessFinderTypeProcessID EBPFProfilingProcessFinderType 
= "PROCESS_ID"
-)
-
-var AllEBPFProfilingProcessFinderType = []EBPFProfilingProcessFinderType{
-       EBPFProfilingProcessFinderTypeProcessID,
-}
-
-func (e EBPFProfilingProcessFinderType) IsValid() bool {
-       switch e {
-       case EBPFProfilingProcessFinderTypeProcessID:
-               return true
-       }
-       return false
-}
-
-func (e EBPFProfilingProcessFinderType) String() string {
-       return string(e)
-}
-
-func (e *EBPFProfilingProcessFinderType) UnmarshalGQL(v interface{}) error {
-       str, ok := v.(string)
-       if !ok {
-               return fmt.Errorf("enums must be strings")
-       }
-
-       *e = EBPFProfilingProcessFinderType(str)
-       if !e.IsValid() {
-               return fmt.Errorf("%s is not a valid 
EBPFProfilingProcessFinderType", str)
-       }
-       return nil
-}
-
-func (e EBPFProfilingProcessFinderType) MarshalGQL(w io.Writer) {
-       fmt.Fprint(w, strconv.Quote(e.String()))
-}
-
 type EBPFProfilingStackType string
 
 const (

Reply via email to