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

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