Home
last modified time | relevance | path

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

/linux-6.15/tools/perf/util/
H A Dcap.c16 bool perf_cap__capable(int cap, bool *used_root) in perf_cap__capable() argument
25 *used_root = false; in perf_cap__capable()
34 *used_root = true; in perf_cap__capable()
H 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()
H A Dcap.h17 bool perf_cap__capable(int cap, bool *used_root);
H A Dsymbol.c2441 bool used_root; in symbol__read_kptr_restrict() local
2442 bool cap_syslog = perf_cap__capable(CAP_SYSLOG, &used_root); in symbol__read_kptr_restrict()
/linux-6.15/tools/perf/
H A Dbuiltin-ftrace.c70 bool used_root; in check_ftrace_capable() local
72 if (perf_cap__capable(CAP_PERFMON, &used_root)) in check_ftrace_capable()
75 if (!used_root && perf_cap__capable(CAP_SYS_ADMIN, &used_root)) in check_ftrace_capable()
79 used_root ? "root" in check_ftrace_capable()