Searched refs:perfmon_capable (Results 1 – 13 of 13) sorted by relevance
257 static inline bool perfmon_capable(void) in perfmon_capable() function
1325 if (sysctl_perf_event_paranoid > 1 && !perfmon_capable()) in perf_allow_kernel()1333 if (sysctl_perf_event_paranoid > 0 && !perfmon_capable()) in perf_allow_cpu()1341 if (sysctl_perf_event_paranoid > -1 && !perfmon_capable()) in perf_allow_tracepoint()
1435 return perfmon_capable(); in bpf_allow_ptr_leaks()1440 return perfmon_capable(); in bpf_allow_uninit_stack()1445 return perfmon_capable(); in bpf_allow_ptr_to_map_access()1450 return perfmon_capable(); in bpf_bypass_spec_v1()1455 return perfmon_capable(); in bpf_bypass_spec_v4()
113 if (perfmon_capable()) in lirc_mode2_func_proto()
303 if (!perfmon_capable()) in perf_write()
275 if (IS_ENABLED(CONFIG_PID_IN_CONTEXTIDR) && perfmon_capable()) in arm_spe_event_to_pmscr()713 if (!perfmon_capable() && in arm_spe_pmu_event_init()
979 if (!perfmon_capable()) in thread_imc_event_init()1432 if (!perfmon_capable()) in trace_imc_event_init()
3481 i915_perf_stream_paranoid && !perfmon_capable()) { in i915_perf_open_ioctl_locked()3688 if (oa_freq_hz > i915_oa_max_sample_rate && !perfmon_capable()) { in read_properties_unlocked()4072 if (i915_perf_stream_paranoid && !perfmon_capable()) { in i915_perf_add_config_ioctl()4219 if (i915_perf_stream_paranoid && !perfmon_capable()) { in i915_perf_remove_config_ioctl()
1414 if (!perfmon_capable()) in bpf_base_func_proto()
2208 if (is_perfmon_prog_type(type) && !perfmon_capable()) in bpf_prog_load()
1808 if (!perfmon_capable()) in perf_event_query_prog_array()
9841 if (!perfmon_capable()) in perf_kprobe_event_init()9901 if (!perfmon_capable()) in perf_uprobe_event_init()11951 bool is_capable = perfmon_capable(); in perf_check_permission()12025 if (!perfmon_capable()) in SYSCALL_DEFINE5()
10748 if (!perfmon_capable()) in bpf_sk_base_func_proto()