diff options
author | Kaixu Xia <xiakaixu@huawei.com> | 2015-08-06 10:02:34 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-10 08:50:05 +0300 |
commit | ea317b267e9d03a8241893aa176fba7661d07579 (patch) | |
tree | 75d0e648c42e56ae0f2ae0f5e33226ce4bb77fee /include/linux | |
parent | 2a36f0b92eb638dd023870574eb471b1c56be9ad (diff) | |
download | linux-ea317b267e9d03a8241893aa176fba7661d07579.tar.xz |
bpf: Add new bpf map type to store the pointer to struct perf_event
Introduce a new bpf map type 'BPF_MAP_TYPE_PERF_EVENT_ARRAY'.
This map only stores the pointer to struct perf_event. The
user space event FDs from perf_event_open() syscall are converted
to the pointer to struct perf_event and stored in map.
Signed-off-by: Kaixu Xia <xiakaixu@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/bpf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/bpf.h b/include/linux/bpf.h index d495211d63d1..4fc1f4070789 100644 --- a/include/linux/bpf.h +++ b/include/linux/bpf.h @@ -10,6 +10,7 @@ #include <uapi/linux/bpf.h> #include <linux/workqueue.h> #include <linux/file.h> +#include <linux/perf_event.h> struct bpf_map; |