mirror of
https://gitee.com/openharmony/kernel_linux
synced 2025-05-23 07:06:49 +00:00

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>
19 lines
483 B
C
19 lines
483 B
C
/* 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__ */
|