Sfoglia il codice sorgente

Fixed #TSB-1234 test

ilucky.si 1 anno fa
parent
commit
def3f2d86f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      ebpftracer/ebpf/l7/l7.c

+ 1 - 1
ebpftracer/ebpf/l7/l7.c

@@ -271,7 +271,7 @@ void perf_event_batch_output(void *ctx,  struct l7_event *e) {
 // IK:Test...
     __u32 k0 = 0;
 	// struct __socket_data_buffer *e_buff = bpf_map_lookup_elem(&NAME(data_buf), &k0);  // IK:TODO: 为什么必须要加NAME? 和map的声明方式有关系
-    struct __socket_data_buffer *e_buff = bpf_map_lookup_elem(data_buf, &k0);
+    struct __socket_data_buffer *e_buff = bpf_map_lookup_elem(&data_buf, &k0);
     if (!e_buff) {
         return;
     }