bpf tools: Add bpf.c/h for common bpf operations
[linux-2.6-block.git] / tools / lib / bpf / bpf.h
1 /*
2  * common eBPF ELF operations.
3  *
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.
7  */
8 #ifndef __BPF_BPF_H
9 #define __BPF_BPF_H
10
11 #include <linux/bpf.h>
12
13 int bpf_create_map(enum bpf_map_type map_type, int key_size, int value_size,
14                    int max_entries);
15
16 #endif