Home
last modified time | relevance | path

Searched refs:cpuid (Results 1 – 25 of 42) sorted by relevance

12

/tools/testing/selftests/kvm/x86_64/
Dhyperv_cpuid.c115 static struct kvm_cpuid2 cpuid = {.nent = 0}; in test_hv_cpuid_e2big() local
118 ret = _vcpu_ioctl(vm, VCPU_ID, KVM_GET_SUPPORTED_HV_CPUID, &cpuid); in test_hv_cpuid_e2big()
129 static struct kvm_cpuid2 *cpuid; in kvm_get_supported_hv_cpuid() local
131 cpuid = malloc(sizeof(*cpuid) + nent * sizeof(struct kvm_cpuid_entry2)); in kvm_get_supported_hv_cpuid()
133 if (!cpuid) { in kvm_get_supported_hv_cpuid()
138 cpuid->nent = nent; in kvm_get_supported_hv_cpuid()
140 vcpu_ioctl(vm, VCPU_ID, KVM_GET_SUPPORTED_HV_CPUID, cpuid); in kvm_get_supported_hv_cpuid()
142 return cpuid; in kvm_get_supported_hv_cpuid()
Dkvm_pv_test.c145 static void clear_kvm_cpuid_features(struct kvm_cpuid2 *cpuid) in clear_kvm_cpuid_features() argument
150 TEST_ASSERT(set_cpuid(cpuid, &ent), in clear_kvm_cpuid_features()
/tools/perf/arch/x86/util/
Dkvm-stat.c156 int cpu_isa_init(struct perf_kvm_stat *kvm, const char *cpuid) in cpu_isa_init() argument
158 if (strstr(cpuid, "Intel")) { in cpu_isa_init()
161 } else if (strstr(cpuid, "AMD") || strstr(cpuid, "Hygon")) { in cpu_isa_init()
Dheader.c14 cpuid(unsigned int op, unsigned int *a, unsigned int *b, unsigned int *c, in cpuid() function
34 cpuid(0, &lvl, &b, &c, &d); in __get_cpuid()
41 cpuid(1, &a, &b, &c, &d); in __get_cpuid()
/tools/perf/arch/s390/annotate/
Dinstructions.c139 static int s390__cpuid_parse(struct arch *arch, char *cpuid) in s390__cpuid_parse() argument
149 ret = sscanf(cpuid, "%*[^,],%u,%[^,],%[^,],%[^,],%s", &family, model_c, in s390__cpuid_parse()
160 static int s390__annotate_init(struct arch *arch, char *cpuid __maybe_unused) in s390__annotate_init()
167 if (cpuid) { in s390__annotate_init()
168 if (s390__cpuid_parse(arch, cpuid)) in s390__annotate_init()
/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c624 struct kvm_cpuid2 *cpuid; in allocate_kvm_cpuid2() local
628 size = sizeof(*cpuid); in allocate_kvm_cpuid2()
630 cpuid = malloc(size); in allocate_kvm_cpuid2()
631 if (!cpuid) { in allocate_kvm_cpuid2()
636 cpuid->nent = nent; in allocate_kvm_cpuid2()
638 return cpuid; in allocate_kvm_cpuid2()
654 static struct kvm_cpuid2 *cpuid; in kvm_get_supported_cpuid() local
658 if (cpuid) in kvm_get_supported_cpuid()
659 return cpuid; in kvm_get_supported_cpuid()
661 cpuid = allocate_kvm_cpuid2(); in kvm_get_supported_cpuid()
[all …]
/tools/power/cpupower/debug/i386/
Ddump_psb.c50 u_int32_t cpuid; member
115 if (relevant!= pst->cpuid) in decode_psb()
121 pst->cpuid, in decode_psb()
/tools/perf/util/
Denv.c196 zfree(&env->cpuid); in perf_env__exit()
285 char cpuid[128]; in perf_env__read_cpuid() local
286 int err = get_cpuid(cpuid, sizeof(cpuid)); in perf_env__read_cpuid()
291 free(env->cpuid); in perf_env__read_cpuid()
292 env->cpuid = strdup(cpuid); in perf_env__read_cpuid()
293 if (env->cpuid == NULL) in perf_env__read_cpuid()
Dpmu.c659 char *cpuid; in perf_pmu__getcpuid() local
662 cpuid = getenv("PERF_CPUID"); in perf_pmu__getcpuid()
663 if (cpuid) in perf_pmu__getcpuid()
664 cpuid = strdup(cpuid); in perf_pmu__getcpuid()
665 if (!cpuid) in perf_pmu__getcpuid()
666 cpuid = get_cpuid_str(pmu); in perf_pmu__getcpuid()
667 if (!cpuid) in perf_pmu__getcpuid()
671 pr_debug("Using CPUID %s\n", cpuid); in perf_pmu__getcpuid()
674 return cpuid; in perf_pmu__getcpuid()
680 char *cpuid = perf_pmu__getcpuid(pmu); in perf_pmu__find_map() local
[all …]
Dkvm-stat.h139 int cpu_isa_init(struct perf_kvm_stat *kvm, const char *cpuid);
Denv.h48 char *cpuid; member
/tools/perf/arch/arc/annotate/
Dinstructions.c4 static int arc__annotate_init(struct arch *arch, char *cpuid __maybe_unused) in arc__annotate_init()
/tools/perf/arch/x86/annotate/
Dinstructions.c175 static int x86__cpuid_parse(struct arch *arch, char *cpuid) in x86__cpuid_parse() argument
183 ret = sscanf(cpuid, "%*[^,],%u,%u,%u", &family, &model, &stepping); in x86__cpuid_parse()
193 static int x86__annotate_init(struct arch *arch, char *cpuid) in x86__annotate_init() argument
200 if (cpuid) { in x86__annotate_init()
201 if (x86__cpuid_parse(arch, cpuid)) in x86__annotate_init()
/tools/perf/arch/s390/util/
Dkvm-stat.c102 int cpu_isa_init(struct perf_kvm_stat *kvm, const char *cpuid) in cpu_isa_init() argument
104 if (strstr(cpuid, "IBM")) { in cpu_isa_init()
/tools/perf/pmu-events/
Dpmu-events.h40 const char *cpuid; member
/tools/perf/arch/csky/annotate/
Dinstructions.c41 static int csky__annotate_init(struct arch *arch, char *cpuid __maybe_unused) in csky__annotate_init()
/tools/perf/arch/powerpc/annotate/
Dinstructions.c52 static int powerpc__annotate_init(struct arch *arch, char *cpuid __maybe_unused) in powerpc__annotate_init()
/tools/perf/arch/arm/annotate/
Dinstructions.c30 static int arm__annotate_init(struct arch *arch, char *cpuid __maybe_unused) in arm__annotate_init()
/tools/arch/s390/include/uapi/asm/
Dkvm.h99 __u64 cpuid; member
108 __u64 cpuid; member
/tools/testing/selftests/net/
Dpsock_fanout.c398 static int set_cpuaffinity(int cpuid) in set_cpuaffinity() argument
403 CPU_SET(cpuid, &mask); in set_cpuaffinity()
406 fprintf(stderr, "setaffinity %d\n", cpuid); in set_cpuaffinity()
/tools/perf/tests/
Dcode-reading.c512 char cpuid[128], model[16], model_c[16], cpum_cf_v[16]; in do_determine_event() local
516 if (get_cpuid(cpuid, sizeof(cpuid))) in do_determine_event()
518 ret = sscanf(cpuid, "%*[^,],%u,%[^,],%[^,],%[^,],%x", &family, model_c, in do_determine_event()
Dpmu-events.c140 for (map = &pmu_events_map[0]; map->cpuid; map++) { in __test_pmu_get_events_map()
141 if (!strcmp(map->cpuid, "testcpu")) in __test_pmu_get_events_map()
455 msg, map->cpuid, map->version, map->type); in expr_failure()
/tools/perf/arch/sparc/annotate/
Dinstructions.c160 static int sparc__annotate_init(struct arch *arch, char *cpuid __maybe_unused) in sparc__annotate_init()
/tools/perf/arch/arm64/annotate/
Dinstructions.c88 static int arm64__annotate_init(struct arch *arch, char *cpuid __maybe_unused) in arm64__annotate_init()
/tools/testing/selftests/kvm/include/x86_64/
Dprocessor.h327 struct kvm_cpuid2 *cpuid);
372 bool set_cpuid(struct kvm_cpuid2 *cpuid, struct kvm_cpuid_entry2 *ent);

12