Selaa lähdekoodia

Fixed #TSB-1234 test

ilucky.si 2 vuotta sitten
vanhempi
säilyke
5c572177c8
1 muutettua tiedostoa jossa 6 lisäystä ja 5 poistoa
  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)
 	// 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 {
 		return nil
 	}
-	fmt.Println("AttachGoTlsUprobes4Java-------pid: ", pid)
 	path := proc.Path(13096, "exe")
 	fmt.Println("path: ", path)
 	exe, err := link.OpenExecutable(path)
@@ -147,7 +147,8 @@ func (t *Tracer) AttachGoTlsUprobes4Java(pid uint32) []link.Link {
 	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 {
 		return nil
 	}