Ver Fonte

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

rock.wu há 9 meses atrás
pai
commit
9ec446ea4b
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      ebpftracer/ebpf/utrace/go/net/server.probe.bpf.c

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

@@ -307,6 +307,7 @@ static __always_inline char *get_header_val(struct map_bucket *map_value,u32 off
 		if (map_value->tophash[i] != 0 && map_value->keys[i].len == CW_HEADER_KEY_LENGTH) {
 			char current_header_key[CW_HEADER_KEY_LENGTH];
 			bpf_probe_read(current_header_key, sizeof(current_header_key), map_value->keys[i].str);
+			cw_bpf_debug("get_header_val str is %s",current_header_key);
 			if ((current_header_key[0] == CW_HEADER_KEY_VAL[0]
 			     || current_header_key[0] == CW_HEADER_KEY_UFIRST_VAL[0])
 			    && current_header_key[1] == CW_HEADER_KEY_UFIRST_VAL[1]