blob: 68b10629b6f4d1138f6f5343ff23884a4ac6033e [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 0
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# 2 threads 2 lock
49#
50C: resetevent: 0: 0
51W: opcodeeq: 0: 0
52
53# Set schedulers
54C: schedfifo: 0: 80
Thomas Gleixner61a87122006-06-27 02:54:56 -070055C: schedfifo: 1: 80
Thomas Gleixner61a87122006-06-27 02:54:56 -070056
57# T0 lock L0
58C: locknowait: 0: 0
59W: locked: 0: 0
60
61# T1 lock L1
62C: locknowait: 1: 1
63W: locked: 1: 1
64
65# T0 lock L1
66C: lockintnowait: 0: 1
67W: blocked: 0: 1
68
69# T1 lock L0
70C: lockintnowait: 1: 0
71W: blocked: 1: 0
72
73# Make deadlock go away
74C: signal: 1: 0
75W: unlocked: 1: 0
76C: signal: 0: 0
77W: unlocked: 0: 1
78
79# Unlock and exit
80C: unlock: 0: 0
81W: unlocked: 0: 0
82C: unlock: 1: 1
83W: unlocked: 1: 1
84