/tools/build/feature/ |
D | test-libcap.c | 8 cap_t caps = cap_get_proc(); in main() local 10 if (!caps) in main() 13 if (cap_get_flag(caps, CAP_SYS_ADMIN, CAP_EFFECTIVE, &val) != 0) in main() 16 if (cap_free(caps) != 0) in main()
|
D | test-jvmti.c | 8 jvmtiCapabilities caps __attribute__((unused)); in main() local
|
/tools/perf/util/ |
D | cap.c | 15 cap_t caps = cap_get_proc(); in perf_cap__capable() local 17 if (!caps) in perf_cap__capable() 20 if (cap_get_flag(caps, cap, CAP_EFFECTIVE, &val) != 0) in perf_cap__capable() 23 if (cap_free(caps) != 0) in perf_cap__capable()
|
/tools/power/cpupower/utils/helpers/ |
D | cpuid.c | 60 cpu_info->caps = 0; in get_cpu_info() 122 cpu_info->caps |= CPUPOWER_CAP_INV_TSC; in get_cpu_info() 126 cpu_info->caps |= CPUPOWER_CAP_APERF; in get_cpu_info() 133 cpu_info->caps |= CPUPOWER_CAP_AMD_CBP; in get_cpu_info() 139 cpu_info->caps |= CPUPOWER_CAP_INTEL_IDA; in get_cpu_info() 145 cpu_info->caps |= CPUPOWER_CAP_PERF_BIAS; in get_cpu_info() 161 cpu_info->caps |= CPUPOWER_CAP_HAS_TURBO_RATIO; in get_cpu_info() 167 cpu_info->caps |= CPUPOWER_CAP_HAS_TURBO_RATIO; in get_cpu_info() 168 cpu_info->caps |= CPUPOWER_CAP_IS_SNB; in get_cpu_info()
|
D | msr.c | 81 if (!(cpupower_cpu_info.caps & CPUPOWER_CAP_PERF_BIAS)) in msr_intel_get_perf_bias() 94 if (!(cpupower_cpu_info.caps & CPUPOWER_CAP_PERF_BIAS)) in msr_intel_set_perf_bias() 108 if (!(cpupower_cpu_info.caps & CPUPOWER_CAP_HAS_TURBO_RATIO)) in msr_intel_get_turbo_ratio()
|
D | misc.c | 21 if (cpupower_cpu_info.caps & CPUPOWER_CAP_AMD_CBP) { in cpufreq_has_boost_support() 39 } else if (cpupower_cpu_info.caps & CPUPOWER_CAP_INTEL_IDA) in cpufreq_has_boost_support()
|
D | helpers.h | 83 unsigned long long caps; member
|
/tools/testing/selftests/ptp/ |
D | testptp.c | 146 struct ptp_clock_caps caps; in main() local 262 if (ioctl(fd, PTP_CLOCK_GETCAPS, &caps)) { in main() 273 caps.max_adj, in main() 274 caps.n_alarm, in main() 275 caps.n_ext_ts, in main() 276 caps.n_per_out, in main() 277 caps.pps, in main() 278 caps.n_pins, in main() 279 caps.cross_timestamping); in main() 376 if (ioctl(fd, PTP_CLOCK_GETCAPS, &caps)) { in main() [all …]
|
/tools/testing/selftests/safesetid/ |
D | safesetid-test.c | 273 cap_t caps; in drop_caps() local 275 caps = cap_get_proc(); in drop_caps() 277 cap_set_flag(caps, CAP_EFFECTIVE, 2, cap_values, CAP_SET); in drop_caps() 279 cap_clear(caps); in drop_caps() 280 cap_set_proc(caps); in drop_caps() 281 cap_free(caps); in drop_caps()
|
/tools/testing/selftests/bpf/ |
D | test_verifier.c | 812 cap_t caps; in set_admin() local 816 caps = cap_get_proc(); in set_admin() 817 if (!caps) { in set_admin() 821 if (cap_set_flag(caps, CAP_EFFECTIVE, 1, &cap_val, in set_admin() 826 if (cap_set_proc(caps)) { in set_admin() 832 if (cap_free(caps)) in set_admin() 1054 cap_t caps; in is_admin() local 1064 caps = cap_get_proc(); in is_admin() 1065 if (!caps) { in is_admin() 1069 if (cap_get_flag(caps, cap_val, CAP_EFFECTIVE, &sysadmin)) in is_admin() [all …]
|
/tools/power/cpupower/utils/idle_monitor/ |
D | nhm_idle.c | 173 if (!(cpupower_cpu_info.caps & CPUPOWER_CAP_INV_TSC)) in intel_nhm_register() 176 if (!(cpupower_cpu_info.caps & CPUPOWER_CAP_APERF)) in intel_nhm_register()
|
D | mperf_monitor.c | 240 if (!(cpupower_cpu_info.caps & CPUPOWER_CAP_INV_TSC)) in init_maxfreq_mode() 302 if (!(cpupower_cpu_info.caps & CPUPOWER_CAP_APERF)) in mperf_register()
|
/tools/power/cpupower/utils/ |
D | cpupower-info.c | 73 } else if (!(cpupower_cpu_info.caps & CPUPOWER_CAP_PERF_BIAS)) { in cmd_info()
|
D | cpufreq-info.c | 206 } else if (cpupower_cpu_info.caps & CPUPOWER_CAP_HAS_TURBO_RATIO) { in get_boost_mode_x86() 212 if (cpupower_cpu_info.caps & CPUPOWER_CAP_IS_SNB) in get_boost_mode_x86()
|
/tools/lib/bpf/ |
D | libbpf.c | 194 struct bpf_capabilities *caps; member 292 struct bpf_capabilities caps; member 416 prog.caps = &obj->caps; in bpf_object__add_program() 861 if (!obj->caps.global_data) in bpf_object__init_global_data_maps() 1364 bool has_datasec = obj->caps.btf_datasec; in bpf_object__sanitize_btf() 1365 bool has_func = obj->caps.btf_func; in bpf_object__sanitize_btf() 1427 if (!obj->caps.btf_func) { in bpf_object__sanitize_btf_ext() 1816 if (!obj->caps.global_data) { in bpf_program__collect_reloc() 1984 obj->caps.name = 1; in bpf_object__probe_name() 2029 obj->caps.global_data = 1; in bpf_object__probe_global_data() [all …]
|
/tools/perf/Documentation/ |
D | intel-pt.txt | 275 /sys/bus/event_source/devices/intel_pt/caps/psb_cyc 282 /sys/bus/event_source/devices/intel_pt/caps/psb_periods 319 /sys/bus/event_source/devices/intel_pt/caps/mtc 332 /sys/bus/event_source/devices/intel_pt/caps/mtc_periods 364 /sys/bus/event_source/devices/intel_pt/caps/psb_cyc 377 /sys/bus/event_source/devices/intel_pt/caps/cycle_thresholds 415 /sys/bus/event_source/devices/intel_pt/caps/ptwrite 431 /sys/bus/event_source/devices/intel_pt/caps/power_event_trace
|
/tools/perf/arch/x86/util/ |
D | intel-pt.c | 479 const char *caps, const char *name, in intel_pt_val_config_term() argument 488 if (perf_pmu__scan_file(intel_pt_pmu, caps, "%llx", &valid) != 1) in intel_pt_val_config_term()
|