From 8e78e4c150782f5a864a1216de548515336d09f1 Mon Sep 17 00:00:00 2001 From: Christopher Kenna Date: Wed, 24 Oct 2012 13:45:21 -0400 Subject: Add Color Queue overhead tracing events. --- include/timestamp.h | 27 +++++++++++++++++++++++++++ src/timestamp.c | 9 +++++++++ 2 files changed, 36 insertions(+) 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); #define TS_PLUGIN_SCHED_START TIMESTAMP(120) #define TS_PLUGIN_SCHED_END TIMESTAMP(121) +#define TS_CQ_ENQUEUE_READ_START TIMESTAMP(124) +#define TS_CQ_ENQUEUE_READ_END TIMESTAMP(125) + +#define TS_CQ_ENQUEUE_FLUSH_START TIMESTAMP(126) +#define TS_CQ_ENQUEUE_FLUSH_END TIMESTAMP(127) + +#define TS_CQ_SUBMIT_WORK_START TIMESTAMP(128) +#define TS_CQ_SUBMIT_WORK_END TIMESTAMP(129) + #define TS_PLUGIN_TICK_START TIMESTAMP(130) #define TS_PLUGIN_TICK_END TIMESTAMP(131) +#define TS_CQ_LOOP_WORK_CHECK_START TIMESTAMP(132) +#define TS_CQ_LOOP_WORK_CHECK_END TIMESTAMP(133) + +#define TS_CQ_LOOP_PEACE_OUT_START TIMESTAMP(134) +#define TS_CQ_LOOP_PEACE_OUT_END TIMESTAMP(135) + +#define TS_CQ_LOOP_BRANCH_START TIMESTAMP(136) +#define TS_CQ_LOOP_BRANCH_END TIMESTAMP(137) + +#define TS_CQ_WORK_DO_WORK_START TIMESTAMP(138) +#define TS_CQ_WORK_DO_WORK_END TIMESTAMP(139) + +#define TS_CQ_WORK_NOTIFY_START TIMESTAMP(142) +#define TS_CQ_WORK_NOTIFY_END TIMESTAMP(143) + +#define TS_CQ_PHASE_WAIT_START TIMESTAMP(144) +#define TS_CQ_PHASE_WAIT_END TIMESTAMP(145) + #define TS_SEND_RESCHED_START TIMESTAMP(190) #define TS_SEND_RESCHED_END TIMESTAMP(191) 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[] = EVENT(LVLB_SCHED), EVENT(LVLC_RELEASE), EVENT(LVLC_SCHED), + EVENT(CQ_ENQUEUE_READ), + EVENT(CQ_ENQUEUE_FLUSH), + EVENT(CQ_SUBMIT_WORK), + EVENT(CQ_LOOP_WORK_CHECK), + EVENT(CQ_LOOP_PEACE_OUT), + EVENT(CQ_LOOP_BRANCH), + EVENT(CQ_WORK_DO_WORK), + EVENT(CQ_WORK_NOTIFY), + EVENT(CQ_PHASE_WAIT), {"RELEASE_LATENCY", TS_RELEASE_LATENCY}, EVENT(SYSCALL_IN), -- cgit v1.2.2