diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2006-06-27 05:54:56 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-27 20:32:47 -0400 |
commit | 61a87122869b6340a63b6f9f84097d3688604b90 (patch) | |
tree | 11d60d29763a42abd66453a920cc06bebc852427 /scripts/rt-tester/t5-l4-pi-boost-deboost.tst | |
parent | e7eebaf6a81b956c989f184ee4b27277c88f8afe (diff) |
[PATCH] pi-futex: rt mutex tester
RT-mutex tester: scriptable tester for rt mutexes, which allows userspace
scripting of mutex unit-tests (and dynamic tests as well), using the actual
rt-mutex implementation of the kernel.
[akpm@osdl.org: fixlet]
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'scripts/rt-tester/t5-l4-pi-boost-deboost.tst')
-rw-r--r-- | scripts/rt-tester/t5-l4-pi-boost-deboost.tst | 148 |
1 files changed, 148 insertions, 0 deletions
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..efa0788c1189 --- /dev/null +++ b/scripts/rt-tester/t5-l4-pi-boost-deboost.tst | |||
@@ -0,0 +1,148 @@ | |||
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 | W: opcodeeq: 0: 0 | ||
61 | C: schedfifo: 1: 81 | ||
62 | W: opcodeeq: 1: 0 | ||
63 | C: schedfifo: 2: 82 | ||
64 | W: opcodeeq: 2: 0 | ||
65 | C: schedfifo: 3: 83 | ||
66 | W: opcodeeq: 3: 0 | ||
67 | C: schedfifo: 4: 84 | ||
68 | W: opcodeeq: 4: 0 | ||
69 | |||
70 | # T0 lock L0 | ||
71 | C: locknowait: 0: 0 | ||
72 | W: locked: 0: 0 | ||
73 | |||
74 | # T1 lock L1 | ||
75 | C: locknowait: 1: 1 | ||
76 | W: locked: 1: 1 | ||
77 | |||
78 | # T1 lock L0 | ||
79 | C: lockintnowait: 1: 0 | ||
80 | W: blocked: 1: 0 | ||
81 | T: prioeq: 0: 81 | ||
82 | |||
83 | # T2 lock L2 | ||
84 | C: locknowait: 2: 2 | ||
85 | W: locked: 2: 2 | ||
86 | |||
87 | # T2 lock L1 | ||
88 | C: lockintnowait: 2: 1 | ||
89 | W: blocked: 2: 1 | ||
90 | T: prioeq: 0: 82 | ||
91 | T: prioeq: 1: 82 | ||
92 | |||
93 | # T3 lock L3 | ||
94 | C: locknowait: 3: 3 | ||
95 | W: locked: 3: 3 | ||
96 | |||
97 | # T3 lock L2 | ||
98 | C: lockintnowait: 3: 2 | ||
99 | W: blocked: 3: 2 | ||
100 | T: prioeq: 0: 83 | ||
101 | T: prioeq: 1: 83 | ||
102 | T: prioeq: 2: 83 | ||
103 | |||
104 | # T4 lock L3 | ||
105 | C: lockintnowait: 4: 3 | ||
106 | W: blocked: 4: 3 | ||
107 | T: prioeq: 0: 84 | ||
108 | T: prioeq: 1: 84 | ||
109 | T: prioeq: 2: 84 | ||
110 | T: prioeq: 3: 84 | ||
111 | |||
112 | # Signal T4 | ||
113 | C: signal: 4: 0 | ||
114 | W: unlocked: 4: 3 | ||
115 | T: prioeq: 0: 83 | ||
116 | T: prioeq: 1: 83 | ||
117 | T: prioeq: 2: 83 | ||
118 | T: prioeq: 3: 83 | ||
119 | |||
120 | # Signal T3 | ||
121 | C: signal: 3: 0 | ||
122 | W: unlocked: 3: 2 | ||
123 | T: prioeq: 0: 82 | ||
124 | T: prioeq: 1: 82 | ||
125 | T: prioeq: 2: 82 | ||
126 | |||
127 | # Signal T2 | ||
128 | C: signal: 2: 0 | ||
129 | W: unlocked: 2: 1 | ||
130 | T: prioeq: 0: 81 | ||
131 | T: prioeq: 1: 81 | ||
132 | |||
133 | # Signal T1 | ||
134 | C: signal: 1: 0 | ||
135 | W: unlocked: 1: 0 | ||
136 | T: priolt: 0: 1 | ||
137 | |||
138 | # Unlock and exit | ||
139 | C: unlock: 3: 3 | ||
140 | C: unlock: 2: 2 | ||
141 | C: unlock: 1: 1 | ||
142 | C: unlock: 0: 0 | ||
143 | |||
144 | W: unlocked: 3: 3 | ||
145 | W: unlocked: 2: 2 | ||
146 | W: unlocked: 1: 1 | ||
147 | W: unlocked: 0: 0 | ||
148 | |||