2 * common eBPF ELF operations.
4 * Copyright (C) 2013-2015 Alexei Starovoitov <ast@kernel.org>
5 * Copyright (C) 2015 Wang Nan <wangnan0@huawei.com>
6 * Copyright (C) 2015 Huawei Inc.
11 #include <linux/bpf.h>
13 int bpf_create_map(enum bpf_map_type map_type
, int key_size
, int value_size
,
16 /* Recommend log buffer size */
17 #define BPF_LOG_BUF_SIZE 65536
18 int bpf_load_program(enum bpf_prog_type type
, struct bpf_insn
*insns
,
19 size_t insns_cnt
, char *license
,
20 u32 kern_version
, char *log_buf
,