AArch64 EL2 hypervisor for QEMU virt that boots at EL2
1

Configure Feed

Select the types of activity you want to include in your feed.

ariel / tests / test_log_decode.py
617 B 25 lines
1import subprocess 2import sys 3 4 5def run_log_decode(input_text: str, *args: str) -> str: 6 proc = subprocess.run( 7 [sys.executable, "tools/log_decode.py", *args], 8 input=input_text, 9 text=True, 10 check=True, 11 capture_output=True, 12 ) 13 return proc.stdout 14 15 16sample = "event seq=7 vcpu=0 kind=trap ec=0x18 name=sctlr_el1 dir=write action=3 reason=104\n" 17 18plain = run_log_decode(sample) 19assert "seq=7" in plain 20assert "name=sctlr_el1" in plain 21 22summary = run_log_decode(sample, "--summary") 23assert "events: 1" in summary 24assert "trap: 1" in summary 25assert "sctlr_el1: 1" in summary