1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef __PERF_CAP_H 2 #ifndef __PERF_CAP_H 3 #define __PERF_CAP_H 3 #define __PERF_CAP_H 4 4 5 #include <stdbool.h> 5 #include <stdbool.h> 6 6 7 /* For older systems */ 7 /* For older systems */ 8 #ifndef CAP_SYSLOG 8 #ifndef CAP_SYSLOG 9 #define CAP_SYSLOG 34 9 #define CAP_SYSLOG 34 10 #endif 10 #endif 11 11 12 #ifndef CAP_PERFMON 12 #ifndef CAP_PERFMON 13 #define CAP_PERFMON 38 13 #define CAP_PERFMON 38 14 #endif 14 #endif 15 15 16 /* Query if a capability is supported, used_ro 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_roo 17 bool perf_cap__capable(int cap, bool *used_root); 18 18 19 #endif /* __PERF_CAP_H */ 19 #endif /* __PERF_CAP_H */ 20 20
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.