xref: /linux/tools/perf/util/cap.h (revision 891e8abed532423d3b918b0c445dc8919bc445b5)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __PERF_CAP_H
3 #define __PERF_CAP_H
4 
5 #include <stdbool.h>
6 
7 /* For older systems */
8 #ifndef CAP_SYSLOG
9 #define CAP_SYSLOG	34
10 #endif
11 
12 #ifndef CAP_PERFMON
13 #define CAP_PERFMON	38
14 #endif
15 
16 /* Query if a capability is supported, used_root is set if the fallback root check was used. */
17 bool perf_cap__capable(int cap, bool *used_root);
18 
19 #endif /* __PERF_CAP_H */
20