Re: [kvm-unit-tests PATCH] x86: amd: pmu: test performance counter on AMD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +		if (!is_intel_chip) {
> +			id = raw_cpuid(0x80000001, 0);
> +			if (id.c & (1 << 23))
> +				/* support core perfmon */
> +				gp_counter_base = MSR_F15H_PERF_CTR;
> +
> +			eax.split.num_counters = 6;
> +			num_counters = eax.split.num_counters;
> +			report_prefix_push("core perf");
> +			check_counters();
> +			check_amd_gp_counters_write_width();
> +		}

Stupid fault, shouldn't continue without core perfmon counter.
```
+		if (!is_intel_chip) {
+			id = raw_cpuid(0x80000001, 0);
+			if (id.c & (1 << 23)) {
+				/* support core perfmon */
+				gp_counter_base = MSR_F15H_PERF_CTR;
+				eax.split.num_counters = 6;
+				num_counters = eax.split.num_counters;
+				report_prefix_push("core perf");
+				check_counters();
+				check_amd_gp_counters_write_width();
+			}
+		}
```



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux