瀏覽代碼

Fixed #TSB-1234 test

ilucky.si 2 年之前
父節點
當前提交
5c572177c8
共有 1 個文件被更改,包括 6 次插入5 次删除
  1. 6 5
      ebpftracer/tls.go

+ 6 - 5
ebpftracer/tls.go

@@ -119,15 +119,15 @@ func (t *Tracer) AttachGoTlsUprobes(pid uint32) []link.Link { // TODO: 核心方
 
 
 	fmt.Println("AttachGoTlsUprobes------------pid: ", pid)
 	fmt.Println("AttachGoTlsUprobes------------pid: ", pid)
 	// TODO: 区分语言
 	// TODO: 区分语言
-	// return t.AttachGoTlsUprobes4GO(pid)
-	return t.AttachGoTlsUprobes4Java(pid)
+	// return t.AttachTlsUprobes4GO(pid)
+	return t.AttachTlsUprobes4Java(pid)
 }
 }
 
 
-func (t *Tracer) AttachGoTlsUprobes4Java(pid uint32) []link.Link {
+func (t *Tracer) AttachTlsUprobes4Java(pid uint32) []link.Link {
+	fmt.Println("AttachTlsUprobes4Java-------pid: ", pid)
 	if pid != 13096 {
 	if pid != 13096 {
 		return nil
 		return nil
 	}
 	}
-	fmt.Println("AttachGoTlsUprobes4Java-------pid: ", pid)
 	path := proc.Path(13096, "exe")
 	path := proc.Path(13096, "exe")
 	fmt.Println("path: ", path)
 	fmt.Println("path: ", path)
 	exe, err := link.OpenExecutable(path)
 	exe, err := link.OpenExecutable(path)
@@ -147,7 +147,8 @@ func (t *Tracer) AttachGoTlsUprobes4Java(pid uint32) []link.Link {
 	return links
 	return links
 }
 }
 
 
-func (t *Tracer) AttachGoTlsUprobes4GO(pid uint32) []link.Link {
+func (t *Tracer) AttachTlsUprobes4GO(pid uint32) []link.Link {
+	fmt.Println("AttachTlsUprobes4GO------------pid: ", pid)
 	if t.disableL7Tracing {
 	if t.disableL7Tracing {
 		return nil
 		return nil
 	}
 	}