diff options
| author | Christopher Kenna <cjk@cs.unc.edu> | 2012-10-24 13:45:21 -0400 |
|---|---|---|
| committer | Christopher Kenna <cjk@cs.unc.edu> | 2012-10-24 13:45:21 -0400 |
| commit | 8e78e4c150782f5a864a1216de548515336d09f1 (patch) | |
| tree | 2a1be7fd910297189889738e465e71dfdd9f754b | |
| parent | 4021c90126844cdab2bc5eef7e1ef16c5aa3b36d (diff) | |
Add Color Queue overhead tracing events.wip-mc
| -rw-r--r-- | include/timestamp.h | 27 | ||||
| -rw-r--r-- | src/timestamp.c | 9 |
2 files changed, 36 insertions, 0 deletions
diff --git a/include/timestamp.h b/include/timestamp.h index 81d7a79..83f4826 100644 --- a/include/timestamp.h +++ b/include/timestamp.h | |||
| @@ -93,9 +93,36 @@ const char* task_type2str(int task_type); | |||
| 93 | #define TS_PLUGIN_SCHED_START TIMESTAMP(120) | 93 | #define TS_PLUGIN_SCHED_START TIMESTAMP(120) |
| 94 | #define TS_PLUGIN_SCHED_END TIMESTAMP(121) | 94 | #define TS_PLUGIN_SCHED_END TIMESTAMP(121) |
| 95 | 95 | ||
| 96 | #define TS_CQ_ENQUEUE_READ_START TIMESTAMP(124) | ||
| 97 | #define TS_CQ_ENQUEUE_READ_END TIMESTAMP(125) | ||
| 98 | |||
| 99 | #define TS_CQ_ENQUEUE_FLUSH_START TIMESTAMP(126) | ||
| 100 | #define TS_CQ_ENQUEUE_FLUSH_END TIMESTAMP(127) | ||
| 101 | |||
| 102 | #define TS_CQ_SUBMIT_WORK_START TIMESTAMP(128) | ||
| 103 | #define TS_CQ_SUBMIT_WORK_END TIMESTAMP(129) | ||
| 104 | |||
| 96 | #define TS_PLUGIN_TICK_START TIMESTAMP(130) | 105 | #define TS_PLUGIN_TICK_START TIMESTAMP(130) |
| 97 | #define TS_PLUGIN_TICK_END TIMESTAMP(131) | 106 | #define TS_PLUGIN_TICK_END TIMESTAMP(131) |
| 98 | 107 | ||
| 108 | #define TS_CQ_LOOP_WORK_CHECK_START TIMESTAMP(132) | ||
| 109 | #define TS_CQ_LOOP_WORK_CHECK_END TIMESTAMP(133) | ||
| 110 | |||
| 111 | #define TS_CQ_LOOP_PEACE_OUT_START TIMESTAMP(134) | ||
| 112 | #define TS_CQ_LOOP_PEACE_OUT_END TIMESTAMP(135) | ||
| 113 | |||
| 114 | #define TS_CQ_LOOP_BRANCH_START TIMESTAMP(136) | ||
| 115 | #define TS_CQ_LOOP_BRANCH_END TIMESTAMP(137) | ||
| 116 | |||
| 117 | #define TS_CQ_WORK_DO_WORK_START TIMESTAMP(138) | ||
| 118 | #define TS_CQ_WORK_DO_WORK_END TIMESTAMP(139) | ||
| 119 | |||
| 120 | #define TS_CQ_WORK_NOTIFY_START TIMESTAMP(142) | ||
| 121 | #define TS_CQ_WORK_NOTIFY_END TIMESTAMP(143) | ||
| 122 | |||
| 123 | #define TS_CQ_PHASE_WAIT_START TIMESTAMP(144) | ||
| 124 | #define TS_CQ_PHASE_WAIT_END TIMESTAMP(145) | ||
| 125 | |||
| 99 | #define TS_SEND_RESCHED_START TIMESTAMP(190) | 126 | #define TS_SEND_RESCHED_START TIMESTAMP(190) |
| 100 | #define TS_SEND_RESCHED_END TIMESTAMP(191) | 127 | #define TS_SEND_RESCHED_END TIMESTAMP(191) |
| 101 | 128 | ||
diff --git a/src/timestamp.c b/src/timestamp.c index cad3fb5..57fa734 100644 --- a/src/timestamp.c +++ b/src/timestamp.c | |||
| @@ -28,6 +28,15 @@ static struct event_name event_table[] = | |||
| 28 | EVENT(LVLB_SCHED), | 28 | EVENT(LVLB_SCHED), |
| 29 | EVENT(LVLC_RELEASE), | 29 | EVENT(LVLC_RELEASE), |
| 30 | EVENT(LVLC_SCHED), | 30 | EVENT(LVLC_SCHED), |
| 31 | EVENT(CQ_ENQUEUE_READ), | ||
| 32 | EVENT(CQ_ENQUEUE_FLUSH), | ||
| 33 | EVENT(CQ_SUBMIT_WORK), | ||
| 34 | EVENT(CQ_LOOP_WORK_CHECK), | ||
| 35 | EVENT(CQ_LOOP_PEACE_OUT), | ||
| 36 | EVENT(CQ_LOOP_BRANCH), | ||
| 37 | EVENT(CQ_WORK_DO_WORK), | ||
| 38 | EVENT(CQ_WORK_NOTIFY), | ||
| 39 | EVENT(CQ_PHASE_WAIT), | ||
| 31 | {"RELEASE_LATENCY", TS_RELEASE_LATENCY}, | 40 | {"RELEASE_LATENCY", TS_RELEASE_LATENCY}, |
| 32 | 41 | ||
| 33 | EVENT(SYSCALL_IN), | 42 | EVENT(SYSCALL_IN), |
