Home
last modified time | relevance | path

Searched refs:assert_msg (Results 1 – 25 of 31) sorted by relevance

12

/kvm-unit-tests/lib/arm/
H A Dpsci.c77 assert_msg(node >= 0, "PSCI v0.2 compatibility required"); in psci_set_conduit_fdt()
87 assert_msg(false, "Unknown PSCI conduit: %s", method->data); in psci_set_conduit_fdt()
98 assert_msg(fadt, "Unable to find ACPI FADT"); in psci_set_conduit_acpi()
99 assert_msg(fadt->arm_boot_flags & ACPI_FADT_PSCI_COMPLIANT, in psci_set_conduit_acpi()
112 assert_msg(false, "ACPI not available"); in psci_set_conduit_acpi()
H A Dio.c82 assert_msg(spcr, "Unable to find ACPI SPCR"); in uart0_init_acpi()
89 assert_msg(false, "ACPI not available"); in uart0_init_acpi()
H A Dsmp.c71 assert_msg(!cpu_online(cpu), "CPU%d already boot once", cpu); in smp_boot_secondary()
H A Dsetup.c66 assert_msg(cpu < NR_CPUS, "Number cpus exceeds maximum supported (%d).", NR_CPUS); in cpu_set_fdt()
81 assert_msg(cpu < NR_CPUS, "Number cpus exceeds maximum supported (%d).", NR_CPUS); in cpu_set_acpi()
98 assert_msg(false, "ACPI not available"); in cpu_init_acpi()
H A Dtimer.c81 assert_msg(false, "ACPI not available"); in timer_save_state_acpi()
H A Dmmu.c73 assert_msg(__virt_to_phys(sp) == sp, in mmu_disable()
216 assert_msg(system_supports_granule(PAGE_SIZE), in setup_mmu()
H A Dgic-v3.c183 assert_msg(gicv3_data.redist_base[cpu], "Redistributor for cpu%d not initialized. " in gicv3_lpi_alloc_tables()
/kvm-unit-tests/lib/riscv/
H A Dtimer.c22 assert_msg(dt_available(), "ACPI not yet supported"); in timer_get_frequency()
49 assert_msg(false, "No timer to start!"); in timer_start()
70 assert_msg(false, "No timer to stop!"); in timer_stop()
H A Dsmp.c71 assert_msg(ret.value == SBI_EXT_HSM_STOPPED, "CPU%d is not stopped", cpu); in smp_boot_secondary()
90 assert_msg(ret.value == SBI_EXT_HSM_START_PENDING || ret.value == SBI_EXT_HSM_STARTED, in smp_boot_secondary_nofail()
H A Disa.c88 assert_msg(false, "ACPI not available"); in isa_init_acpi()
122 assert_msg(false, "ACPI not available"); in cpu_has_extension_name()
H A Dsetup.c55 assert_msg(cpu < NR_CPUS, "Number cpus exceeds maximum supported (%d).", NR_CPUS); in cpu_set_fdt()
66 assert_msg(false, "ACPI not available"); in cpu_init_acpi()
H A Dio.c102 assert_msg(false, "ACPI not available"); in uart0_init_acpi()
/kvm-unit-tests/lib/powerpc/
H A Dprocessor.c190 assert_msg(!in_usermode(), "enter_usermode called with in_usermode"); in enter_usermode()
192 assert_msg(!(mfmsr() & MSR_PR), "enter_usermode called from user mode"); in enter_usermode()
193 assert_msg(!(mfmsr() & MSR_EE), "enter_usermode called with interrupts enabled"); in enter_usermode()
194 assert_msg((mfmsr() & (MSR_IR|MSR_DR)) == (MSR_IR|MSR_DR), in enter_usermode()
204 assert_msg(in_usermode(), "enter_usermode called with !in_usermode"); in exit_usermode()
H A Drtas.c141 assert_msg(!in_usermode(), "May not make RTAS call from user mode\n"); in rtas_call()
/kvm-unit-tests/lib/
H A Dreport.c38 assert_msg(len < sizeof(prefixes), "%d >= %zu", len, sizeof(prefixes)); in report_prefix_pushf()
45 assert_msg(len < sizeof(prefixes), "%d >= %zu", len, sizeof(prefixes)); in report_prefix_pushf()
47 assert_msg(!strstr(&prefixes[start], PREFIX_DELIMITER), in report_prefix_pushf()
53 assert_msg(len < sizeof(prefixes), "%d >= %zu", len, sizeof(prefixes)); in report_prefix_pushf()
H A Don-cpus.c93 assert_msg(cpu != 0 || cpu0_calls_idle, "Waiting on CPU0, which is unlikely to idle. " in on_cpu_async()
H A Dlibcflat.h141 #define assert_msg(cond, fmt, args...) \ macro
H A Dvmalloc.c218assert_msg(vm_available(), "Virtual memory not available. Must check vm_available() before calling… in __setup_vm()
/kvm-unit-tests/lib/arm/asm/
H A Dgic-v3-its.h24 assert_msg(false, "not supported on 32-bit"); in its_init()
/kvm-unit-tests/lib/s390x/
H A Dsie-icpt.c42 assert_msg(false, "unknown diag 0x%x", diag); in sie_is_diag_icpt()
/kvm-unit-tests/arm/
H A Dmicro-bench.c167assert_msg(irq_received, "failed to receive IPI in time, but received %d successfully\n", nr_ipi_r… in ipi_exec()
209assert_msg(irq_received, "failed to receive LPI in time, but received %d successfully\n", received… in lpi_exec()
247assert_msg(irq_received, "failed to receive PPI in time, but received %d successfully\n", received… in timer_exec()
/kvm-unit-tests/lib/ppc64/
H A Dmmu.c177 assert_msg(cpu_has_radix, "MMU support requires radix MMU."); in setup_mmu()
201 assert_msg(!ret, "H_REGISTER_PROCESS_TABLE failed! err=%d\n", ret); in setup_mmu()
/kvm-unit-tests/lib/x86/
H A Dprocessor.h519 assert_msg(!vector, "Unexpected %s on RDPMC(%" PRId32 ")", in rdpmc()
543 assert_msg(!vector, "Unexpected fault '%d' writing CR0 = %lx", in write_cr0()
575 assert_msg(!vector, "Unexpected fault '%d' writing CR3 = %lx", in write_cr3()
600 assert_msg(!vector, "Unexpected fault '%d' writing CR4 = %lx", in write_cr4()
/kvm-unit-tests/riscv/
H A Dsbi.c90 assert_msg(0, "cpu%d (hartid = %lx) failed to stop with sbiret.error %ld", in stop_cpu()
178 assert_msg(!(expected & BIT(31)), "SBI spec version bit 31 must be zero"); in check_base()
179assert_msg(__riscv_xlen == 32 || !(expected >> 32), "SBI spec version bits greater than 31 must be… in check_base()
1340 assert_msg(!ret.error && ret.value == SBI_EXT_HSM_STARTED, in susp_basic_prep()
1343 assert_msg(!ret.error && ret.value == SBI_EXT_HSM_STOPPED, in susp_basic_prep()
1434 assert_msg(!ret.error, "HSM get status failed for cpu%d", cpu); in susp_one_prep()
/kvm-unit-tests/s390x/
H A Dspec_ex.c35 assert_msg(invalid_psw_expected, in fixup_invalid_psw()

12