wakeup_rt.tc 340 B

12345678910111213141516
  1. #!/bin/sh
  2. # SPDX-License-Identifier: GPL-2.0
  3. # description: Test wakeup RT tracer
  4. # requires: wakeup_rt:tracer chrt:program
  5. echo wakeup_rt > current_tracer
  6. echo 1 > tracing_on
  7. echo 0 > tracing_max_latency
  8. : "Wakeup a realtime task"
  9. chrt -f 5 sleep 1
  10. echo 0 > tracing_on
  11. grep "+ \[[[:digit:]]*\]" trace
  12. grep "==> \[[[:digit:]]*\]" trace