Sfoglia il codice sorgente

Feature #TASK_QT-18250 扩充go语言header头长度,由限定前八个改为限定前20个。

rock.wu 9 mesi fa
parent
commit
c4cfc9ab24
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      ebpftracer/ebpf/utrace/go/net/server.probe.bpf.c

+ 4 - 4
ebpftracer/ebpf/utrace/go/net/server.probe.bpf.c

@@ -331,15 +331,15 @@ static __always_inline char *get_header_val(struct map_bucket *map_value,u32 off
 
 // 分段获取 header_val
 static __always_inline char *get_header_val_off(struct map_bucket *map_value) {
-	char *val = get_header_val(map_value, 0, 2);
+	char *val = get_header_val(map_value, 0, 5);
 	if (val == NULL) {
-		val = get_header_val(map_value, 2, 4);
+		val = get_header_val(map_value, 5, 10);
 	}
 	if (val == NULL) {
-		val = get_header_val(map_value, 4, 6);
+		val = get_header_val(map_value, 10,	15);
 	}
 	if (val == NULL) {
-		val = get_header_val(map_value, 6, 8);
+		val = get_header_val(map_value, 15, 20);
 	}
 	return val;
 }