1
0

trace.h 717 B

1234567891011121314151617181920212223242526
  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. SLock, /* blocked on a queue or lock */
  17. Nevent,
  18. } Tevent;
  19. typedef struct Traceevent Traceevent;
  20. struct Traceevent {
  21. u32int pid;
  22. u32int etype; /* Event type */
  23. u64int time; /* time stamp */
  24. u32int core; /* core number */
  25. };