1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef __PERF_CAP_H 3 #define __PERF_CAP_H 4 5 #include <stdbool.h> 6 #include <linux/capability.h> 7 8 /* For older systems */ 9 #ifndef CAP_SYSLOG 10 #define CAP_SYSLOG 34 11 #endif 12 13 #ifndef CAP_PERFMON 14 #define CAP_PERFMON 38 15 #endif 16 17 #ifndef CAP_BPF 18 #define CAP_BPF 39 19 #endif 20 21 bool perf_cap__capable(int cap); 22 23 #endif /* __PERF_CAP_H */ 24