Searched refs:used_root (Results 1 – 6 of 6) sorted by relevance
15 bool perf_cap__capable(int cap, bool *used_root) in perf_cap__capable() argument24 *used_root = false; in perf_cap__capable()32 *used_root = true; in perf_cap__capable()
383 bool used_root; in perf_event_paranoid_check() local385 if (perf_cap__capable(CAP_SYS_ADMIN, &used_root)) in perf_event_paranoid_check()388 if (!used_root && perf_cap__capable(CAP_PERFMON, &used_root)) in perf_event_paranoid_check()
22 bool perf_cap__capable(int cap, bool *used_root);
632 bool used_root; in check_bpf_filter_capable() local634 if (perf_cap__capable(CAP_BPF, &used_root)) in check_bpf_filter_capable()637 if (!used_root) { in check_bpf_filter_capable()649 used_root ? "root" : "users with the CAP_BPF capability"); in check_bpf_filter_capable()
2326 bool used_root; in symbol__read_kptr_restrict() local2327 bool cap_syslog = perf_cap__capable(CAP_SYSLOG, &used_root); in symbol__read_kptr_restrict()
74 bool used_root; in check_ftrace_capable() local76 if (perf_cap__capable(CAP_PERFMON, &used_root)) in check_ftrace_capable()79 if (!used_root && perf_cap__capable(CAP_SYS_ADMIN, &used_root)) in check_ftrace_capable()83 used_root ? "root" in check_ftrace_capable()