Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / perf / util / cap.h
blob0c6a1ff55f07340a68538f4eb8f4e4a73d11c5f6
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __PERF_CAP_H
3 #define __PERF_CAP_H
5 #include <stdbool.h>
7 /* For older systems */
8 #ifndef CAP_SYSLOG
9 #define CAP_SYSLOG 34
10 #endif
12 #ifndef CAP_PERFMON
13 #define CAP_PERFMON 38
14 #endif
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);
19 #endif /* __PERF_CAP_H */