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

     1  /* SPDX-License-Identifier: BSD-2-Clause */
     2  #ifndef __PROFILE_H
     3  #define __PROFILE_H
     4  
     5  #define TASK_COMM_LEN 16
     6  #define MAX_CPU_NR 128
     7  #define MAX_ENTRIES 10240
     8  
     9  struct key_t {
    10  	__u64 kernel_ip;
    11  	__u64 mntns_id;
    12  	__u32 pid;
    13  	int user_stack_id;
    14  	int kern_stack_id;
    15  	__u8 name[TASK_COMM_LEN];
    16  };
    17  
    18  #endif /* __PROFILE_H */