aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Bastoni <bastoni@cs.unc.edu>2010-04-28 10:41:48 -0400
committerAndrea Bastoni <bastoni@cs.unc.edu>2010-04-28 10:41:48 -0400
commit4d1d3d418f64f251c4a100b2568b74989ccd3448 (patch)
tree75182da549b9a9c600271b8b16faa43b95c4dcd6
parente84fce96e96d8b5ee5e9531400b0735fb7e4fbb6 (diff)
Add presched putprev picknext tracing points
-rw-r--r--include/timestamp.h9
-rw-r--r--src/timestamp.c3
2 files changed, 12 insertions, 0 deletions
diff --git a/include/timestamp.h b/include/timestamp.h
index a31f2ea..a54d2a3 100644
--- a/include/timestamp.h
+++ b/include/timestamp.h
@@ -41,6 +41,15 @@ const char* event2str(cmd_t id);
41#define TS_TICK_START TIMESTAMP(110) 41#define TS_TICK_START TIMESTAMP(110)
42#define TS_TICK_END TIMESTAMP(111) 42#define TS_TICK_END TIMESTAMP(111)
43 43
44#define TS_PRESCHED_START TIMESTAMP(114)
45#define TS_PRESCHED_END TIMESTAMP(115)
46
47#define TS_PUTPREV_START TIMESTAMP(116)
48#define TS_PUTPREV_END TIMESTAMP(117)
49
50#define TS_PICKNEXT_START TIMESTAMP(118)
51#define TS_PICKNEXT_END TIMESTAMP(119)
52
44#define TS_PLUGIN_SCHED_START TIMESTAMP(120) 53#define TS_PLUGIN_SCHED_START TIMESTAMP(120)
45#define TS_PLUGIN_SCHED_END TIMESTAMP(121) 54#define TS_PLUGIN_SCHED_END TIMESTAMP(121)
46 55
diff --git a/src/timestamp.c b/src/timestamp.c
index 4c04ce7..bec40f3 100644
--- a/src/timestamp.c
+++ b/src/timestamp.c
@@ -22,6 +22,9 @@ static struct event_name event_table[] =
22 EVENT(PLUGIN_TICK), 22 EVENT(PLUGIN_TICK),
23 EVENT(CXS), 23 EVENT(CXS),
24 EVENT(SEND_RESCHED), 24 EVENT(SEND_RESCHED),
25 EVENT(PRESCHED),
26 EVENT(PUTPREV),
27 EVENT(PICKNEXT),
25}; 28};
26 29
27int str2event(const char* str, cmd_t *id) 30int str2event(const char* str, cmd_t *id)