github.com/inspektor-gadget/inspektor-gadget@v0.28.1/pkg/gadgets/profile/tcprtt/tracer/bpf/tcprtt.h (about)

     1  /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
     2  #ifndef __TCPRTT_H
     3  #define __TCPRTT_H
     4  
     5  #define MAX_SLOTS 27
     6  #define IPV6_LEN 16
     7  
     8  struct hist {
     9  	__u64 latency;
    10  	__u64 cnt;
    11  	__u32 slots[MAX_SLOTS];
    12  };
    13  
    14  struct hist_key {
    15  	__u16 family;
    16  	__u8 addr[IPV6_LEN];
    17  };
    18  
    19  #endif /* __TCPRTT_H */