1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (c) 2018 Facebook */
4 #include <bpf/bpf_helpers.h>
12 __uint(type, BPF_MAP_TYPE_ARRAY);
13 __uint(key_size, sizeof(int));
14 __uint(value_size, sizeof(struct ipv_counts));
15 __uint(max_entries, 4);
16 } btf_map SEC(".maps");
18 __attribute__((noinline))
19 int test_long_fname_2(void)
21 struct ipv_counts *counts;
24 counts = bpf_map_lookup_elem(&btf_map, &key);
33 __attribute__((noinline))
34 int test_long_fname_1(void)
36 return test_long_fname_2();
39 SEC("dummy_tracepoint")
40 int _dummy_tracepoint(void *arg)
42 return test_long_fname_1();
45 char _license[] SEC("license") = "GPL";