Home
last modified time | relevance | path

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

/linux/tools/perf/util/
H 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()
H A Dcap.h22 bool perf_cap__capable(int cap, bool *used_root);
H 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()
H 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()
/linux/tools/perf/
H 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()