diff options
author | Len Brown <len.brown@intel.com> | 2006-06-29 19:57:46 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-06-29 19:57:46 -0400 |
commit | d120cfb544ed6161b9d32fb6c4648c471807ee6b (patch) | |
tree | 7757ad0198d8df76ff5c60f939a687687c41da00 /scripts | |
parent | 9dce0e950dbfab4148f35ac6f297d8638cdc63c4 (diff) | |
parent | bf7e8511088963078484132636839b59e25cf14f (diff) |
merge linus into release branch
Conflicts:
drivers/acpi/acpi_memhotplug.c
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Kbuild.include | 5 | ||||
-rw-r--r-- | scripts/Makefile.build | 2 | ||||
-rw-r--r-- | scripts/Makefile.host | 6 | ||||
-rw-r--r-- | scripts/Makefile.lib | 6 | ||||
-rw-r--r-- | scripts/Makefile.modpost | 2 | ||||
-rw-r--r-- | scripts/rt-tester/check-all.sh | 22 | ||||
-rw-r--r-- | scripts/rt-tester/rt-tester.py | 222 | ||||
-rw-r--r-- | scripts/rt-tester/t2-l1-2rt-sameprio.tst | 99 | ||||
-rw-r--r-- | scripts/rt-tester/t2-l1-pi.tst | 82 | ||||
-rw-r--r-- | scripts/rt-tester/t2-l1-signal.tst | 77 | ||||
-rw-r--r-- | scripts/rt-tester/t2-l2-2rt-deadlock.tst | 89 | ||||
-rw-r--r-- | scripts/rt-tester/t3-l1-pi-1rt.tst | 92 | ||||
-rw-r--r-- | scripts/rt-tester/t3-l1-pi-2rt.tst | 93 | ||||
-rw-r--r-- | scripts/rt-tester/t3-l1-pi-3rt.tst | 92 | ||||
-rw-r--r-- | scripts/rt-tester/t3-l1-pi-signal.tst | 98 | ||||
-rw-r--r-- | scripts/rt-tester/t3-l1-pi-steal.tst | 96 | ||||
-rw-r--r-- | scripts/rt-tester/t3-l2-pi.tst | 92 | ||||
-rw-r--r-- | scripts/rt-tester/t4-l2-pi-deboost.tst | 123 | ||||
-rw-r--r-- | scripts/rt-tester/t5-l4-pi-boost-deboost-setsched.tst | 183 | ||||
-rw-r--r-- | scripts/rt-tester/t5-l4-pi-boost-deboost.tst | 143 |
20 files changed, 1610 insertions, 14 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index ac5f275b0283..b0d067be7390 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include | |||
@@ -13,11 +13,6 @@ space := $(empty) $(empty) | |||
13 | depfile = $(subst $(comma),_,$(@D)/.$(@F).d) | 13 | depfile = $(subst $(comma),_,$(@D)/.$(@F).d) |
14 | 14 | ||
15 | ### | 15 | ### |
16 | # basetarget equals the filename of the target with no extension. | ||
17 | # So 'foo/bar.o' becomes 'bar' | ||
18 | basetarget = $(basename $(notdir $@)) | ||
19 | |||
20 | ### | ||
21 | # Escape single quote for use in echo statements | 16 | # Escape single quote for use in echo statements |
22 | escsq = $(subst $(squote),'\$(squote)',$1) | 17 | escsq = $(subst $(squote),'\$(squote)',$1) |
23 | 18 | ||
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 3cb445cc7432..02a7eea5fdbc 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
@@ -117,7 +117,7 @@ $(real-objs-m:.o=.lst): quiet_modtag := [M] | |||
117 | $(obj-m) : quiet_modtag := [M] | 117 | $(obj-m) : quiet_modtag := [M] |
118 | 118 | ||
119 | # Default for not multi-part modules | 119 | # Default for not multi-part modules |
120 | modname = $(basetarget) | 120 | modname = $(*F) |
121 | 121 | ||
122 | $(multi-objs-m) : modname = $(modname-multi) | 122 | $(multi-objs-m) : modname = $(modname-multi) |
123 | $(multi-objs-m:.o=.i) : modname = $(modname-multi) | 123 | $(multi-objs-m:.o=.i) : modname = $(modname-multi) |
diff --git a/scripts/Makefile.host b/scripts/Makefile.host index 18ecd4d5df7f..2b066d12af2c 100644 --- a/scripts/Makefile.host +++ b/scripts/Makefile.host | |||
@@ -80,10 +80,8 @@ obj-dirs += $(host-objdirs) | |||
80 | ##### | 80 | ##### |
81 | # Handle options to gcc. Support building with separate output directory | 81 | # Handle options to gcc. Support building with separate output directory |
82 | 82 | ||
83 | _hostc_flags = $(HOSTCFLAGS) $(HOST_EXTRACFLAGS) \ | 83 | _hostc_flags = $(HOSTCFLAGS) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS_$(*F).o) |
84 | $(HOSTCFLAGS_$(basetarget).o) | 84 | _hostcxx_flags = $(HOSTCXXFLAGS) $(HOST_EXTRACXXFLAGS) $(HOSTCXXFLAGS_$(*F).o) |
85 | _hostcxx_flags = $(HOSTCXXFLAGS) $(HOST_EXTRACXXFLAGS) \ | ||
86 | $(HOSTCXXFLAGS_$(basetarget).o) | ||
87 | 85 | ||
88 | ifeq ($(KBUILD_SRC),) | 86 | ifeq ($(KBUILD_SRC),) |
89 | __hostc_flags = $(_hostc_flags) | 87 | __hostc_flags = $(_hostc_flags) |
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index fc498fee68ed..2cb4935e85d1 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib | |||
@@ -82,12 +82,12 @@ obj-dirs := $(addprefix $(obj)/,$(obj-dirs)) | |||
82 | # than one module. In that case KBUILD_MODNAME will be set to foo_bar, | 82 | # than one module. In that case KBUILD_MODNAME will be set to foo_bar, |
83 | # where foo and bar are the name of the modules. | 83 | # where foo and bar are the name of the modules. |
84 | name-fix = $(subst $(comma),_,$(subst -,_,$1)) | 84 | name-fix = $(subst $(comma),_,$(subst -,_,$1)) |
85 | basename_flags = -D"KBUILD_BASENAME=KBUILD_STR($(call name-fix,$(basetarget)))" | 85 | basename_flags = -D"KBUILD_BASENAME=KBUILD_STR($(call name-fix,$(*F)))" |
86 | modname_flags = $(if $(filter 1,$(words $(modname))),\ | 86 | modname_flags = $(if $(filter 1,$(words $(modname))),\ |
87 | -D"KBUILD_MODNAME=KBUILD_STR($(call name-fix,$(modname)))") | 87 | -D"KBUILD_MODNAME=KBUILD_STR($(call name-fix,$(modname)))") |
88 | 88 | ||
89 | _c_flags = $(CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$(basetarget).o) | 89 | _c_flags = $(CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$(*F).o) |
90 | _a_flags = $(AFLAGS) $(EXTRA_AFLAGS) $(AFLAGS_$(basetarget).o) | 90 | _a_flags = $(AFLAGS) $(EXTRA_AFLAGS) $(AFLAGS_$(*F).o) |
91 | _cpp_flags = $(CPPFLAGS) $(EXTRA_CPPFLAGS) $(CPPFLAGS_$(@F)) | 91 | _cpp_flags = $(CPPFLAGS) $(EXTRA_CPPFLAGS) $(CPPFLAGS_$(@F)) |
92 | 92 | ||
93 | # If building the kernel in a separate objtree expand all occurrences | 93 | # If building the kernel in a separate objtree expand all occurrences |
diff --git a/scripts/Makefile.modpost b/scripts/Makefile.modpost index e83613e0e827..576cce5e387f 100644 --- a/scripts/Makefile.modpost +++ b/scripts/Makefile.modpost | |||
@@ -72,7 +72,7 @@ $(modules:.ko=.mod.c): __modpost ; | |||
72 | # Step 5), compile all *.mod.c files | 72 | # Step 5), compile all *.mod.c files |
73 | 73 | ||
74 | # modname is set to make c_flags define KBUILD_MODNAME | 74 | # modname is set to make c_flags define KBUILD_MODNAME |
75 | modname = $(basetarget) | 75 | modname = $(*F) |
76 | 76 | ||
77 | quiet_cmd_cc_o_c = CC $@ | 77 | quiet_cmd_cc_o_c = CC $@ |
78 | cmd_cc_o_c = $(CC) $(c_flags) $(CFLAGS_MODULE) \ | 78 | cmd_cc_o_c = $(CC) $(c_flags) $(CFLAGS_MODULE) \ |
diff --git a/scripts/rt-tester/check-all.sh b/scripts/rt-tester/check-all.sh new file mode 100644 index 000000000000..43098afe7431 --- /dev/null +++ b/scripts/rt-tester/check-all.sh | |||
@@ -0,0 +1,22 @@ | |||
1 | |||
2 | |||
3 | function testit () | ||
4 | { | ||
5 | printf "%-30s: " $1 | ||
6 | ./rt-tester.py $1 | grep Pass | ||
7 | } | ||
8 | |||
9 | testit t2-l1-2rt-sameprio.tst | ||
10 | testit t2-l1-pi.tst | ||
11 | testit t2-l1-signal.tst | ||
12 | #testit t2-l2-2rt-deadlock.tst | ||
13 | testit t3-l1-pi-1rt.tst | ||
14 | testit t3-l1-pi-2rt.tst | ||
15 | testit t3-l1-pi-3rt.tst | ||
16 | testit t3-l1-pi-signal.tst | ||
17 | testit t3-l1-pi-steal.tst | ||
18 | testit t3-l2-pi.tst | ||
19 | testit t4-l2-pi-deboost.tst | ||
20 | testit t5-l4-pi-boost-deboost.tst | ||
21 | testit t5-l4-pi-boost-deboost-setsched.tst | ||
22 | |||
diff --git a/scripts/rt-tester/rt-tester.py b/scripts/rt-tester/rt-tester.py new file mode 100644 index 000000000000..4c79660793cf --- /dev/null +++ b/scripts/rt-tester/rt-tester.py | |||
@@ -0,0 +1,222 @@ | |||
1 | #!/usr/bin/env python | ||
2 | # | ||
3 | # rt-mutex tester | ||
4 | # | ||
5 | # (C) 2006 Thomas Gleixner <tglx@linutronix.de> | ||
6 | # | ||
7 | # This program is free software; you can redistribute it and/or modify | ||
8 | # it under the terms of the GNU General Public License version 2 as | ||
9 | # published by the Free Software Foundation. | ||
10 | # | ||
11 | import os | ||
12 | import sys | ||
13 | import getopt | ||
14 | import shutil | ||
15 | import string | ||
16 | |||
17 | # Globals | ||
18 | quiet = 0 | ||
19 | test = 0 | ||
20 | comments = 0 | ||
21 | |||
22 | sysfsprefix = "/sys/devices/system/rttest/rttest" | ||
23 | statusfile = "/status" | ||
24 | commandfile = "/command" | ||
25 | |||
26 | # Command opcodes | ||
27 | cmd_opcodes = { | ||
28 | "schedother" : "1", | ||
29 | "schedfifo" : "2", | ||
30 | "lock" : "3", | ||
31 | "locknowait" : "4", | ||
32 | "lockint" : "5", | ||
33 | "lockintnowait" : "6", | ||
34 | "lockcont" : "7", | ||
35 | "unlock" : "8", | ||
36 | "lockbkl" : "9", | ||
37 | "unlockbkl" : "10", | ||
38 | "signal" : "11", | ||
39 | "resetevent" : "98", | ||
40 | "reset" : "99", | ||
41 | } | ||
42 | |||
43 | test_opcodes = { | ||
44 | "prioeq" : ["P" , "eq" , None], | ||
45 | "priolt" : ["P" , "lt" , None], | ||
46 | "priogt" : ["P" , "gt" , None], | ||
47 | "nprioeq" : ["N" , "eq" , None], | ||
48 | "npriolt" : ["N" , "lt" , None], | ||
49 | "npriogt" : ["N" , "gt" , None], | ||
50 | "unlocked" : ["M" , "eq" , 0], | ||
51 | "trylock" : ["M" , "eq" , 1], | ||
52 | "blocked" : ["M" , "eq" , 2], | ||
53 | "blockedwake" : ["M" , "eq" , 3], | ||
54 | "locked" : ["M" , "eq" , 4], | ||
55 | "opcodeeq" : ["O" , "eq" , None], | ||
56 | "opcodelt" : ["O" , "lt" , None], | ||
57 | "opcodegt" : ["O" , "gt" , None], | ||
58 | "eventeq" : ["E" , "eq" , None], | ||
59 | "eventlt" : ["E" , "lt" , None], | ||
60 | "eventgt" : ["E" , "gt" , None], | ||
61 | } | ||
62 | |||
63 | # Print usage information | ||
64 | def usage(): | ||
65 | print "rt-tester.py <-c -h -q -t> <testfile>" | ||
66 | print " -c display comments after first command" | ||
67 | print " -h help" | ||
68 | print " -q quiet mode" | ||
69 | print " -t test mode (syntax check)" | ||
70 | print " testfile: read test specification from testfile" | ||
71 | print " otherwise from stdin" | ||
72 | return | ||
73 | |||
74 | # Print progress when not in quiet mode | ||
75 | def progress(str): | ||
76 | if not quiet: | ||
77 | print str | ||
78 | |||
79 | # Analyse a status value | ||
80 | def analyse(val, top, arg): | ||
81 | |||
82 | intval = int(val) | ||
83 | |||
84 | if top[0] == "M": | ||
85 | intval = intval / (10 ** int(arg)) | ||
86 | intval = intval % 10 | ||
87 | argval = top[2] | ||
88 | elif top[0] == "O": | ||
89 | argval = int(cmd_opcodes.get(arg, arg)) | ||
90 | else: | ||
91 | argval = int(arg) | ||
92 | |||
93 | # progress("%d %s %d" %(intval, top[1], argval)) | ||
94 | |||
95 | if top[1] == "eq" and intval == argval: | ||
96 | return 1 | ||
97 | if top[1] == "lt" and intval < argval: | ||
98 | return 1 | ||
99 | if top[1] == "gt" and intval > argval: | ||
100 | return 1 | ||
101 | return 0 | ||
102 | |||
103 | # Parse the commandline | ||
104 | try: | ||
105 | (options, arguments) = getopt.getopt(sys.argv[1:],'chqt') | ||
106 | except getopt.GetoptError, ex: | ||
107 | usage() | ||
108 | sys.exit(1) | ||
109 | |||
110 | # Parse commandline options | ||
111 | for option, value in options: | ||
112 | if option == "-c": | ||
113 | comments = 1 | ||
114 | elif option == "-q": | ||
115 | quiet = 1 | ||
116 | elif option == "-t": | ||
117 | test = 1 | ||
118 | elif option == '-h': | ||
119 | usage() | ||
120 | sys.exit(0) | ||
121 | |||
122 | # Select the input source | ||
123 | if arguments: | ||
124 | try: | ||
125 | fd = open(arguments[0]) | ||
126 | except Exception,ex: | ||
127 | sys.stderr.write("File not found %s\n" %(arguments[0])) | ||
128 | sys.exit(1) | ||
129 | else: | ||
130 | fd = sys.stdin | ||
131 | |||
132 | linenr = 0 | ||
133 | |||
134 | # Read the test patterns | ||
135 | while 1: | ||
136 | |||
137 | linenr = linenr + 1 | ||
138 | line = fd.readline() | ||
139 | if not len(line): | ||
140 | break | ||
141 | |||
142 | line = line.strip() | ||
143 | parts = line.split(":") | ||
144 | |||
145 | if not parts or len(parts) < 1: | ||
146 | continue | ||
147 | |||
148 | if len(parts[0]) == 0: | ||
149 | continue | ||
150 | |||
151 | if parts[0].startswith("#"): | ||
152 | if comments > 1: | ||
153 | progress(line) | ||
154 | continue | ||
155 | |||
156 | if comments == 1: | ||
157 | comments = 2 | ||
158 | |||
159 | progress(line) | ||
160 | |||
161 | cmd = parts[0].strip().lower() | ||
162 | opc = parts[1].strip().lower() | ||
163 | tid = parts[2].strip() | ||
164 | dat = parts[3].strip() | ||
165 | |||
166 | try: | ||
167 | # Test or wait for a status value | ||
168 | if cmd == "t" or cmd == "w": | ||
169 | testop = test_opcodes[opc] | ||
170 | |||
171 | fname = "%s%s%s" %(sysfsprefix, tid, statusfile) | ||
172 | if test: | ||
173 | print fname | ||
174 | continue | ||
175 | |||
176 | while 1: | ||
177 | query = 1 | ||
178 | fsta = open(fname, 'r') | ||
179 | status = fsta.readline().strip() | ||
180 | fsta.close() | ||
181 | stat = status.split(",") | ||
182 | for s in stat: | ||
183 | s = s.strip() | ||
184 | if s.startswith(testop[0]): | ||
185 | # Seperate status value | ||
186 | val = s[2:].strip() | ||
187 | query = analyse(val, testop, dat) | ||
188 | break | ||
189 | if query or cmd == "t": | ||
190 | break | ||
191 | |||
192 | progress(" " + status) | ||
193 | |||
194 | if not query: | ||
195 | sys.stderr.write("Test failed in line %d\n" %(linenr)) | ||
196 | sys.exit(1) | ||
197 | |||
198 | # Issue a command to the tester | ||
199 | elif cmd == "c": | ||
200 | cmdnr = cmd_opcodes[opc] | ||
201 | # Build command string and sys filename | ||
202 | cmdstr = "%s:%s" %(cmdnr, dat) | ||
203 | fname = "%s%s%s" %(sysfsprefix, tid, commandfile) | ||
204 | if test: | ||
205 | print fname | ||
206 | continue | ||
207 | fcmd = open(fname, 'w') | ||
208 | fcmd.write(cmdstr) | ||
209 | fcmd.close() | ||
210 | |||
211 | except Exception,ex: | ||
212 | sys.stderr.write(str(ex)) | ||
213 | sys.stderr.write("\nSyntax error in line %d\n" %(linenr)) | ||
214 | if not test: | ||
215 | fd.close() | ||
216 | sys.exit(1) | ||
217 | |||
218 | # Normal exit pass | ||
219 | print "Pass" | ||
220 | sys.exit(0) | ||
221 | |||
222 | |||
diff --git a/scripts/rt-tester/t2-l1-2rt-sameprio.tst b/scripts/rt-tester/t2-l1-2rt-sameprio.tst new file mode 100644 index 000000000000..8821f27cc8be --- /dev/null +++ b/scripts/rt-tester/t2-l1-2rt-sameprio.tst | |||
@@ -0,0 +1,99 @@ | |||
1 | # | ||
2 | # RT-Mutex test | ||
3 | # | ||
4 | # Op: C(ommand)/T(est)/W(ait) | ||
5 | # | opcode | ||
6 | # | | threadid: 0-7 | ||
7 | # | | | opcode argument | ||
8 | # | | | | | ||
9 | # C: lock: 0: 0 | ||
10 | # | ||
11 | # Commands | ||
12 | # | ||
13 | # opcode opcode argument | ||
14 | # schedother nice value | ||
15 | # schedfifo priority | ||
16 | # lock lock nr (0-7) | ||
17 | # locknowait lock nr (0-7) | ||
18 | # lockint lock nr (0-7) | ||
19 | # lockintnowait lock nr (0-7) | ||
20 | # lockcont lock nr (0-7) | ||
21 | # unlock lock nr (0-7) | ||
22 | # lockbkl lock nr (0-7) | ||
23 | # unlockbkl lock nr (0-7) | ||
24 | # signal 0 | ||
25 | # reset 0 | ||
26 | # resetevent 0 | ||
27 | # | ||
28 | # Tests / Wait | ||
29 | # | ||
30 | # opcode opcode argument | ||
31 | # | ||
32 | # prioeq priority | ||
33 | # priolt priority | ||
34 | # priogt priority | ||
35 | # nprioeq normal priority | ||
36 | # npriolt normal priority | ||
37 | # npriogt normal priority | ||
38 | # locked lock nr (0-7) | ||
39 | # blocked lock nr (0-7) | ||
40 | # blockedwake lock nr (0-7) | ||
41 | # unlocked lock nr (0-7) | ||
42 | # lockedbkl dont care | ||
43 | # blockedbkl dont care | ||
44 | # unlockedbkl dont care | ||
45 | # opcodeeq command opcode or number | ||
46 | # opcodelt number | ||
47 | # opcodegt number | ||
48 | # eventeq number | ||
49 | # eventgt number | ||
50 | # eventlt number | ||
51 | |||
52 | # | ||
53 | # 2 threads 1 lock | ||
54 | # | ||
55 | C: resetevent: 0: 0 | ||
56 | W: opcodeeq: 0: 0 | ||
57 | |||
58 | # Set schedulers | ||
59 | C: schedfifo: 0: 80 | ||
60 | C: schedfifo: 1: 80 | ||
61 | |||
62 | # T0 lock L0 | ||
63 | C: locknowait: 0: 0 | ||
64 | C: locknowait: 1: 0 | ||
65 | W: locked: 0: 0 | ||
66 | W: blocked: 1: 0 | ||
67 | T: prioeq: 0: 80 | ||
68 | |||
69 | # T0 unlock L0 | ||
70 | C: unlock: 0: 0 | ||
71 | W: locked: 1: 0 | ||
72 | |||
73 | # Verify T0 | ||
74 | W: unlocked: 0: 0 | ||
75 | T: prioeq: 0: 80 | ||
76 | |||
77 | # Unlock | ||
78 | C: unlock: 1: 0 | ||
79 | W: unlocked: 1: 0 | ||
80 | |||
81 | # T1,T0 lock L0 | ||
82 | C: locknowait: 1: 0 | ||
83 | C: locknowait: 0: 0 | ||
84 | W: locked: 1: 0 | ||
85 | W: blocked: 0: 0 | ||
86 | T: prioeq: 1: 80 | ||
87 | |||
88 | # T1 unlock L0 | ||
89 | C: unlock: 1: 0 | ||
90 | W: locked: 0: 0 | ||
91 | |||
92 | # Verify T1 | ||
93 | W: unlocked: 1: 0 | ||
94 | T: prioeq: 1: 80 | ||
95 | |||
96 | # Unlock and exit | ||
97 | C: unlock: 0: 0 | ||
98 | W: unlocked: 0: 0 | ||
99 | |||
diff --git a/scripts/rt-tester/t2-l1-pi.tst b/scripts/rt-tester/t2-l1-pi.tst new file mode 100644 index 000000000000..cde1f189a02b --- /dev/null +++ b/scripts/rt-tester/t2-l1-pi.tst | |||
@@ -0,0 +1,82 @@ | |||
1 | # | ||
2 | # RT-Mutex test | ||
3 | # | ||
4 | # Op: C(ommand)/T(est)/W(ait) | ||
5 | # | opcode | ||
6 | # | | threadid: 0-7 | ||
7 | # | | | opcode argument | ||
8 | # | | | | | ||
9 | # C: lock: 0: 0 | ||
10 | # | ||
11 | # Commands | ||
12 | # | ||
13 | # opcode opcode argument | ||
14 | # schedother nice value | ||
15 | # schedfifo priority | ||
16 | # lock lock nr (0-7) | ||
17 | # locknowait lock nr (0-7) | ||
18 | # lockint lock nr (0-7) | ||
19 | # lockintnowait lock nr (0-7) | ||
20 | # lockcont lock nr (0-7) | ||
21 | # unlock lock nr (0-7) | ||
22 | # lockbkl lock nr (0-7) | ||
23 | # unlockbkl lock nr (0-7) | ||
24 | # signal 0 | ||
25 | # reset 0 | ||
26 | # resetevent 0 | ||
27 | # | ||
28 | # Tests / Wait | ||
29 | # | ||
30 | # opcode opcode argument | ||
31 | # | ||
32 | # prioeq priority | ||
33 | # priolt priority | ||
34 | # priogt priority | ||
35 | # nprioeq normal priority | ||
36 | # npriolt normal priority | ||
37 | # npriogt normal priority | ||
38 | # locked lock nr (0-7) | ||
39 | # blocked lock nr (0-7) | ||
40 | # blockedwake lock nr (0-7) | ||
41 | # unlocked lock nr (0-7) | ||
42 | # lockedbkl dont care | ||
43 | # blockedbkl dont care | ||
44 | # unlockedbkl dont care | ||
45 | # opcodeeq command opcode or number | ||
46 | # opcodelt number | ||
47 | # opcodegt number | ||
48 | # eventeq number | ||
49 | # eventgt number | ||
50 | # eventlt number | ||
51 | |||
52 | # | ||
53 | # 2 threads 1 lock with priority inversion | ||
54 | # | ||
55 | C: resetevent: 0: 0 | ||
56 | W: opcodeeq: 0: 0 | ||
57 | |||
58 | # Set schedulers | ||
59 | C: schedother: 0: 0 | ||
60 | C: schedfifo: 1: 80 | ||
61 | |||
62 | # T0 lock L0 | ||
63 | C: locknowait: 0: 0 | ||
64 | W: locked: 0: 0 | ||
65 | |||
66 | # T1 lock L0 | ||
67 | C: locknowait: 1: 0 | ||
68 | W: blocked: 1: 0 | ||
69 | T: prioeq: 0: 80 | ||
70 | |||
71 | # T0 unlock L0 | ||
72 | C: unlock: 0: 0 | ||
73 | W: locked: 1: 0 | ||
74 | |||
75 | # Verify T1 | ||
76 | W: unlocked: 0: 0 | ||
77 | T: priolt: 0: 1 | ||
78 | |||
79 | # Unlock and exit | ||
80 | C: unlock: 1: 0 | ||
81 | W: unlocked: 1: 0 | ||
82 | |||
diff --git a/scripts/rt-tester/t2-l1-signal.tst b/scripts/rt-tester/t2-l1-signal.tst new file mode 100644 index 000000000000..3ab0bfc49950 --- /dev/null +++ b/scripts/rt-tester/t2-l1-signal.tst | |||
@@ -0,0 +1,77 @@ | |||
1 | # | ||
2 | # RT-Mutex test | ||
3 | # | ||
4 | # Op: C(ommand)/T(est)/W(ait) | ||
5 | # | opcode | ||
6 | # | | threadid: 0-7 | ||
7 | # | | | opcode argument | ||
8 | # | | | | | ||
9 | # C: lock: 0: 0 | ||
10 | # | ||
11 | # Commands | ||
12 | # | ||
13 | # opcode opcode argument | ||
14 | # schedother nice value | ||
15 | # schedfifo priority | ||
16 | # lock lock nr (0-7) | ||
17 | # locknowait lock nr (0-7) | ||
18 | # lockint lock nr (0-7) | ||
19 | # lockintnowait lock nr (0-7) | ||
20 | # lockcont lock nr (0-7) | ||
21 | # unlock lock nr (0-7) | ||
22 | # lockbkl lock nr (0-7) | ||
23 | # unlockbkl lock nr (0-7) | ||
24 | # signal 0 | ||
25 | # reset 0 | ||
26 | # resetevent 0 | ||
27 | # | ||
28 | # Tests / Wait | ||
29 | # | ||
30 | # opcode opcode argument | ||
31 | # | ||
32 | # prioeq priority | ||
33 | # priolt priority | ||
34 | # priogt priority | ||
35 | # nprioeq normal priority | ||
36 | # npriolt normal priority | ||
37 | # npriogt normal priority | ||
38 | # locked lock nr (0-7) | ||
39 | # blocked lock nr (0-7) | ||
40 | # blockedwake lock nr (0-7) | ||
41 | # unlocked lock nr (0-7) | ||
42 | # lockedbkl dont care | ||
43 | # blockedbkl dont care | ||
44 | # unlockedbkl dont care | ||
45 | # opcodeeq command opcode or number | ||
46 | # opcodelt number | ||
47 | # opcodegt number | ||
48 | # eventeq number | ||
49 | # eventgt number | ||
50 | # eventlt number | ||
51 | |||
52 | # | ||
53 | # 2 threads 1 lock with priority inversion | ||
54 | # | ||
55 | C: resetevent: 0: 0 | ||
56 | W: opcodeeq: 0: 0 | ||
57 | |||
58 | # Set schedulers | ||
59 | C: schedother: 0: 0 | ||
60 | C: schedother: 1: 0 | ||
61 | |||
62 | # T0 lock L0 | ||
63 | C: locknowait: 0: 0 | ||
64 | W: locked: 0: 0 | ||
65 | |||
66 | # T1 lock L0 | ||
67 | C: lockintnowait: 1: 0 | ||
68 | W: blocked: 1: 0 | ||
69 | |||
70 | # Interrupt T1 | ||
71 | C: signal: 1: 0 | ||
72 | W: unlocked: 1: 0 | ||
73 | T: opcodeeq: 1: -4 | ||
74 | |||
75 | # Unlock and exit | ||
76 | C: unlock: 0: 0 | ||
77 | W: unlocked: 0: 0 | ||
diff --git a/scripts/rt-tester/t2-l2-2rt-deadlock.tst b/scripts/rt-tester/t2-l2-2rt-deadlock.tst new file mode 100644 index 000000000000..f4b5d5d6215f --- /dev/null +++ b/scripts/rt-tester/t2-l2-2rt-deadlock.tst | |||
@@ -0,0 +1,89 @@ | |||
1 | # | ||
2 | # RT-Mutex test | ||
3 | # | ||
4 | # Op: C(ommand)/T(est)/W(ait) | ||
5 | # | opcode | ||
6 | # | | threadid: 0-7 | ||
7 | # | | | opcode argument | ||
8 | # | | | | | ||
9 | # C: lock: 0: 0 | ||
10 | # | ||
11 | # Commands | ||
12 | # | ||
13 | # opcode opcode argument | ||
14 | # schedother nice value | ||
15 | # schedfifo priority | ||
16 | # lock lock nr (0-7) | ||
17 | # locknowait lock nr (0-7) | ||
18 | # lockint lock nr (0-7) | ||
19 | # lockintnowait lock nr (0-7) | ||
20 | # lockcont lock nr (0-7) | ||
21 | # unlock lock nr (0-7) | ||
22 | # lockbkl lock nr (0-7) | ||
23 | # unlockbkl lock nr (0-7) | ||
24 | # signal 0 | ||
25 | # reset 0 | ||
26 | # resetevent 0 | ||
27 | # | ||
28 | # Tests / Wait | ||
29 | # | ||
30 | # opcode opcode argument | ||
31 | # | ||
32 | # prioeq priority | ||
33 | # priolt priority | ||
34 | # priogt priority | ||
35 | # nprioeq normal priority | ||
36 | # npriolt normal priority | ||
37 | # npriogt normal priority | ||
38 | # locked lock nr (0-7) | ||
39 | # blocked lock nr (0-7) | ||
40 | # blockedwake lock nr (0-7) | ||
41 | # unlocked lock nr (0-7) | ||
42 | # lockedbkl dont care | ||
43 | # blockedbkl dont care | ||
44 | # unlockedbkl dont care | ||
45 | # opcodeeq command opcode or number | ||
46 | # opcodelt number | ||
47 | # opcodegt number | ||
48 | # eventeq number | ||
49 | # eventgt number | ||
50 | # eventlt number | ||
51 | |||
52 | # | ||
53 | # 2 threads 2 lock | ||
54 | # | ||
55 | C: resetevent: 0: 0 | ||
56 | W: opcodeeq: 0: 0 | ||
57 | |||
58 | # Set schedulers | ||
59 | C: schedfifo: 0: 80 | ||
60 | C: schedfifo: 1: 80 | ||
61 | |||
62 | # T0 lock L0 | ||
63 | C: locknowait: 0: 0 | ||
64 | W: locked: 0: 0 | ||
65 | |||
66 | # T1 lock L1 | ||
67 | C: locknowait: 1: 1 | ||
68 | W: locked: 1: 1 | ||
69 | |||
70 | # T0 lock L1 | ||
71 | C: lockintnowait: 0: 1 | ||
72 | W: blocked: 0: 1 | ||
73 | |||
74 | # T1 lock L0 | ||
75 | C: lockintnowait: 1: 0 | ||
76 | W: blocked: 1: 0 | ||
77 | |||
78 | # Make deadlock go away | ||
79 | C: signal: 1: 0 | ||
80 | W: unlocked: 1: 0 | ||
81 | C: signal: 0: 0 | ||
82 | W: unlocked: 0: 1 | ||
83 | |||
84 | # Unlock and exit | ||
85 | C: unlock: 0: 0 | ||
86 | W: unlocked: 0: 0 | ||
87 | C: unlock: 1: 1 | ||
88 | W: unlocked: 1: 1 | ||
89 | |||
diff --git a/scripts/rt-tester/t3-l1-pi-1rt.tst b/scripts/rt-tester/t3-l1-pi-1rt.tst new file mode 100644 index 000000000000..63440ca2cce9 --- /dev/null +++ b/scripts/rt-tester/t3-l1-pi-1rt.tst | |||
@@ -0,0 +1,92 @@ | |||
1 | # | ||
2 | # rt-mutex test | ||
3 | # | ||
4 | # Op: C(ommand)/T(est)/W(ait) | ||
5 | # | opcode | ||
6 | # | | threadid: 0-7 | ||
7 | # | | | opcode argument | ||
8 | # | | | | | ||
9 | # C: lock: 0: 0 | ||
10 | # | ||
11 | # Commands | ||
12 | # | ||
13 | # opcode opcode argument | ||
14 | # schedother nice value | ||
15 | # schedfifo priority | ||
16 | # lock lock nr (0-7) | ||
17 | # locknowait lock nr (0-7) | ||
18 | # lockint lock nr (0-7) | ||
19 | # lockintnowait lock nr (0-7) | ||
20 | # lockcont lock nr (0-7) | ||
21 | # unlock lock nr (0-7) | ||
22 | # lockbkl lock nr (0-7) | ||
23 | # unlockbkl lock nr (0-7) | ||
24 | # signal thread to signal (0-7) | ||
25 | # reset 0 | ||
26 | # resetevent 0 | ||
27 | # | ||
28 | # Tests / Wait | ||
29 | # | ||
30 | # opcode opcode argument | ||
31 | # | ||
32 | # prioeq priority | ||
33 | # priolt priority | ||
34 | # priogt priority | ||
35 | # nprioeq normal priority | ||
36 | # npriolt normal priority | ||
37 | # npriogt normal priority | ||
38 | # locked lock nr (0-7) | ||
39 | # blocked lock nr (0-7) | ||
40 | # blockedwake lock nr (0-7) | ||
41 | # unlocked lock nr (0-7) | ||
42 | # lockedbkl dont care | ||
43 | # blockedbkl dont care | ||
44 | # unlockedbkl dont care | ||
45 | # opcodeeq command opcode or number | ||
46 | # opcodelt number | ||
47 | # opcodegt number | ||
48 | # eventeq number | ||
49 | # eventgt number | ||
50 | # eventlt number | ||
51 | |||
52 | # | ||
53 | # 3 threads 1 lock PI | ||
54 | # | ||
55 | C: resetevent: 0: 0 | ||
56 | W: opcodeeq: 0: 0 | ||
57 | |||
58 | # Set schedulers | ||
59 | C: schedother: 0: 0 | ||
60 | C: schedother: 1: 0 | ||
61 | C: schedfifo: 2: 82 | ||
62 | |||
63 | # T0 lock L0 | ||
64 | C: locknowait: 0: 0 | ||
65 | W: locked: 0: 0 | ||
66 | |||
67 | # T1 lock L0 | ||
68 | C: locknowait: 1: 0 | ||
69 | W: blocked: 1: 0 | ||
70 | T: priolt: 0: 1 | ||
71 | |||
72 | # T2 lock L0 | ||
73 | C: locknowait: 2: 0 | ||
74 | W: blocked: 2: 0 | ||
75 | T: prioeq: 0: 82 | ||
76 | |||
77 | # T0 unlock L0 | ||
78 | C: unlock: 0: 0 | ||
79 | |||
80 | # Wait until T2 got the lock | ||
81 | W: locked: 2: 0 | ||
82 | W: unlocked: 0: 0 | ||
83 | T: priolt: 0: 1 | ||
84 | |||
85 | # T2 unlock L0 | ||
86 | C: unlock: 2: 0 | ||
87 | |||
88 | W: unlocked: 2: 0 | ||
89 | W: locked: 1: 0 | ||
90 | |||
91 | C: unlock: 1: 0 | ||
92 | W: unlocked: 1: 0 | ||
diff --git a/scripts/rt-tester/t3-l1-pi-2rt.tst b/scripts/rt-tester/t3-l1-pi-2rt.tst new file mode 100644 index 000000000000..e5816fe67df3 --- /dev/null +++ b/scripts/rt-tester/t3-l1-pi-2rt.tst | |||
@@ -0,0 +1,93 @@ | |||
1 | # | ||
2 | # rt-mutex test | ||
3 | # | ||
4 | # Op: C(ommand)/T(est)/W(ait) | ||
5 | # | opcode | ||
6 | # | | threadid: 0-7 | ||
7 | # | | | opcode argument | ||
8 | # | | | | | ||
9 | # C: lock: 0: 0 | ||
10 | # | ||
11 | # Commands | ||
12 | # | ||
13 | # opcode opcode argument | ||
14 | # schedother nice value | ||
15 | # schedfifo priority | ||
16 | # lock lock nr (0-7) | ||
17 | # locknowait lock nr (0-7) | ||
18 | # lockint lock nr (0-7) | ||
19 | # lockintnowait lock nr (0-7) | ||
20 | # lockcont lock nr (0-7) | ||
21 | # unlock lock nr (0-7) | ||
22 | # lockbkl lock nr (0-7) | ||
23 | # unlockbkl lock nr (0-7) | ||
24 | # signal thread to signal (0-7) | ||
25 | # reset 0 | ||
26 | # resetevent 0 | ||
27 | # | ||
28 | # Tests / Wait | ||
29 | # | ||
30 | # opcode opcode argument | ||
31 | # | ||
32 | # prioeq priority | ||
33 | # priolt priority | ||
34 | # priogt priority | ||
35 | # nprioeq normal priority | ||
36 | # npriolt normal priority | ||
37 | # npriogt normal priority | ||
38 | # locked lock nr (0-7) | ||
39 | # blocked lock nr (0-7) | ||
40 | # blockedwake lock nr (0-7) | ||
41 | # unlocked lock nr (0-7) | ||
42 | # lockedbkl dont care | ||
43 | # blockedbkl dont care | ||
44 | # unlockedbkl dont care | ||
45 | # opcodeeq command opcode or number | ||
46 | # opcodelt number | ||
47 | # opcodegt number | ||
48 | # eventeq number | ||
49 | # eventgt number | ||
50 | # eventlt number | ||
51 | |||
52 | # | ||
53 | # 3 threads 1 lock PI | ||
54 | # | ||
55 | C: resetevent: 0: 0 | ||
56 | W: opcodeeq: 0: 0 | ||
57 | |||
58 | # Set schedulers | ||
59 | C: schedother: 0: 0 | ||
60 | C: schedfifo: 1: 81 | ||
61 | C: schedfifo: 2: 82 | ||
62 | |||
63 | # T0 lock L0 | ||
64 | C: locknowait: 0: 0 | ||
65 | W: locked: 0: 0 | ||
66 | |||
67 | # T1 lock L0 | ||
68 | C: locknowait: 1: 0 | ||
69 | W: blocked: 1: 0 | ||
70 | T: prioeq: 0: 81 | ||
71 | |||
72 | # T2 lock L0 | ||
73 | C: locknowait: 2: 0 | ||
74 | W: blocked: 2: 0 | ||
75 | T: prioeq: 0: 82 | ||
76 | T: prioeq: 1: 81 | ||
77 | |||
78 | # T0 unlock L0 | ||
79 | C: unlock: 0: 0 | ||
80 | |||
81 | # Wait until T2 got the lock | ||
82 | W: locked: 2: 0 | ||
83 | W: unlocked: 0: 0 | ||
84 | T: priolt: 0: 1 | ||
85 | |||
86 | # T2 unlock L0 | ||
87 | C: unlock: 2: 0 | ||
88 | |||
89 | W: unlocked: 2: 0 | ||
90 | W: locked: 1: 0 | ||
91 | |||
92 | C: unlock: 1: 0 | ||
93 | W: unlocked: 1: 0 | ||
diff --git a/scripts/rt-tester/t3-l1-pi-3rt.tst b/scripts/rt-tester/t3-l1-pi-3rt.tst new file mode 100644 index 000000000000..718b82b5d3bb --- /dev/null +++ b/scripts/rt-tester/t3-l1-pi-3rt.tst | |||
@@ -0,0 +1,92 @@ | |||
1 | # | ||
2 | # rt-mutex test | ||
3 | # | ||
4 | # Op: C(ommand)/T(est)/W(ait) | ||
5 | # | opcode | ||
6 | # | | threadid: 0-7 | ||
7 | # | | | opcode argument | ||
8 | # | | | | | ||
9 | # C: lock: 0: 0 | ||
10 | # | ||
11 | # Commands | ||
12 | # | ||
13 | # opcode opcode argument | ||
14 | # schedother nice value | ||
15 | # schedfifo priority | ||
16 | # lock lock nr (0-7) | ||
17 | # locknowait lock nr (0-7) | ||
18 | # lockint lock nr (0-7) | ||
19 | # lockintnowait lock nr (0-7) | ||
20 | # lockcont lock nr (0-7) | ||
21 | # unlock lock nr (0-7) | ||
22 | # lockbkl lock nr (0-7) | ||
23 | # unlockbkl lock nr (0-7) | ||
24 | # signal thread to signal (0-7) | ||
25 | # reset 0 | ||
26 | # resetevent 0 | ||
27 | # | ||
28 | # Tests / Wait | ||
29 | # | ||
30 | # opcode opcode argument | ||
31 | # | ||
32 | # prioeq priority | ||
33 | # priolt priority | ||
34 | # priogt priority | ||
35 | # nprioeq normal priority | ||
36 | # npriolt normal priority | ||
37 | # npriogt normal priority | ||
38 | # locked lock nr (0-7) | ||
39 | # blocked lock nr (0-7) | ||
40 | # blockedwake lock nr (0-7) | ||
41 | # unlocked lock nr (0-7) | ||
42 | # lockedbkl dont care | ||
43 | # blockedbkl dont care | ||
44 | # unlockedbkl dont care | ||
45 | # opcodeeq command opcode or number | ||
46 | # opcodelt number | ||
47 | # opcodegt number | ||
48 | # eventeq number | ||
49 | # eventgt number | ||
50 | # eventlt number | ||
51 | |||
52 | # | ||
53 | # 3 threads 1 lock PI | ||
54 | # | ||
55 | C: resetevent: 0: 0 | ||
56 | W: opcodeeq: 0: 0 | ||
57 | |||
58 | # Set schedulers | ||
59 | C: schedfifo: 0: 80 | ||
60 | C: schedfifo: 1: 81 | ||
61 | C: schedfifo: 2: 82 | ||
62 | |||
63 | # T0 lock L0 | ||
64 | C: locknowait: 0: 0 | ||
65 | W: locked: 0: 0 | ||
66 | |||
67 | # T1 lock L0 | ||
68 | C: locknowait: 1: 0 | ||
69 | W: blocked: 1: 0 | ||
70 | T: prioeq: 0: 81 | ||
71 | |||
72 | # T2 lock L0 | ||
73 | C: locknowait: 2: 0 | ||
74 | W: blocked: 2: 0 | ||
75 | T: prioeq: 0: 82 | ||
76 | |||
77 | # T0 unlock L0 | ||
78 | C: unlock: 0: 0 | ||
79 | |||
80 | # Wait until T2 got the lock | ||
81 | W: locked: 2: 0 | ||
82 | W: unlocked: 0: 0 | ||
83 | T: prioeq: 0: 80 | ||
84 | |||
85 | # T2 unlock L0 | ||
86 | C: unlock: 2: 0 | ||
87 | |||
88 | W: locked: 1: 0 | ||
89 | W: unlocked: 2: 0 | ||
90 | |||
91 | C: unlock: 1: 0 | ||
92 | W: unlocked: 1: 0 | ||
diff --git a/scripts/rt-tester/t3-l1-pi-signal.tst b/scripts/rt-tester/t3-l1-pi-signal.tst new file mode 100644 index 000000000000..c6e213563498 --- /dev/null +++ b/scripts/rt-tester/t3-l1-pi-signal.tst | |||
@@ -0,0 +1,98 @@ | |||
1 | # | ||
2 | # rt-mutex test | ||
3 | # | ||
4 | # Op: C(ommand)/T(est)/W(ait) | ||
5 | # | opcode | ||
6 | # | | threadid: 0-7 | ||
7 | # | | | opcode argument | ||
8 | # | | | | | ||
9 | # C: lock: 0: 0 | ||
10 | # | ||
11 | # Commands | ||
12 | # | ||
13 | # opcode opcode argument | ||
14 | # schedother nice value | ||
15 | # schedfifo priority | ||
16 | # lock lock nr (0-7) | ||
17 | # locknowait lock nr (0-7) | ||
18 | # lockint lock nr (0-7) | ||
19 | # lockintnowait lock nr (0-7) | ||
20 | # lockcont lock nr (0-7) | ||
21 | # unlock lock nr (0-7) | ||
22 | # lockbkl lock nr (0-7) | ||
23 | # unlockbkl lock nr (0-7) | ||
24 | # signal thread to signal (0-7) | ||
25 | # reset 0 | ||
26 | # resetevent 0 | ||
27 | # | ||
28 | # Tests / Wait | ||
29 | # | ||
30 | # opcode opcode argument | ||
31 | # | ||
32 | # prioeq priority | ||
33 | # priolt priority | ||
34 | # priogt priority | ||
35 | # nprioeq normal priority | ||
36 | # npriolt normal priority | ||
37 | # npriogt normal priority | ||
38 | # locked lock nr (0-7) | ||
39 | # blocked lock nr (0-7) | ||
40 | # blockedwake lock nr (0-7) | ||
41 | # unlocked lock nr (0-7) | ||
42 | # lockedbkl dont care | ||
43 | # blockedbkl dont care | ||
44 | # unlockedbkl dont care | ||
45 | # opcodeeq command opcode or number | ||
46 | # opcodelt number | ||
47 | # opcodegt number | ||
48 | # eventeq number | ||
49 | # eventgt number | ||
50 | # eventlt number | ||
51 | |||
52 | # Reset event counter | ||
53 | C: resetevent: 0: 0 | ||
54 | W: opcodeeq: 0: 0 | ||
55 | |||
56 | # Set priorities | ||
57 | C: schedother: 0: 0 | ||
58 | C: schedfifo: 1: 80 | ||
59 | C: schedfifo: 2: 81 | ||
60 | |||
61 | # T0 lock L0 | ||
62 | C: lock: 0: 0 | ||
63 | W: locked: 0: 0 | ||
64 | |||
65 | # T1 lock L0, no wait in the wakeup path | ||
66 | C: locknowait: 1: 0 | ||
67 | W: blocked: 1: 0 | ||
68 | T: prioeq: 0: 80 | ||
69 | T: prioeq: 1: 80 | ||
70 | |||
71 | # T2 lock L0 interruptible, no wait in the wakeup path | ||
72 | C: lockintnowait: 2: 0 | ||
73 | W: blocked: 2: 0 | ||
74 | T: prioeq: 0: 81 | ||
75 | T: prioeq: 1: 80 | ||
76 | |||
77 | # Interrupt T2 | ||
78 | C: signal: 2: 2 | ||
79 | W: unlocked: 2: 0 | ||
80 | T: prioeq: 1: 80 | ||
81 | T: prioeq: 0: 80 | ||
82 | |||
83 | T: locked: 0: 0 | ||
84 | T: blocked: 1: 0 | ||
85 | |||
86 | # T0 unlock L0 | ||
87 | C: unlock: 0: 0 | ||
88 | |||
89 | # Wait until T1 has locked L0 and exit | ||
90 | W: locked: 1: 0 | ||
91 | W: unlocked: 0: 0 | ||
92 | T: priolt: 0: 1 | ||
93 | |||
94 | C: unlock: 1: 0 | ||
95 | W: unlocked: 1: 0 | ||
96 | |||
97 | |||
98 | |||
diff --git a/scripts/rt-tester/t3-l1-pi-steal.tst b/scripts/rt-tester/t3-l1-pi-steal.tst new file mode 100644 index 000000000000..f53749d59d79 --- /dev/null +++ b/scripts/rt-tester/t3-l1-pi-steal.tst | |||
@@ -0,0 +1,96 @@ | |||
1 | # | ||
2 | # rt-mutex test | ||
3 | # | ||
4 | # Op: C(ommand)/T(est)/W(ait) | ||
5 | # | opcode | ||
6 | # | | threadid: 0-7 | ||
7 | # | | | opcode argument | ||
8 | # | | | | | ||
9 | # C: lock: 0: 0 | ||
10 | # | ||
11 | # Commands | ||
12 | # | ||
13 | # opcode opcode argument | ||
14 | # schedother nice value | ||
15 | # schedfifo priority | ||
16 | # lock lock nr (0-7) | ||
17 | # locknowait lock nr (0-7) | ||
18 | # lockint lock nr (0-7) | ||
19 | # lockintnowait lock nr (0-7) | ||
20 | # lockcont lock nr (0-7) | ||
21 | # unlock lock nr (0-7) | ||
22 | # lockbkl lock nr (0-7) | ||
23 | # unlockbkl lock nr (0-7) | ||
24 | # signal thread to signal (0-7) | ||
25 | # reset 0 | ||
26 | # resetevent 0 | ||
27 | # | ||
28 | # Tests / Wait | ||
29 | # | ||
30 | # opcode opcode argument | ||
31 | # | ||
32 | # prioeq priority | ||
33 | # priolt priority | ||
34 | # priogt priority | ||
35 | # nprioeq normal priority | ||
36 | # npriolt normal priority | ||
37 | # npriogt normal priority | ||
38 | # locked lock nr (0-7) | ||
39 | # blocked lock nr (0-7) | ||
40 | # blockedwake lock nr (0-7) | ||
41 | # unlocked lock nr (0-7) | ||
42 | # lockedbkl dont care | ||
43 | # blockedbkl dont care | ||
44 | # unlockedbkl dont care | ||
45 | # opcodeeq command opcode or number | ||
46 | # opcodelt number | ||
47 | # opcodegt number | ||
48 | # eventeq number | ||
49 | # eventgt number | ||
50 | # eventlt number | ||
51 | |||
52 | # | ||
53 | # 3 threads 1 lock PI steal pending ownership | ||
54 | # | ||
55 | C: resetevent: 0: 0 | ||
56 | W: opcodeeq: 0: 0 | ||
57 | |||
58 | # Set schedulers | ||
59 | C: schedother: 0: 0 | ||
60 | C: schedfifo: 1: 80 | ||
61 | C: schedfifo: 2: 81 | ||
62 | |||
63 | # T0 lock L0 | ||
64 | C: lock: 0: 0 | ||
65 | W: locked: 0: 0 | ||
66 | |||
67 | # T1 lock L0 | ||
68 | C: lock: 1: 0 | ||
69 | W: blocked: 1: 0 | ||
70 | T: prioeq: 0: 80 | ||
71 | |||
72 | # T0 unlock L0 | ||
73 | C: unlock: 0: 0 | ||
74 | |||
75 | # Wait until T1 is in the wakeup loop | ||
76 | W: blockedwake: 1: 0 | ||
77 | T: priolt: 0: 1 | ||
78 | |||
79 | # T2 lock L0 | ||
80 | C: lock: 2: 0 | ||
81 | # T1 leave wakeup loop | ||
82 | C: lockcont: 1: 0 | ||
83 | |||
84 | # T2 must have the lock and T1 must be blocked | ||
85 | W: locked: 2: 0 | ||
86 | W: blocked: 1: 0 | ||
87 | |||
88 | # T2 unlock L0 | ||
89 | C: unlock: 2: 0 | ||
90 | |||
91 | # Wait until T1 is in the wakeup loop and let it run | ||
92 | W: blockedwake: 1: 0 | ||
93 | C: lockcont: 1: 0 | ||
94 | W: locked: 1: 0 | ||
95 | C: unlock: 1: 0 | ||
96 | W: unlocked: 1: 0 | ||
diff --git a/scripts/rt-tester/t3-l2-pi.tst b/scripts/rt-tester/t3-l2-pi.tst new file mode 100644 index 000000000000..cdc3e4fd7bac --- /dev/null +++ b/scripts/rt-tester/t3-l2-pi.tst | |||
@@ -0,0 +1,92 @@ | |||
1 | # | ||
2 | # rt-mutex test | ||
3 | # | ||
4 | # Op: C(ommand)/T(est)/W(ait) | ||
5 | # | opcode | ||
6 | # | | threadid: 0-7 | ||
7 | # | | | opcode argument | ||
8 | # | | | | | ||
9 | # C: lock: 0: 0 | ||
10 | # | ||
11 | # Commands | ||
12 | # | ||
13 | # opcode opcode argument | ||
14 | # schedother nice value | ||
15 | # schedfifo priority | ||
16 | # lock lock nr (0-7) | ||
17 | # locknowait lock nr (0-7) | ||
18 | # lockint lock nr (0-7) | ||
19 | # lockintnowait lock nr (0-7) | ||
20 | # lockcont lock nr (0-7) | ||
21 | # unlock lock nr (0-7) | ||
22 | # lockbkl lock nr (0-7) | ||
23 | # unlockbkl lock nr (0-7) | ||
24 | # signal thread to signal (0-7) | ||
25 | # reset 0 | ||
26 | # resetevent 0 | ||
27 | # | ||
28 | # Tests / Wait | ||
29 | # | ||
30 | # opcode opcode argument | ||
31 | # | ||
32 | # prioeq priority | ||
33 | # priolt priority | ||
34 | # priogt priority | ||
35 | # nprioeq normal priority | ||
36 | # npriolt normal priority | ||
37 | # npriogt normal priority | ||
38 | # locked lock nr (0-7) | ||
39 | # blocked lock nr (0-7) | ||
40 | # blockedwake lock nr (0-7) | ||
41 | # unlocked lock nr (0-7) | ||
42 | # lockedbkl dont care | ||
43 | # blockedbkl dont care | ||
44 | # unlockedbkl dont care | ||
45 | # opcodeeq command opcode or number | ||
46 | # opcodelt number | ||
47 | # opcodegt number | ||
48 | # eventeq number | ||
49 | # eventgt number | ||
50 | # eventlt number | ||
51 | |||
52 | # | ||
53 | # 3 threads 2 lock PI | ||
54 | # | ||
55 | C: resetevent: 0: 0 | ||
56 | W: opcodeeq: 0: 0 | ||
57 | |||
58 | # Set schedulers | ||
59 | C: schedother: 0: 0 | ||
60 | C: schedother: 1: 0 | ||
61 | C: schedfifo: 2: 82 | ||
62 | |||
63 | # T0 lock L0 | ||
64 | C: locknowait: 0: 0 | ||
65 | W: locked: 0: 0 | ||
66 | |||
67 | # T1 lock L0 | ||
68 | C: locknowait: 1: 0 | ||
69 | W: blocked: 1: 0 | ||
70 | T: priolt: 0: 1 | ||
71 | |||
72 | # T2 lock L0 | ||
73 | C: locknowait: 2: 0 | ||
74 | W: blocked: 2: 0 | ||
75 | T: prioeq: 0: 82 | ||
76 | |||
77 | # T0 unlock L0 | ||
78 | C: unlock: 0: 0 | ||
79 | |||
80 | # Wait until T2 got the lock | ||
81 | W: locked: 2: 0 | ||
82 | W: unlocked: 0: 0 | ||
83 | T: priolt: 0: 1 | ||
84 | |||
85 | # T2 unlock L0 | ||
86 | C: unlock: 2: 0 | ||
87 | |||
88 | W: unlocked: 2: 0 | ||
89 | W: locked: 1: 0 | ||
90 | |||
91 | C: unlock: 1: 0 | ||
92 | W: unlocked: 1: 0 | ||
diff --git a/scripts/rt-tester/t4-l2-pi-deboost.tst b/scripts/rt-tester/t4-l2-pi-deboost.tst new file mode 100644 index 000000000000..baa14137f473 --- /dev/null +++ b/scripts/rt-tester/t4-l2-pi-deboost.tst | |||
@@ -0,0 +1,123 @@ | |||
1 | # | ||
2 | # rt-mutex test | ||
3 | # | ||
4 | # Op: C(ommand)/T(est)/W(ait) | ||
5 | # | opcode | ||
6 | # | | threadid: 0-7 | ||
7 | # | | | opcode argument | ||
8 | # | | | | | ||
9 | # C: lock: 0: 0 | ||
10 | # | ||
11 | # Commands | ||
12 | # | ||
13 | # opcode opcode argument | ||
14 | # schedother nice value | ||
15 | # schedfifo priority | ||
16 | # lock lock nr (0-7) | ||
17 | # locknowait lock nr (0-7) | ||
18 | # lockint lock nr (0-7) | ||
19 | # lockintnowait lock nr (0-7) | ||
20 | # lockcont lock nr (0-7) | ||
21 | # unlock lock nr (0-7) | ||
22 | # lockbkl lock nr (0-7) | ||
23 | # unlockbkl lock nr (0-7) | ||
24 | # signal thread to signal (0-7) | ||
25 | # reset 0 | ||
26 | # resetevent 0 | ||
27 | # | ||
28 | # Tests / Wait | ||
29 | # | ||
30 | # opcode opcode argument | ||
31 | # | ||
32 | # prioeq priority | ||
33 | # priolt priority | ||
34 | # priogt priority | ||
35 | # nprioeq normal priority | ||
36 | # npriolt normal priority | ||
37 | # npriogt normal priority | ||
38 | # locked lock nr (0-7) | ||
39 | # blocked lock nr (0-7) | ||
40 | # blockedwake lock nr (0-7) | ||
41 | # unlocked lock nr (0-7) | ||
42 | # lockedbkl dont care | ||
43 | # blockedbkl dont care | ||
44 | # unlockedbkl dont care | ||
45 | # opcodeeq command opcode or number | ||
46 | # opcodelt number | ||
47 | # opcodegt number | ||
48 | # eventeq number | ||
49 | # eventgt number | ||
50 | # eventlt number | ||
51 | |||
52 | # | ||
53 | # 4 threads 2 lock PI | ||
54 | # | ||
55 | C: resetevent: 0: 0 | ||
56 | W: opcodeeq: 0: 0 | ||
57 | |||
58 | # Set schedulers | ||
59 | C: schedother: 0: 0 | ||
60 | C: schedother: 1: 0 | ||
61 | C: schedfifo: 2: 82 | ||
62 | C: schedfifo: 3: 83 | ||
63 | |||
64 | # T0 lock L0 | ||
65 | C: locknowait: 0: 0 | ||
66 | W: locked: 0: 0 | ||
67 | |||
68 | # T1 lock L1 | ||
69 | C: locknowait: 1: 1 | ||
70 | W: locked: 1: 1 | ||
71 | |||
72 | # T3 lock L0 | ||
73 | C: lockintnowait: 3: 0 | ||
74 | W: blocked: 3: 0 | ||
75 | T: prioeq: 0: 83 | ||
76 | |||
77 | # T0 lock L1 | ||
78 | C: lock: 0: 1 | ||
79 | W: blocked: 0: 1 | ||
80 | T: prioeq: 1: 83 | ||
81 | |||
82 | # T1 unlock L1 | ||
83 | C: unlock: 1: 1 | ||
84 | |||
85 | # Wait until T0 is in the wakeup code | ||
86 | W: blockedwake: 0: 1 | ||
87 | |||
88 | # Verify that T1 is unboosted | ||
89 | W: unlocked: 1: 1 | ||
90 | T: priolt: 1: 1 | ||
91 | |||
92 | # T2 lock L1 (T0 is boosted and pending owner !) | ||
93 | C: locknowait: 2: 1 | ||
94 | W: blocked: 2: 1 | ||
95 | T: prioeq: 0: 83 | ||
96 | |||
97 | # Interrupt T3 and wait until T3 returned | ||
98 | C: signal: 3: 0 | ||
99 | W: unlocked: 3: 0 | ||
100 | |||
101 | # Verify prio of T0 (still pending owner, | ||
102 | # but T2 is enqueued due to the previous boost by T3 | ||
103 | T: prioeq: 0: 82 | ||
104 | |||
105 | # Let T0 continue | ||
106 | C: lockcont: 0: 1 | ||
107 | W: locked: 0: 1 | ||
108 | |||
109 | # Unlock L1 and let T2 get L1 | ||
110 | C: unlock: 0: 1 | ||
111 | W: locked: 2: 1 | ||
112 | |||
113 | # Verify that T0 is unboosted | ||
114 | W: unlocked: 0: 1 | ||
115 | T: priolt: 0: 1 | ||
116 | |||
117 | # Unlock everything and exit | ||
118 | C: unlock: 2: 1 | ||
119 | W: unlocked: 2: 1 | ||
120 | |||
121 | C: unlock: 0: 0 | ||
122 | W: unlocked: 0: 0 | ||
123 | |||
diff --git a/scripts/rt-tester/t5-l4-pi-boost-deboost-setsched.tst b/scripts/rt-tester/t5-l4-pi-boost-deboost-setsched.tst new file mode 100644 index 000000000000..e6ec0c81b54d --- /dev/null +++ b/scripts/rt-tester/t5-l4-pi-boost-deboost-setsched.tst | |||
@@ -0,0 +1,183 @@ | |||
1 | # | ||
2 | # rt-mutex test | ||
3 | # | ||
4 | # Op: C(ommand)/T(est)/W(ait) | ||
5 | # | opcode | ||
6 | # | | threadid: 0-7 | ||
7 | # | | | opcode argument | ||
8 | # | | | | | ||
9 | # C: lock: 0: 0 | ||
10 | # | ||
11 | # Commands | ||
12 | # | ||
13 | # opcode opcode argument | ||
14 | # schedother nice value | ||
15 | # schedfifo priority | ||
16 | # lock lock nr (0-7) | ||
17 | # locknowait lock nr (0-7) | ||
18 | # lockint lock nr (0-7) | ||
19 | # lockintnowait lock nr (0-7) | ||
20 | # lockcont lock nr (0-7) | ||
21 | # unlock lock nr (0-7) | ||
22 | # lockbkl lock nr (0-7) | ||
23 | # unlockbkl lock nr (0-7) | ||
24 | # signal thread to signal (0-7) | ||
25 | # reset 0 | ||
26 | # resetevent 0 | ||
27 | # | ||
28 | # Tests / Wait | ||
29 | # | ||
30 | # opcode opcode argument | ||
31 | # | ||
32 | # prioeq priority | ||
33 | # priolt priority | ||
34 | # priogt priority | ||
35 | # nprioeq normal priority | ||
36 | # npriolt normal priority | ||
37 | # npriogt normal priority | ||
38 | # locked lock nr (0-7) | ||
39 | # blocked lock nr (0-7) | ||
40 | # blockedwake lock nr (0-7) | ||
41 | # unlocked lock nr (0-7) | ||
42 | # lockedbkl dont care | ||
43 | # blockedbkl dont care | ||
44 | # unlockedbkl dont care | ||
45 | # opcodeeq command opcode or number | ||
46 | # opcodelt number | ||
47 | # opcodegt number | ||
48 | # eventeq number | ||
49 | # eventgt number | ||
50 | # eventlt number | ||
51 | |||
52 | # | ||
53 | # 5 threads 4 lock PI - modify priority of blocked threads | ||
54 | # | ||
55 | C: resetevent: 0: 0 | ||
56 | W: opcodeeq: 0: 0 | ||
57 | |||
58 | # Set schedulers | ||
59 | C: schedother: 0: 0 | ||
60 | C: schedfifo: 1: 81 | ||
61 | C: schedfifo: 2: 82 | ||
62 | C: schedfifo: 3: 83 | ||
63 | C: schedfifo: 4: 84 | ||
64 | |||
65 | # T0 lock L0 | ||
66 | C: locknowait: 0: 0 | ||
67 | W: locked: 0: 0 | ||
68 | |||
69 | # T1 lock L1 | ||
70 | C: locknowait: 1: 1 | ||
71 | W: locked: 1: 1 | ||
72 | |||
73 | # T1 lock L0 | ||
74 | C: lockintnowait: 1: 0 | ||
75 | W: blocked: 1: 0 | ||
76 | T: prioeq: 0: 81 | ||
77 | |||
78 | # T2 lock L2 | ||
79 | C: locknowait: 2: 2 | ||
80 | W: locked: 2: 2 | ||
81 | |||
82 | # T2 lock L1 | ||
83 | C: lockintnowait: 2: 1 | ||
84 | W: blocked: 2: 1 | ||
85 | T: prioeq: 0: 82 | ||
86 | T: prioeq: 1: 82 | ||
87 | |||
88 | # T3 lock L3 | ||
89 | C: locknowait: 3: 3 | ||
90 | W: locked: 3: 3 | ||
91 | |||
92 | # T3 lock L2 | ||
93 | C: lockintnowait: 3: 2 | ||
94 | W: blocked: 3: 2 | ||
95 | T: prioeq: 0: 83 | ||
96 | T: prioeq: 1: 83 | ||
97 | T: prioeq: 2: 83 | ||
98 | |||
99 | # T4 lock L3 | ||
100 | C: lockintnowait: 4: 3 | ||
101 | W: blocked: 4: 3 | ||
102 | T: prioeq: 0: 84 | ||
103 | T: prioeq: 1: 84 | ||
104 | T: prioeq: 2: 84 | ||
105 | T: prioeq: 3: 84 | ||
106 | |||
107 | # Reduce prio of T4 | ||
108 | C: schedfifo: 4: 80 | ||
109 | T: prioeq: 0: 83 | ||
110 | T: prioeq: 1: 83 | ||
111 | T: prioeq: 2: 83 | ||
112 | T: prioeq: 3: 83 | ||
113 | T: prioeq: 4: 80 | ||
114 | |||
115 | # Increase prio of T4 | ||
116 | C: schedfifo: 4: 84 | ||
117 | T: prioeq: 0: 84 | ||
118 | T: prioeq: 1: 84 | ||
119 | T: prioeq: 2: 84 | ||
120 | T: prioeq: 3: 84 | ||
121 | T: prioeq: 4: 84 | ||
122 | |||
123 | # Reduce prio of T3 | ||
124 | C: schedfifo: 3: 80 | ||
125 | T: prioeq: 0: 84 | ||
126 | T: prioeq: 1: 84 | ||
127 | T: prioeq: 2: 84 | ||
128 | T: prioeq: 3: 84 | ||
129 | T: prioeq: 4: 84 | ||
130 | |||
131 | # Increase prio of T3 | ||
132 | C: schedfifo: 3: 85 | ||
133 | T: prioeq: 0: 85 | ||
134 | T: prioeq: 1: 85 | ||
135 | T: prioeq: 2: 85 | ||
136 | T: prioeq: 3: 85 | ||
137 | T: prioeq: 4: 84 | ||
138 | |||
139 | # Reduce prio of T3 | ||
140 | C: schedfifo: 3: 83 | ||
141 | T: prioeq: 0: 84 | ||
142 | T: prioeq: 1: 84 | ||
143 | T: prioeq: 2: 84 | ||
144 | T: prioeq: 3: 84 | ||
145 | T: prioeq: 4: 84 | ||
146 | |||
147 | # Signal T4 | ||
148 | C: signal: 4: 0 | ||
149 | W: unlocked: 4: 3 | ||
150 | T: prioeq: 0: 83 | ||
151 | T: prioeq: 1: 83 | ||
152 | T: prioeq: 2: 83 | ||
153 | T: prioeq: 3: 83 | ||
154 | |||
155 | # Signal T3 | ||
156 | C: signal: 3: 0 | ||
157 | W: unlocked: 3: 2 | ||
158 | T: prioeq: 0: 82 | ||
159 | T: prioeq: 1: 82 | ||
160 | T: prioeq: 2: 82 | ||
161 | |||
162 | # Signal T2 | ||
163 | C: signal: 2: 0 | ||
164 | W: unlocked: 2: 1 | ||
165 | T: prioeq: 0: 81 | ||
166 | T: prioeq: 1: 81 | ||
167 | |||
168 | # Signal T1 | ||
169 | C: signal: 1: 0 | ||
170 | W: unlocked: 1: 0 | ||
171 | T: priolt: 0: 1 | ||
172 | |||
173 | # Unlock and exit | ||
174 | C: unlock: 3: 3 | ||
175 | C: unlock: 2: 2 | ||
176 | C: unlock: 1: 1 | ||
177 | C: unlock: 0: 0 | ||
178 | |||
179 | W: unlocked: 3: 3 | ||
180 | W: unlocked: 2: 2 | ||
181 | W: unlocked: 1: 1 | ||
182 | W: unlocked: 0: 0 | ||
183 | |||
diff --git a/scripts/rt-tester/t5-l4-pi-boost-deboost.tst b/scripts/rt-tester/t5-l4-pi-boost-deboost.tst new file mode 100644 index 000000000000..ca64f8bbf4bc --- /dev/null +++ b/scripts/rt-tester/t5-l4-pi-boost-deboost.tst | |||
@@ -0,0 +1,143 @@ | |||
1 | # | ||
2 | # rt-mutex test | ||
3 | # | ||
4 | # Op: C(ommand)/T(est)/W(ait) | ||
5 | # | opcode | ||
6 | # | | threadid: 0-7 | ||
7 | # | | | opcode argument | ||
8 | # | | | | | ||
9 | # C: lock: 0: 0 | ||
10 | # | ||
11 | # Commands | ||
12 | # | ||
13 | # opcode opcode argument | ||
14 | # schedother nice value | ||
15 | # schedfifo priority | ||
16 | # lock lock nr (0-7) | ||
17 | # locknowait lock nr (0-7) | ||
18 | # lockint lock nr (0-7) | ||
19 | # lockintnowait lock nr (0-7) | ||
20 | # lockcont lock nr (0-7) | ||
21 | # unlock lock nr (0-7) | ||
22 | # lockbkl lock nr (0-7) | ||
23 | # unlockbkl lock nr (0-7) | ||
24 | # signal thread to signal (0-7) | ||
25 | # reset 0 | ||
26 | # resetevent 0 | ||
27 | # | ||
28 | # Tests / Wait | ||
29 | # | ||
30 | # opcode opcode argument | ||
31 | # | ||
32 | # prioeq priority | ||
33 | # priolt priority | ||
34 | # priogt priority | ||
35 | # nprioeq normal priority | ||
36 | # npriolt normal priority | ||
37 | # npriogt normal priority | ||
38 | # locked lock nr (0-7) | ||
39 | # blocked lock nr (0-7) | ||
40 | # blockedwake lock nr (0-7) | ||
41 | # unlocked lock nr (0-7) | ||
42 | # lockedbkl dont care | ||
43 | # blockedbkl dont care | ||
44 | # unlockedbkl dont care | ||
45 | # opcodeeq command opcode or number | ||
46 | # opcodelt number | ||
47 | # opcodegt number | ||
48 | # eventeq number | ||
49 | # eventgt number | ||
50 | # eventlt number | ||
51 | |||
52 | # | ||
53 | # 5 threads 4 lock PI | ||
54 | # | ||
55 | C: resetevent: 0: 0 | ||
56 | W: opcodeeq: 0: 0 | ||
57 | |||
58 | # Set schedulers | ||
59 | C: schedother: 0: 0 | ||
60 | C: schedfifo: 1: 81 | ||
61 | C: schedfifo: 2: 82 | ||
62 | C: schedfifo: 3: 83 | ||
63 | C: schedfifo: 4: 84 | ||
64 | |||
65 | # T0 lock L0 | ||
66 | C: locknowait: 0: 0 | ||
67 | W: locked: 0: 0 | ||
68 | |||
69 | # T1 lock L1 | ||
70 | C: locknowait: 1: 1 | ||
71 | W: locked: 1: 1 | ||
72 | |||
73 | # T1 lock L0 | ||
74 | C: lockintnowait: 1: 0 | ||
75 | W: blocked: 1: 0 | ||
76 | T: prioeq: 0: 81 | ||
77 | |||
78 | # T2 lock L2 | ||
79 | C: locknowait: 2: 2 | ||
80 | W: locked: 2: 2 | ||
81 | |||
82 | # T2 lock L1 | ||
83 | C: lockintnowait: 2: 1 | ||
84 | W: blocked: 2: 1 | ||
85 | T: prioeq: 0: 82 | ||
86 | T: prioeq: 1: 82 | ||
87 | |||
88 | # T3 lock L3 | ||
89 | C: locknowait: 3: 3 | ||
90 | W: locked: 3: 3 | ||
91 | |||
92 | # T3 lock L2 | ||
93 | C: lockintnowait: 3: 2 | ||
94 | W: blocked: 3: 2 | ||
95 | T: prioeq: 0: 83 | ||
96 | T: prioeq: 1: 83 | ||
97 | T: prioeq: 2: 83 | ||
98 | |||
99 | # T4 lock L3 | ||
100 | C: lockintnowait: 4: 3 | ||
101 | W: blocked: 4: 3 | ||
102 | T: prioeq: 0: 84 | ||
103 | T: prioeq: 1: 84 | ||
104 | T: prioeq: 2: 84 | ||
105 | T: prioeq: 3: 84 | ||
106 | |||
107 | # Signal T4 | ||
108 | C: signal: 4: 0 | ||
109 | W: unlocked: 4: 3 | ||
110 | T: prioeq: 0: 83 | ||
111 | T: prioeq: 1: 83 | ||
112 | T: prioeq: 2: 83 | ||
113 | T: prioeq: 3: 83 | ||
114 | |||
115 | # Signal T3 | ||
116 | C: signal: 3: 0 | ||
117 | W: unlocked: 3: 2 | ||
118 | T: prioeq: 0: 82 | ||
119 | T: prioeq: 1: 82 | ||
120 | T: prioeq: 2: 82 | ||
121 | |||
122 | # Signal T2 | ||
123 | C: signal: 2: 0 | ||
124 | W: unlocked: 2: 1 | ||
125 | T: prioeq: 0: 81 | ||
126 | T: prioeq: 1: 81 | ||
127 | |||
128 | # Signal T1 | ||
129 | C: signal: 1: 0 | ||
130 | W: unlocked: 1: 0 | ||
131 | T: priolt: 0: 1 | ||
132 | |||
133 | # Unlock and exit | ||
134 | C: unlock: 3: 3 | ||
135 | C: unlock: 2: 2 | ||
136 | C: unlock: 1: 1 | ||
137 | C: unlock: 0: 0 | ||
138 | |||
139 | W: unlocked: 3: 3 | ||
140 | W: unlocked: 2: 2 | ||
141 | W: unlocked: 1: 1 | ||
142 | W: unlocked: 0: 0 | ||
143 | |||