Home
last modified time | relevance | path

Searched refs:perfmon_capable (Results 1 – 15 of 15) sorted by relevance

/Linux-v6.6/include/linux/
Dcapability.h195 static inline bool perfmon_capable(void) in perfmon_capable() function
Dperf_event.h1599 if (sysctl_perf_event_paranoid > 1 && !perfmon_capable()) in perf_allow_kernel()
1607 if (sysctl_perf_event_paranoid > 0 && !perfmon_capable()) in perf_allow_cpu()
1615 if (sysctl_perf_event_paranoid > -1 && !perfmon_capable()) in perf_allow_tracepoint()
Dbpf.h2142 return perfmon_capable(); in bpf_allow_ptr_leaks()
2147 return perfmon_capable(); in bpf_allow_uninit_stack()
2152 return perfmon_capable(); in bpf_bypass_spec_v1()
2157 return perfmon_capable(); in bpf_bypass_spec_v4()
/Linux-v6.6/drivers/media/rc/
Dbpf-lirc.c113 if (perfmon_capable()) in lirc_mode2_func_proto()
/Linux-v6.6/arch/parisc/kernel/
Dperf.c303 if (!perfmon_capable()) in perf_write()
/Linux-v6.6/drivers/perf/
Darm_spe_pmu.c53 if (IS_ENABLED(CONFIG_PID_IN_CONTEXTIDR) && perfmon_capable()) in set_spe_event_has_cx()
770 if (!perfmon_capable() && in arm_spe_pmu_event_init()
/Linux-v6.6/drivers/gpu/drm/i915/
Di915_query.c509 if (perfmon_capable()) { in query_memregion_info()
Di915_perf.c3930 i915_perf_stream_paranoid && !perfmon_capable()) { in i915_perf_open_ioctl_locked()
4142 if (oa_freq_hz > i915_oa_max_sample_rate && !perfmon_capable()) { in read_properties_unlocked()
4681 if (i915_perf_stream_paranoid && !perfmon_capable()) { in i915_perf_add_config_ioctl()
4841 if (i915_perf_stream_paranoid && !perfmon_capable()) { in i915_perf_remove_config_ioctl()
/Linux-v6.6/arch/powerpc/perf/
Dimc-pmu.c983 if (!perfmon_capable()) in thread_imc_event_init()
1435 if (!perfmon_capable()) in trace_imc_event_init()
/Linux-v6.6/arch/s390/kernel/
Dperf_cpum_cf.c1411 if (!perfmon_capable()) in cfset_open()
/Linux-v6.6/kernel/bpf/
Dhelpers.c1777 if (!perfmon_capable()) in bpf_base_func_proto()
Dsyscall.c2596 if (is_perfmon_prog_type(type) && !perfmon_capable()) in bpf_prog_load()
5594 return !perfmon_capable() ? NULL : &bpf_sys_bpf_proto; in syscall_prog_func_proto()
/Linux-v6.6/kernel/events/
Dcore.c10277 if (!perfmon_capable()) in perf_kprobe_event_init()
10337 if (!perfmon_capable()) in perf_uprobe_event_init()
12315 bool is_capable = perfmon_capable(); in perf_check_permission()
12390 if (!perfmon_capable()) in SYSCALL_DEFINE5()
/Linux-v6.6/kernel/trace/
Dbpf_trace.c2239 if (!perfmon_capable()) in perf_event_query_prog_array()
/Linux-v6.6/net/core/
Dfilter.c11721 if (!perfmon_capable()) in bpf_sk_base_func_proto()