blob: 7b59100d3e48f5a429c7399a6bb39c5547977a73 [file] [log] [blame]
Thomas Gleixner61a87122006-06-27 02:54:56 -07001#
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)
Thomas Gleixner61a87122006-06-27 02:54:56 -070022# signal thread to signal (0-7)
23# reset 0
24# resetevent 0
25#
26# Tests / Wait
27#
28# opcode opcode argument
29#
30# prioeq priority
31# priolt priority
32# priogt priority
33# nprioeq normal priority
34# npriolt normal priority
35# npriogt normal priority
36# locked lock nr (0-7)
37# blocked lock nr (0-7)
38# blockedwake lock nr (0-7)
39# unlocked lock nr (0-7)
Thomas Gleixner61a87122006-06-27 02:54:56 -070040# opcodeeq command opcode or number
41# opcodelt number
42# opcodegt number
43# eventeq number
44# eventgt number
45# eventlt number
46
47#
48# 3 threads 2 lock PI
49#
50C: resetevent: 0: 0
51W: opcodeeq: 0: 0
52
53# Set schedulers
54C: schedother: 0: 0
Thomas Gleixner61a87122006-06-27 02:54:56 -070055C: schedother: 1: 0
Thomas Gleixner61a87122006-06-27 02:54:56 -070056C: schedfifo: 2: 82
Thomas Gleixner61a87122006-06-27 02:54:56 -070057
58# T0 lock L0
59C: locknowait: 0: 0
60W: locked: 0: 0
61
62# T1 lock L0
63C: locknowait: 1: 0
64W: blocked: 1: 0
65T: priolt: 0: 1
66
67# T2 lock L0
68C: locknowait: 2: 0
69W: blocked: 2: 0
70T: prioeq: 0: 82
71
72# T0 unlock L0
73C: unlock: 0: 0
74
75# Wait until T2 got the lock
76W: locked: 2: 0
77W: unlocked: 0: 0
78T: priolt: 0: 1
79
80# T2 unlock L0
81C: unlock: 2: 0
82
83W: unlocked: 2: 0
84W: locked: 1: 0
85
86C: unlock: 1: 0
87W: unlocked: 1: 0