/systemtap-1.8/testsuite/buildok/irq-detailed.stp

# · Unknown · 46 lines · 37 code · 9 blank · 0 comment · 0 complexity · 29fdd475a38a8a00fc644c058f29315e MD5 · raw file

  1. #! stap -p4
  2. #
  3. # workqueue probes
  4. #
  5. probe workqueue.create ?
  6. {
  7. printf("%p %d\n", wq_thread, cpu)
  8. }
  9. probe workqueue.insert ?, workqueue.execute ?
  10. {
  11. printf("%p %p %p\n", wq_thread, work, work_func)
  12. }
  13. probe workqueue.destroy ?
  14. {
  15. printf("%p\n", wq_thread)
  16. }
  17. #
  18. # irq_handler probes
  19. #
  20. probe irq_handler.entry ?, irq_handler.exit ?
  21. {
  22. printf("%d %p %p %d(%s)\n", irq, action, handler, flags, flags_str)
  23. printf("%d %d %p %p\n", dev_name, dev_id, next_irqaction, dir)
  24. printf("%p %p %d\n", thread_fn, thread, thread_flags)
  25. }
  26. #
  27. # softirq probes
  28. #
  29. probe softirq.entry ?, softirq.exit ?
  30. {
  31. printf("%p %p %p %d\n", h, vec, action, vec_nr)
  32. }
  33. # Make sure we've got at least one probe.
  34. probe never
  35. {
  36. printf("never\n")
  37. }