Home
last modified time | relevance | path

Searched +full:pmu +full:- +full:event +full:- +full:counter +full:- +full:config (Results 1 – 5 of 5) sorted by relevance

/kvm-unit-tests/arm/
H A Dunittests.cfg12 # that the configured amount of memory (-m <MB>) are correctly setup
15 [selftest-setup]
19 qemu_params = -m 256
20 kvmtool_params = --mem 256
24 [selftest-vectors-kernel]
26 test_args = vectors-kernel
30 [selftest-vectors-user]
32 test_args = vectors-user
36 [selftest-smp]
43 [pci-test]
[all …]
H A Dpmu.c2 * Test the ARM Performance Monitors Unit (PMU).
4 * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
43 /* Some PMU events */
75 #define PRE_OVERFLOW2_32 (ALL_SET_32 - COUNT - MARGIN)
76 #define PRE_OVERFLOW2_64 (ALL_SET_64 - COUNT - MARGIN)
86 struct pmu { struct
98 static struct pmu pmu; variable
176 set_pmcr(pmu.pmcr_ro | PMU_PMCR_LC | PMU_PMCR_C | PMU_PMCR_P); in pmu_reset()
186 /* event counter tests only implemented for aarch64 */
260 * The low 32-bits of PMCEID0/1 respectively describe in is_event_supported()
[all …]
/kvm-unit-tests/x86/
H A Dpmu.c4 #include "x86/pmu.h"
5 #include "x86/apic-defs.h"
27 "add $(2f-1b), %%eax\n\t" \
38 "add $(2f-1b), %%rax\n\t" \
106 uint64_t config; member
195 u32 global_ctl = pmu.msr_global_ctl; in __precise_loop()
196 u32 eax = cntrs & (BIT_ULL(32) - 1); in __precise_loop()
228 * as the counts will vary depending on how many asynchronous VM-Exits in adjust_events_range()
231 if (pmu.is_intel && this_cpu_has_perf_global_ctrl()) { in adjust_events_range()
241 * overwrite the lower boundary of branch misses event to 0 to avoid in adjust_events_range()
[all …]
H A Dvmx_tests.c12 #include "pmu.h"
51 int pos = -1; in ffs()
156 if (((rdtsc() - tsc_val) >> preempt_scale) in preemption_timer_main()
183 report(((rdtsc() - tsc_val) >> preempt_scale) >= preempt_val, in preemption_timer_exit_handler()
184 "busy-wait for preemption timer"); in preemption_timer_exit_handler()
191 report(((rdtsc() - tsc_val) >> preempt_scale) >= preempt_val in preemption_timer_exit_handler()
228 report_fail("busy-wait for preemption timer"); in preemption_timer_exit_handler()
659 report(vmx_get_test_stage() == 0, "I/O bitmap - I/O pass"); in iobmp_main()
664 report(vmx_get_test_stage() == 3, "I/O bitmap - trap in"); in iobmp_main()
667 report(vmx_get_test_stage() == 4, "I/O bitmap - trap out"); in iobmp_main()
[all …]
/kvm-unit-tests/
H A D.gitlab-ci.yml4 - dnf update -y
5 - dnf install -y make python
15 - logs
23 - build/logs
25 build-aarch64:
28 - dnf install -y qemu-system-aarch64 gcc-aarch64-linux-gnu
29 - ./configure --arch=aarch64 --cross-prefix=aarch64-linux-gnu-
30 - make -j2
31 - ACCEL=tcg MAX_SMP=8 ./run_tests.sh
33 debug-bp
[all …]