t2-l1-2rt-sameprio.tst 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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 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)
  40. # opcodeeq command opcode or number
  41. # opcodelt number
  42. # opcodegt number
  43. # eventeq number
  44. # eventgt number
  45. # eventlt number
  46. #
  47. # 2 threads 1 lock
  48. #
  49. C: resetevent: 0: 0
  50. W: opcodeeq: 0: 0
  51. # Set schedulers
  52. C: schedfifo: 0: 80
  53. C: schedfifo: 1: 80
  54. # T0 lock L0
  55. C: locknowait: 0: 0
  56. C: locknowait: 1: 0
  57. W: locked: 0: 0
  58. W: blocked: 1: 0
  59. T: prioeq: 0: 80
  60. # T0 unlock L0
  61. C: unlock: 0: 0
  62. W: locked: 1: 0
  63. # Verify T0
  64. W: unlocked: 0: 0
  65. T: prioeq: 0: 80
  66. # Unlock
  67. C: unlock: 1: 0
  68. W: unlocked: 1: 0
  69. # T1,T0 lock L0
  70. C: locknowait: 1: 0
  71. C: locknowait: 0: 0
  72. W: locked: 1: 0
  73. W: blocked: 0: 0
  74. T: prioeq: 1: 80
  75. # T1 unlock L0
  76. C: unlock: 1: 0
  77. W: locked: 0: 0
  78. # Verify T1
  79. W: unlocked: 1: 0
  80. T: prioeq: 1: 80
  81. # Unlock and exit
  82. C: unlock: 0: 0
  83. W: unlocked: 0: 0