Home
last modified time | relevance | path

Searched refs:used_root (Results 1 – 6 of 6) sorted by relevance

/tools/perf/util/
A Dcap.c15 bool perf_cap__capable(int cap, bool *used_root) in perf_cap__capable() argument
24 *used_root = false; in perf_cap__capable()
33 *used_root = true; in perf_cap__capable()
A Dcap.h22 bool perf_cap__capable(int cap, bool *used_root);
A Dutil.c334 bool used_root; in perf_event_paranoid_check() local
336 if (perf_cap__capable(CAP_SYS_ADMIN, &used_root)) in perf_event_paranoid_check()
339 if (!used_root && perf_cap__capable(CAP_PERFMON, &used_root)) in perf_event_paranoid_check()
A Dbpf-filter.c627 bool used_root; in check_bpf_filter_capable() local
629 if (perf_cap__capable(CAP_BPF, &used_root)) in check_bpf_filter_capable()
632 if (!used_root) { in check_bpf_filter_capable()
644 used_root ? "root" : "users with the CAP_BPF capability"); in check_bpf_filter_capable()
A Dsymbol.c2451 bool used_root; in symbol__read_kptr_restrict() local
2452 bool cap_syslog = perf_cap__capable(CAP_SYSLOG, &used_root); in symbol__read_kptr_restrict()
/tools/perf/
A Dbuiltin-ftrace.c73 bool used_root; in check_ftrace_capable() local
75 if (perf_cap__capable(CAP_PERFMON, &used_root)) in check_ftrace_capable()
78 if (!used_root && perf_cap__capable(CAP_SYS_ADMIN, &used_root)) in check_ftrace_capable()
82 used_root ? "root" in check_ftrace_capable()

Completed in 15 milliseconds