aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2011-07-25 15:38:17 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2011-07-25 15:38:17 -0400
commit6d5089ca72c3dce534c5ae23aec36f3f4e5ae4f8 (patch)
tree8a4a07d43d1d3e335925610ae1bc53fe5fc40c82
parentba4fb61f6ddfcf1848feb6d689ed0e9badd7e40d (diff)
update timestamp types
-rw-r--r--include/timestamp.h15
-rw-r--r--src/timestamp.c7
2 files changed, 22 insertions, 0 deletions
diff --git a/include/timestamp.h b/include/timestamp.h
index 0a269ab..f3dd6b8 100644
--- a/include/timestamp.h
+++ b/include/timestamp.h
@@ -28,6 +28,13 @@ const char* task_type2str(int task_type);
28 28
29#define TIMESTAMP(id) id 29#define TIMESTAMP(id) id
30 30
31#define TS_SYSCALL_IN_START TIMESTAMP(10)
32#define TS_SYSCALL_IN_END TIMESTAMP(11)
33
34#define TS_SYSCALL_OUT_START TIMESTAMP(20)
35#define TS_SYSCALL_OUT_END TIMESTAMP(21)
36
37
31#define TS_SCHED_START TIMESTAMP(100) 38#define TS_SCHED_START TIMESTAMP(100)
32#define TS_SCHED_END TIMESTAMP(101) 39#define TS_SCHED_END TIMESTAMP(101)
33#define TS_SCHED2_START TIMESTAMP(102) 40#define TS_SCHED2_START TIMESTAMP(102)
@@ -48,6 +55,14 @@ const char* task_type2str(int task_type);
48#define TS_PLUGIN_TICK_START TIMESTAMP(130) 55#define TS_PLUGIN_TICK_START TIMESTAMP(130)
49#define TS_PLUGIN_TICK_END TIMESTAMP(131) 56#define TS_PLUGIN_TICK_END TIMESTAMP(131)
50 57
58#define TS_LOCK_START TIMESTAMP(170)
59#define TS_LOCK_SUSPEND TIMESTAMP(171)
60#define TS_LOCK_RESUME TIMESTAMP(172)
61#define TS_LOCK_END TIMESTAMP(173)
62
63#define TS_UNLOCK_START TIMESTAMP(180)
64#define TS_UNLOCK_END TIMESTAMP(181)
65
51#define TS_SEND_RESCHED_START TIMESTAMP(190) 66#define TS_SEND_RESCHED_START TIMESTAMP(190)
52#define TS_SEND_RESCHED_END TIMESTAMP(191) 67#define TS_SEND_RESCHED_END TIMESTAMP(191)
53 68
diff --git a/src/timestamp.c b/src/timestamp.c
index 34ad448..442c445 100644
--- a/src/timestamp.c
+++ b/src/timestamp.c
@@ -23,6 +23,13 @@ static struct event_name event_table[] =
23 EVENT(CXS), 23 EVENT(CXS),
24 EVENT(SEND_RESCHED), 24 EVENT(SEND_RESCHED),
25 {"RELEASE_LATENCY", TS_RELEASE_LATENCY}, 25 {"RELEASE_LATENCY", TS_RELEASE_LATENCY},
26
27 EVENT(SYSCALL_IN),
28 EVENT(SYSCALL_OUT),
29 EVENT(LOCK),
30 EVENT(UNLOCK),
31 {"LOCK_SUSPEND", TS_LOCK_SUSPEND},
32 {"LOCK_RESUME", TS_LOCK_RESUME},
26}; 33};
27 34
28int str2event(const char* str, cmd_t *id) 35int str2event(const char* str, cmd_t *id)