Lines Matching +full:re +full:- +full:enabled

3 # Test GDB memory-tag commands that exercise the stubs for the qIsAddressTagged,
5 # Logical tags-related commands rely on local operations, hence don't exercise
9 # chunk, and then using the GDB 'memory-tagging' subcommands to set/get tags in
10 # different memory locations and ranges in the MTE-enabled memory chunk.
12 # This is launched via tests/guest-debug/run-test.py
20 exit("This script must be launched via tests/guest-debug/run-test.py!")
21 import re
26 PATTERN_0 = r"Memory tags for address 0x[0-9a-f]+ match \(0x[0-9a-f]+\)."
27 PATTERN_1 = r".*(0x[0-9a-f]+)"
31 p = arg_parser(prog="test-mte.py", description="TCG MTE tests.")
32 p.add_argument("--mode", help="Run test for QEMU system or user mode.",
41 # Tagged address: the start of the MTE-enabled memory chunk to be tested
42 # 'tagged_addr' (x1) is a pointer to the MTE-enabled page. See mte.S.
45 # Line 95 in mte-8.c
47 # 'a' array. See mte-8.c
56 co = gdb.execute(f"memory-tag check {ta}", False, True)
57 tags_match = re.findall(PATTERN_0, co, re.MULTILINE)
68 gdb.execute(f"memory-tag set-allocation-tag {ta} 1 04", False, True)
73 gdb.execute(f"memory-tag set-allocation-tag {ta}+16 1 06", False, True)
77 co = gdb.execute(f"memory-tag print-allocation-tag {ta}", False, True)
78 first_tag = re.match(PATTERN_1, co)[1]
80 co = gdb.execute(f"memory-tag print-allocation-tag {ta}+16", False, True)
81 second_tag = re.match(PATTERN_1, co)[1]
89 gdb.execute(f"memory-tag set-allocation-tag {ta} 4096 0a0b", False, True)
94 co = gdb.execute(f"memory-tag print-allocation-tag {ta}+4096-32", False, True)
95 tag = re.match(PATTERN_1, co)[1]
97 co = gdb.execute(f"memory-tag print-allocation-tag {ta}+4096-16", False, True)
98 last_tag = re.match(PATTERN_1, co)[1]
108 report(False, "'memory-tag' command failed!")