aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2009-04-28 16:37:26 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2009-04-28 16:37:26 -0400
commit7c2555677297c1497ab45623c4de01a6fc6152db (patch)
tree381770d47fdcddd5a6c868f00c6ec2b84123cafc
parent3f131ac9a0f130291292c73a3505f0a1bffea9ad (diff)
add SEND_RESCHED event
-rw-r--r--include/timestamp.h3
-rw-r--r--src/timestamp.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/include/timestamp.h b/include/timestamp.h
index 3670541..a31f2ea 100644
--- a/include/timestamp.h
+++ b/include/timestamp.h
@@ -47,4 +47,7 @@ const char* event2str(cmd_t id);
47#define TS_PLUGIN_TICK_START TIMESTAMP(130) 47#define TS_PLUGIN_TICK_START TIMESTAMP(130)
48#define TS_PLUGIN_TICK_END TIMESTAMP(131) 48#define TS_PLUGIN_TICK_END TIMESTAMP(131)
49 49
50#define TS_SEND_RESCHED_START TIMESTAMP(190)
51#define TS_SEND_RESCHED_END TIMESTAMP(191)
52
50#endif 53#endif
diff --git a/src/timestamp.c b/src/timestamp.c
index 9ad43f1..4c04ce7 100644
--- a/src/timestamp.c
+++ b/src/timestamp.c
@@ -21,6 +21,7 @@ static struct event_name event_table[] =
21 EVENT(PLUGIN_SCHED), 21 EVENT(PLUGIN_SCHED),
22 EVENT(PLUGIN_TICK), 22 EVENT(PLUGIN_TICK),
23 EVENT(CXS), 23 EVENT(CXS),
24 EVENT(SEND_RESCHED),
24}; 25};
25 26
26int str2event(const char* str, cmd_t *id) 27int str2event(const char* str, cmd_t *id)