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

     1  /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
     2  #ifndef __BIOLATENCY_H
     3  #define __BIOLATENCY_H
     4  
     5  #define DISK_NAME_LEN 32
     6  #define MAX_SLOTS 27
     7  
     8  #define MINORBITS 20
     9  #define MINORMASK ((1U << MINORBITS) - 1)
    10  
    11  #define MKDEV(ma, mi) (((ma) << MINORBITS) | (mi))
    12  
    13  struct hist_key {
    14  	__u32 cmd_flags;
    15  	__u32 dev;
    16  };
    17  
    18  struct hist {
    19  	__u32 slots[MAX_SLOTS];
    20  };
    21  
    22  #endif /* __BIOLATENCY_H */