1 // SPDX-License-Identifier: GPL-2.0
4 #include <bpf/bpf_helpers.h>
6 int _version
SEC("version") = 1;
9 __uint(type
, BPF_MAP_TYPE_ARRAY
);
10 __uint(max_entries
, 1);
13 __uint(pinning
, LIBBPF_PIN_BY_NAME
);
14 } pinmap
SEC(".maps");
17 __uint(type
, BPF_MAP_TYPE_HASH
);
18 __uint(max_entries
, 1);
21 } nopinmap
SEC(".maps");
24 __uint(type
, BPF_MAP_TYPE_HASH
);
25 __uint(max_entries
, 1);
28 __uint(pinning
, LIBBPF_PIN_NONE
);
29 } nopinmap2
SEC(".maps");
31 char _license
[] SEC("license") = "GPL";