1c22e150eSIgor Lubashev /* SPDX-License-Identifier: GPL-2.0 */ 2c22e150eSIgor Lubashev #ifndef __PERF_CAP_H 3c22e150eSIgor Lubashev #define __PERF_CAP_H 4c22e150eSIgor Lubashev 5c22e150eSIgor Lubashev #include <stdbool.h> 6c22e150eSIgor Lubashev 7083c1359SArnaldo Carvalho de Melo /* For older systems */ 8083c1359SArnaldo Carvalho de Melo #ifndef CAP_SYSLOG 9083c1359SArnaldo Carvalho de Melo #define CAP_SYSLOG 34 10083c1359SArnaldo Carvalho de Melo #endif 11083c1359SArnaldo Carvalho de Melo 126b3e0e2eSAlexey Budankov #ifndef CAP_PERFMON 136b3e0e2eSAlexey Budankov #define CAP_PERFMON 38 146b3e0e2eSAlexey Budankov #endif 156b3e0e2eSAlexey Budankov 16*e25ebda7SIan Rogers /* Query if a capability is supported, used_root is set if the fallback root check was used. */ 17*e25ebda7SIan Rogers bool perf_cap__capable(int cap, bool *used_root); 18*e25ebda7SIan Rogers 19c22e150eSIgor Lubashev #endif /* __PERF_CAP_H */ 20