Pārlūkot izejas kodu

Feature #TASK_QT-18250 低版本go端到端问题

Carl 1 mēnesi atpakaļ
vecāks
revīzija
ade1d34f16
1 mainītis faili ar 8 papildinājumiem un 8 dzēšanām
  1. 8 8
      ebpftracer/tls.go

+ 8 - 8
ebpftracer/tls.go

@@ -799,15 +799,15 @@ func (t *Tracer) AttachGoTlsUprobes(pid uint32, appInfo *AppInfo, codeType uint1
 				links = append(links, retLinks...)
 			}
 		case goReadContinuedLineSlice:
-			if major == 1 && minor >= 24 {
-				retLinks, err := attachUprobeWithReturns(exe, s.Name, "", "uprobe_textproto_Reader_readContinuedLineSlice_Returns", t.uprobes, address, s, textSection, textSectionLen, textSectionData, ef.Machine, "failed to attach read_exit uprobe", true)
-				if err != nil {
-					return nil, err
-				}
-				if retLinks != nil {
-					links = append(links, retLinks...)
-				}
+			//if major == 1 && minor >= 24 {
+			retLinks, err := attachUprobeWithReturns(exe, s.Name, "", "uprobe_textproto_Reader_readContinuedLineSlice_Returns", t.uprobes, address, s, textSection, textSectionLen, textSectionData, ef.Machine, "failed to attach read_exit uprobe", true)
+			if err != nil {
+				return nil, err
+			}
+			if retLinks != nil {
+				links = append(links, retLinks...)
 			}
+			//}
 		case goGocqlSessionExecuteQuery:
 			retLinks, err := attachUprobeWithReturns(exe, s.Name, "uprobe_Session_executeQuery", "uprobe_Session_executeQuery_Returns", t.uprobes, address, s, textSection, textSectionLen, textSectionData, ef.Machine, "failed to attach uprobe_Session_executeQuery uprobe", true)
 			if err != nil {