at v6.16-rc4 19 lines 401 B view raw
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. */ 17bool perf_cap__capable(int cap, bool *used_root); 18 19#endif /* __PERF_CAP_H */