/tools/testing/selftests/kvm/x86_64/ |
D | platform_info_test.c | 40 struct kvm_enable_cap cap = {}; in set_msr_platform_info_enabled() local 42 cap.cap = KVM_CAP_MSR_PLATFORM_INFO; in set_msr_platform_info_enabled() 43 cap.flags = 0; in set_msr_platform_info_enabled() 44 cap.args[0] = (int)enable; in set_msr_platform_info_enabled() 45 vm_enable_cap(vm, &cap); in set_msr_platform_info_enabled()
|
D | sync_regs_test.c | 87 int rv, cap; in main() local 92 cap = kvm_check_cap(KVM_CAP_SYNC_REGS); in main() 93 if ((cap & TEST_SYNC_FIELDS) != TEST_SYNC_FIELDS) { in main() 97 if ((cap & INVALID_SYNC_FIELD) != 0) { in main()
|
/tools/power/x86/x86_energy_perf_policy/ |
D | x86_energy_perf_policy.c | 671 void print_hwp_cap(int cpu, struct msr_hwp_cap *cap, char *str) in print_hwp_cap() argument 677 cap->lowest, cap->efficient, cap->guaranteed, cap->highest); in print_hwp_cap() 679 void read_hwp_cap(int cpu, struct msr_hwp_cap *cap, unsigned int msr_offset) in read_hwp_cap() argument 685 cap->highest = msr_perf_2_ratio(HWP_HIGHEST_PERF(msr)); in read_hwp_cap() 686 cap->guaranteed = msr_perf_2_ratio(HWP_GUARANTEED_PERF(msr)); in read_hwp_cap() 687 cap->efficient = msr_perf_2_ratio(HWP_MOSTEFFICIENT_PERF(msr)); in read_hwp_cap() 688 cap->lowest = msr_perf_2_ratio(HWP_LOWEST_PERF(msr)); in read_hwp_cap() 752 struct msr_hwp_cap cap; in print_cpu_msrs() local 766 read_hwp_cap(cpu, &cap, MSR_HWP_CAPABILITIES); in print_cpu_msrs() 767 print_hwp_cap(cpu, &cap, ""); in print_cpu_msrs() [all …]
|
/tools/perf/util/ |
D | cap.h | 13 bool perf_cap__capable(cap_value_t cap); 20 static inline bool perf_cap__capable(int cap __maybe_unused) in perf_cap__capable()
|
D | cap.c | 12 bool perf_cap__capable(cap_value_t cap) in perf_cap__capable() argument 20 if (cap_get_flag(caps, cap, CAP_EFFECTIVE, &val) != 0) in perf_cap__capable()
|
D | python-ext-sources | 10 util/cap.c
|
D | Build | 157 perf-$(CONFIG_LIBCAP) += cap.o
|
/tools/lib/bpf/ |
D | hashmap.c | 40 map->cap = 0; in hashmap__init() 67 map->cap = map->cap_bits = map->sz = 0; in hashmap__clear() 86 return map->cap; in hashmap__capacity() 92 return (map->cap == 0) || ((map->sz + 1) * 4 / 3 > map->cap); in hashmap_needs_to_grow() 117 map->cap = new_cap; in hashmap_grow()
|
D | hashmap.h | 41 size_t cap; member 51 .cap = 0, \ 139 for (bkt = 0; bkt < map->cap; bkt++) \ 151 for (bkt = 0; bkt < map->cap; bkt++) \
|
D | btf.c | 1306 __u32 cap; member 1613 .cap = 0, in btf_dedup_strings() 1622 if (strs.cnt + 1 > strs.cap) { in btf_dedup_strings() 1625 strs.cap += max(strs.cnt / 2, 16); in btf_dedup_strings() 1627 sizeof(strs.ptrs[0]) * strs.cap); in btf_dedup_strings()
|
/tools/testing/selftests/kvm/ |
D | dirty_log_test.c | 320 struct kvm_enable_cap cap = {}; in run_test() local 322 cap.cap = KVM_CAP_MANUAL_DIRTY_LOG_PROTECT2; in run_test() 323 cap.args[0] = 1; in run_test() 324 vm_enable_cap(vm, &cap); in run_test()
|
/tools/testing/selftests/kvm/s390x/ |
D | sync_regs_test.c | 72 int rv, cap; in main() local 77 cap = kvm_check_cap(KVM_CAP_SYNC_REGS); in main() 78 if (!cap) { in main()
|
/tools/testing/selftests/vm/ |
D | mlock-random-test.c | 28 cap_t cap = cap_init(); in set_cap_limits() local 38 if (cap_set_proc(cap)) { in set_cap_limits()
|
/tools/testing/selftests/tpm2/ |
D | tpm2.py | 667 def __get_cap_cnt(self, cap, pt, cnt): argument 675 cap, pt, cnt) 678 more_data, cap, cnt = struct.unpack('>BII', rsp[:9]) 688 def get_cap(self, cap, pt): argument 693 next_handles, more_data = self.__get_cap_cnt(cap, pt, 1)
|
/tools/testing/selftests/kvm/include/ |
D | kvm_util.h | 68 int kvm_check_cap(long cap); 69 int vm_enable_cap(struct kvm_vm *vm, struct kvm_enable_cap *cap);
|
/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 47 int kvm_check_cap(long cap) in kvm_check_cap() argument 56 ret = ioctl(kvm_fd, KVM_CHECK_EXTENSION, cap); in kvm_check_cap() 77 int vm_enable_cap(struct kvm_vm *vm, struct kvm_enable_cap *cap) in vm_enable_cap() argument 81 ret = ioctl(vm->fd, KVM_ENABLE_CAP, cap); in vm_enable_cap()
|
/tools/testing/selftests/kvm/lib/x86_64/ |
D | vmx.c | 51 .cap = KVM_CAP_HYPERV_ENLIGHTENED_VMCS, in vcpu_enable_evmcs()
|
/tools/include/uapi/linux/ |
D | kvm.h | 710 __u32 cap; member
|