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# 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) 40# opcodeeq command opcode or number 41# opcodelt number 42# opcodegt number 43# eventeq number 44# eventgt number 45# eventlt number 46 47# 48# 5 threads 4 lock PI 49# 50C: resetevent: 0: 0 51W: opcodeeq: 0: 0 52 53# Set schedulers 54C: schedother: 0: 0 55C: schedfifo: 1: 81 56C: schedfifo: 2: 82 57C: schedfifo: 3: 83 58C: schedfifo: 4: 84 59 60# T0 lock L0 61C: locknowait: 0: 0 62W: locked: 0: 0 63 64# T1 lock L1 65C: locknowait: 1: 1 66W: locked: 1: 1 67 68# T1 lock L0 69C: lockintnowait: 1: 0 70W: blocked: 1: 0 71T: prioeq: 0: 81 72 73# T2 lock L2 74C: locknowait: 2: 2 75W: locked: 2: 2 76 77# T2 lock L1 78C: lockintnowait: 2: 1 79W: blocked: 2: 1 80T: prioeq: 0: 82 81T: prioeq: 1: 82 82 83# T3 lock L3 84C: locknowait: 3: 3 85W: locked: 3: 3 86 87# T3 lock L2 88C: lockintnowait: 3: 2 89W: blocked: 3: 2 90T: prioeq: 0: 83 91T: prioeq: 1: 83 92T: prioeq: 2: 83 93 94# T4 lock L3 95C: lockintnowait: 4: 3 96W: blocked: 4: 3 97T: prioeq: 0: 84 98T: prioeq: 1: 84 99T: prioeq: 2: 84 100T: prioeq: 3: 84 101 102# Signal T4 103C: signal: 4: 0 104W: unlocked: 4: 3 105T: prioeq: 0: 83 106T: prioeq: 1: 83 107T: prioeq: 2: 83 108T: prioeq: 3: 83 109 110# Signal T3 111C: signal: 3: 0 112W: unlocked: 3: 2 113T: prioeq: 0: 82 114T: prioeq: 1: 82 115T: prioeq: 2: 82 116 117# Signal T2 118C: signal: 2: 0 119W: unlocked: 2: 1 120T: prioeq: 0: 81 121T: prioeq: 1: 81 122 123# Signal T1 124C: signal: 1: 0 125W: unlocked: 1: 0 126T: priolt: 0: 1 127 128# Unlock and exit 129C: unlock: 3: 3 130C: unlock: 2: 2 131C: unlock: 1: 1 132C: unlock: 0: 0 133 134W: unlocked: 3: 3 135W: unlocked: 2: 2 136W: unlocked: 1: 1 137W: unlocked: 0: 0 138 139