t5-l4-pi-boost-deboost-setsched.tst 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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. # 5 threads 4 lock PI - modify priority of blocked threads
  53. #
  54. C: resetevent: 0: 0
  55. W: opcodeeq: 0: 0
  56. # Set schedulers
  57. C: schedother: 0: 0
  58. C: schedfifo: 1: 81
  59. C: schedfifo: 2: 82
  60. C: schedfifo: 3: 83
  61. C: schedfifo: 4: 84
  62. # T0 lock L0
  63. C: locknowait: 0: 0
  64. W: locked: 0: 0
  65. # T1 lock L1
  66. C: locknowait: 1: 1
  67. W: locked: 1: 1
  68. # T1 lock L0
  69. C: lockintnowait: 1: 0
  70. W: blocked: 1: 0
  71. T: prioeq: 0: 81
  72. # T2 lock L2
  73. C: locknowait: 2: 2
  74. W: locked: 2: 2
  75. # T2 lock L1
  76. C: lockintnowait: 2: 1
  77. W: blocked: 2: 1
  78. T: prioeq: 0: 82
  79. T: prioeq: 1: 82
  80. # T3 lock L3
  81. C: locknowait: 3: 3
  82. W: locked: 3: 3
  83. # T3 lock L2
  84. C: lockintnowait: 3: 2
  85. W: blocked: 3: 2
  86. T: prioeq: 0: 83
  87. T: prioeq: 1: 83
  88. T: prioeq: 2: 83
  89. # T4 lock L3
  90. C: lockintnowait: 4: 3
  91. W: blocked: 4: 3
  92. T: prioeq: 0: 84
  93. T: prioeq: 1: 84
  94. T: prioeq: 2: 84
  95. T: prioeq: 3: 84
  96. # Reduce prio of T4
  97. C: schedfifo: 4: 80
  98. T: prioeq: 0: 83
  99. T: prioeq: 1: 83
  100. T: prioeq: 2: 83
  101. T: prioeq: 3: 83
  102. T: prioeq: 4: 80
  103. # Increase prio of T4
  104. C: schedfifo: 4: 84
  105. T: prioeq: 0: 84
  106. T: prioeq: 1: 84
  107. T: prioeq: 2: 84
  108. T: prioeq: 3: 84
  109. T: prioeq: 4: 84
  110. # Reduce prio of T3
  111. C: schedfifo: 3: 80
  112. T: prioeq: 0: 84
  113. T: prioeq: 1: 84
  114. T: prioeq: 2: 84
  115. T: prioeq: 3: 84
  116. T: prioeq: 4: 84
  117. # Increase prio of T3
  118. C: schedfifo: 3: 85
  119. T: prioeq: 0: 85
  120. T: prioeq: 1: 85
  121. T: prioeq: 2: 85
  122. T: prioeq: 3: 85
  123. T: prioeq: 4: 84
  124. # Reduce prio of T3
  125. C: schedfifo: 3: 83
  126. T: prioeq: 0: 84
  127. T: prioeq: 1: 84
  128. T: prioeq: 2: 84
  129. T: prioeq: 3: 84
  130. T: prioeq: 4: 84
  131. # Signal T4
  132. C: signal: 4: 0
  133. W: unlocked: 4: 3
  134. T: prioeq: 0: 83
  135. T: prioeq: 1: 83
  136. T: prioeq: 2: 83
  137. T: prioeq: 3: 83
  138. # Signal T3
  139. C: signal: 3: 0
  140. W: unlocked: 3: 2
  141. T: prioeq: 0: 82
  142. T: prioeq: 1: 82
  143. T: prioeq: 2: 82
  144. # Signal T2
  145. C: signal: 2: 0
  146. W: unlocked: 2: 1
  147. T: prioeq: 0: 81
  148. T: prioeq: 1: 81
  149. # Signal T1
  150. C: signal: 1: 0
  151. W: unlocked: 1: 0
  152. T: priolt: 0: 1
  153. # Unlock and exit
  154. C: unlock: 3: 3
  155. C: unlock: 2: 2
  156. C: unlock: 1: 1
  157. C: unlock: 0: 0
  158. W: unlocked: 3: 3
  159. W: unlocked: 2: 2
  160. W: unlocked: 1: 1
  161. W: unlocked: 0: 0