github.com/inspektor-gadget/inspektor-gadget@v0.28.1/pkg/gadgettracermanager/containers-map/bpf/containers-map.c (about)

     1  // SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) OR Apache-2.0
     2  /* Copyright (c) 2021 The Inspektor Gadget authors */
     3  
     4  #include <vmlinux.h>
     5  
     6  #include <bpf/bpf_helpers.h>
     7  
     8  #include <gadgettracermanager/common.h>
     9  
    10  struct {
    11  	__uint(type, BPF_MAP_TYPE_HASH);
    12  	__type(key, __u64);
    13  	__type(value, struct container);
    14  	__uint(max_entries, MAX_CONTAINERS_PER_NODE);
    15  } containers SEC(".maps");
    16  
    17  char _license[] SEC("license") = "GPL";