summaryrefslogtreecommitdiffstats
path: root/tools/build/feature/test-bpf.c
blob: 062bac811af962433fb75786cdffe708ad8c6bd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <linux/bpf.h>

int main(void)
{
	union bpf_attr attr;

	attr.prog_type = BPF_PROG_TYPE_KPROBE;
	attr.insn_cnt = 0;
	attr.insns = 0;
	attr.license = 0;
	attr.log_buf = 0;
	attr.log_size = 0;
	attr.log_level = 0;
	attr.kern_version = 0;

	attr = attr;
	return 0;
}
OpenPOWER on IntegriCloud