Thomas Gleixner | 61a8712 | 2006-06-27 02:54:56 -0700 | [diff] [blame] | 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) |
Thomas Gleixner | 61a8712 | 2006-06-27 02:54:56 -0700 | [diff] [blame] | 22 | # 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 Gleixner | 61a8712 | 2006-06-27 02:54:56 -0700 | [diff] [blame] | 40 | # 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 1 lock |
| 49 | # |
| 50 | C: resetevent: 0: 0 |
| 51 | W: opcodeeq: 0: 0 |
| 52 | |
| 53 | # Set schedulers |
| 54 | C: schedfifo: 0: 80 |
Thomas Gleixner | 61a8712 | 2006-06-27 02:54:56 -0700 | [diff] [blame] | 55 | C: schedfifo: 1: 80 |
Thomas Gleixner | 61a8712 | 2006-06-27 02:54:56 -0700 | [diff] [blame] | 56 | |
| 57 | # T0 lock L0 |
| 58 | C: locknowait: 0: 0 |
| 59 | C: locknowait: 1: 0 |
| 60 | W: locked: 0: 0 |
| 61 | W: blocked: 1: 0 |
| 62 | T: prioeq: 0: 80 |
| 63 | |
| 64 | # T0 unlock L0 |
| 65 | C: unlock: 0: 0 |
| 66 | W: locked: 1: 0 |
| 67 | |
| 68 | # Verify T0 |
| 69 | W: unlocked: 0: 0 |
| 70 | T: prioeq: 0: 80 |
| 71 | |
| 72 | # Unlock |
| 73 | C: unlock: 1: 0 |
| 74 | W: unlocked: 1: 0 |
| 75 | |
| 76 | # T1,T0 lock L0 |
| 77 | C: locknowait: 1: 0 |
| 78 | C: locknowait: 0: 0 |
| 79 | W: locked: 1: 0 |
| 80 | W: blocked: 0: 0 |
| 81 | T: prioeq: 1: 80 |
| 82 | |
| 83 | # T1 unlock L0 |
| 84 | C: unlock: 1: 0 |
| 85 | W: locked: 0: 0 |
| 86 | |
| 87 | # Verify T1 |
| 88 | W: unlocked: 1: 0 |
| 89 | T: prioeq: 1: 80 |
| 90 | |
| 91 | # Unlock and exit |
| 92 | C: unlock: 0: 0 |
| 93 | W: unlocked: 0: 0 |
| 94 | |