1 // SPDX-License-Identifier: GPL-2.0-only
2 /* Copyright (c) 2017 Facebook
6 #include <linux/pkt_cls.h>
7 #include "bpf_helpers.h"
9 /* It is a dumb bpf program such that it must have no
10 * issue to be loaded since testing the verifier is
14 int _version
SEC("version") = 1;
17 __uint(type
, BPF_MAP_TYPE_ARRAY
);
18 __uint(max_entries
, 1);
21 } test_map_id
SEC(".maps");
23 SEC("test_obj_id_dummy")
24 int test_obj_id(struct __sk_buff
*skb
)
29 value
= bpf_map_lookup_elem(&test_map_id
, &key
);