t3-l1-pi-signal.tst 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. # Reset event counter
  47. C: resetevent: 0: 0
  48. W: opcodeeq: 0: 0
  49. # Set priorities
  50. C: schedother: 0: 0
  51. C: schedfifo: 1: 80
  52. C: schedfifo: 2: 81
  53. # T0 lock L0
  54. C: lock: 0: 0
  55. W: locked: 0: 0
  56. # T1 lock L0, no wait in the wakeup path
  57. C: locknowait: 1: 0
  58. W: blocked: 1: 0
  59. T: prioeq: 0: 80
  60. T: prioeq: 1: 80
  61. # T2 lock L0 interruptible, no wait in the wakeup path
  62. C: lockintnowait: 2: 0
  63. W: blocked: 2: 0
  64. T: prioeq: 0: 81
  65. T: prioeq: 1: 80
  66. # Interrupt T2
  67. C: signal: 2: 2
  68. W: unlocked: 2: 0
  69. T: prioeq: 1: 80
  70. T: prioeq: 0: 80
  71. T: locked: 0: 0
  72. T: blocked: 1: 0
  73. # T0 unlock L0
  74. C: unlock: 0: 0
  75. # Wait until T1 has locked L0 and exit
  76. W: locked: 1: 0
  77. W: unlocked: 0: 0
  78. T: priolt: 0: 1
  79. C: unlock: 1: 0
  80. W: unlocked: 1: 0