summaryrefslogtreecommitdiffstats
path: root/tools/include/uapi/linux/bpf_perf_event.h
diff options
context:
space:
mode:
authorAlexei Starovoitov2017-03-11 07:05:55 +0100
committerDavid S. Miller2017-03-13 07:48:41 +0100
commit1da8ac7c49fb2879ba95006d8bd1095e6870ea1a (patch)
tree98d5fd4bdf9ea69d47039e52c11304c8a461121e /tools/include/uapi/linux/bpf_perf_event.h
parentmpls: Do not decrement alive counter for unregister events (diff)
downloadkernel-qcow2-linux-1da8ac7c49fb2879ba95006d8bd1095e6870ea1a.tar.gz
kernel-qcow2-linux-1da8ac7c49fb2879ba95006d8bd1095e6870ea1a.tar.xz
kernel-qcow2-linux-1da8ac7c49fb2879ba95006d8bd1095e6870ea1a.zip
selftests/bpf: fix broken build
Recent merge of 'linux-kselftest-4.11-rc1' tree broke bpf test build. None of the tests were building and test_verifier.c had tons of compiler errors. Fix it and add #ifdef CAP_IS_SUPPORTED to support old versions of libcap. Tested on centos 6.8 and 7 Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Tested-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/include/uapi/linux/bpf_perf_event.h')
-rw-r--r--tools/include/uapi/linux/bpf_perf_event.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/include/uapi/linux/bpf_perf_event.h b/tools/include/uapi/linux/bpf_perf_event.h
new file mode 100644
index 000000000000..067427259820
--- /dev/null
+++ b/tools/include/uapi/linux/bpf_perf_event.h
@@ -0,0 +1,18 @@
+/* Copyright (c) 2016 Facebook
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of version 2 of the GNU General Public
+ * License as published by the Free Software Foundation.
+ */
+#ifndef _UAPI__LINUX_BPF_PERF_EVENT_H__
+#define _UAPI__LINUX_BPF_PERF_EVENT_H__
+
+#include <linux/types.h>
+#include <linux/ptrace.h>
+
+struct bpf_perf_event_data {
+ struct pt_regs regs;
+ __u64 sample_period;
+};
+
+#endif /* _UAPI__LINUX_BPF_PERF_EVENT_H__ */