summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_pinning_invalid.c
blob: 51b38abe7ba1d4b449c227fa6d761bc161db3929 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// SPDX-License-Identifier: GPL-2.0

#include <linux/bpf.h>
#include "bpf_helpers.h"

int _version SEC("version") = 1;

struct {
	__uint(type, BPF_MAP_TYPE_ARRAY);
	__uint(max_entries, 1);
	__type(key, __u32);
	__type(value, __u64);
	__uint(pinning, 2); /* invalid */
} nopinmap3 SEC(".maps");

char _license[] SEC("license") = "GPL";