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/t3-l1-pi-signal.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/t3-l1-pi-signal.tst')
-rw-r--r-- | scripts/rt-tester/t3-l1-pi-signal.tst | 101 |
1 files changed, 101 insertions, 0 deletions
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..3e427daa33ff --- /dev/null +++ b/scripts/rt-tester/t3-l1-pi-signal.tst | |||
@@ -0,0 +1,101 @@ | |||
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 | W: opcodeeq: 0: 0 | ||
59 | C: schedfifo: 1: 80 | ||
60 | W: opcodeeq: 1: 0 | ||
61 | C: schedfifo: 2: 81 | ||
62 | W: opcodeeq: 2: 0 | ||
63 | |||
64 | # T0 lock L0 | ||
65 | C: lock: 0: 0 | ||
66 | W: locked: 0: 0 | ||
67 | |||
68 | # T1 lock L0, no wait in the wakeup path | ||
69 | C: locknowait: 1: 0 | ||
70 | W: blocked: 1: 0 | ||
71 | T: prioeq: 0: 80 | ||
72 | T: prioeq: 1: 80 | ||
73 | |||
74 | # T2 lock L0 interruptible, no wait in the wakeup path | ||
75 | C: lockintnowait: 2: 0 | ||
76 | W: blocked: 2: 0 | ||
77 | T: prioeq: 0: 81 | ||
78 | T: prioeq: 1: 80 | ||
79 | |||
80 | # Interrupt T2 | ||
81 | C: signal: 2: 2 | ||
82 | W: unlocked: 2: 0 | ||
83 | T: prioeq: 1: 80 | ||
84 | T: prioeq: 0: 80 | ||
85 | |||
86 | T: locked: 0: 0 | ||
87 | T: blocked: 1: 0 | ||
88 | |||
89 | # T0 unlock L0 | ||
90 | C: unlock: 0: 0 | ||
91 | |||
92 | # Wait until T1 has locked L0 and exit | ||
93 | W: locked: 1: 0 | ||
94 | W: unlocked: 0: 0 | ||
95 | T: priolt: 0: 1 | ||
96 | |||
97 | C: unlock: 1: 0 | ||
98 | W: unlocked: 1: 0 | ||
99 | |||
100 | |||
101 | |||