trace.h 647 B

123456789101112131415161718192021222324
  1. typedef enum Tevent {
  2. SAdmit = 0, /* Edf admit */
  3. SRelease, /* Edf release, waiting to be scheduled */
  4. SEdf, /* running under EDF */
  5. SRun, /* running best effort */
  6. SReady, /* runnable but not running */
  7. SSleep, /* blocked */
  8. SYield, /* blocked waiting for release */
  9. SSlice, /* slice exhausted */
  10. SDeadline, /* proc's deadline */
  11. SExpel, /* Edf expel */
  12. SDead, /* proc dies */
  13. SInts, /* Interrupt start */
  14. SInte, /* Interrupt end */
  15. SUser, /* user event */
  16. Nevent,
  17. } Tevent;
  18. typedef struct Traceevent Traceevent;
  19. struct Traceevent {
  20. ulong pid;
  21. ulong etype; /* Event type */
  22. vlong time; /* time stamp (ns) */
  23. };