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()
381 bool used_root; in perf_event_paranoid_check() 383 if (perf_cap__capable(CAP_SYS_ADMIN, &used_root)) in perf_event_paranoid_check() local 386 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()
2327 bool used_root; in symbol__read_kptr_restrict() 2328 bool cap_syslog = perf_cap__capable(CAP_SYSLOG, &used_root); in symbol__read_kptr_restrict() 2326 bool used_root; symbol__read_kptr_restrict() local
75 bool used_root; in check_ftrace_capable() 77 if (perf_cap__capable(CAP_PERFMON, &used_root)) in check_ftrace_capable() 80 if (!used_root && perf_cap__capable(CAP_SYS_ADMIN, &used_root)) in check_ftrace_capable() 84 used_root ? "root" in check_ftrace_capable() 74 bool used_root; check_ftrace_capable() local