aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2012-08-15 07:41:13 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2012-10-19 14:36:02 -0400
commitdc9421543acf741a8c3aab32cc3630b33d7116bc (patch)
tree535f638890e0195ca5572eda59bf088f411d057a
parent4d44afb20de33f00b0e9ffc708e360a419b11e56 (diff)
Update locking timestamp IDs
...to mirror those used in the kernel.
-rw-r--r--include/timestamp.h26
-rw-r--r--src/timestamp.c2
2 files changed, 20 insertions, 8 deletions
diff --git a/include/timestamp.h b/include/timestamp.h
index 75ab79a..57fd0bc 100644
--- a/include/timestamp.h
+++ b/include/timestamp.h
@@ -36,6 +36,24 @@ const char* task_type2str(int task_type);
36#define TS_SYSCALL_OUT_START TIMESTAMP(20) 36#define TS_SYSCALL_OUT_START TIMESTAMP(20)
37#define TS_SYSCALL_OUT_END TIMESTAMP(21) 37#define TS_SYSCALL_OUT_END TIMESTAMP(21)
38 38
39#define SUSPENSION_RANGE 30
40
41#define TS_LOCK_START TIMESTAMP(30)
42#define TS_LOCK_END TIMESTAMP(31)
43
44#define TS_READ_LOCK_START TIMESTAMP(32)
45#define TS_READ_LOCK_END TIMESTAMP(33)
46
47#define TS_LOCK_SUSPEND TIMESTAMP(38)
48#define TS_LOCK_RESUME TIMESTAMP(39)
49
50#define TS_UNLOCK_START TIMESTAMP(40)
51#define TS_UNLOCK_END TIMESTAMP(41)
52
53#define TS_READ_UNLOCK_START TIMESTAMP(42)
54#define TS_READ_UNLOCK_END TIMESTAMP(43)
55
56#define PID_RECORDS_RANGE 99
39 57
40#define TS_SCHED_START TIMESTAMP(100) 58#define TS_SCHED_START TIMESTAMP(100)
41#define TS_SCHED_END TIMESTAMP(101) 59#define TS_SCHED_END TIMESTAMP(101)
@@ -57,14 +75,6 @@ const char* task_type2str(int task_type);
57#define TS_PLUGIN_TICK_START TIMESTAMP(130) 75#define TS_PLUGIN_TICK_START TIMESTAMP(130)
58#define TS_PLUGIN_TICK_END TIMESTAMP(131) 76#define TS_PLUGIN_TICK_END TIMESTAMP(131)
59 77
60#define TS_LOCK_START TIMESTAMP(170)
61#define TS_LOCK_SUSPEND TIMESTAMP(171)
62#define TS_LOCK_RESUME TIMESTAMP(172)
63#define TS_LOCK_END TIMESTAMP(173)
64
65#define TS_UNLOCK_START TIMESTAMP(180)
66#define TS_UNLOCK_END TIMESTAMP(181)
67
68#define TS_SEND_RESCHED_START TIMESTAMP(190) 78#define TS_SEND_RESCHED_START TIMESTAMP(190)
69#define TS_SEND_RESCHED_END TIMESTAMP(191) 79#define TS_SEND_RESCHED_END TIMESTAMP(191)
70 80
diff --git a/src/timestamp.c b/src/timestamp.c
index 442c445..16edc43 100644
--- a/src/timestamp.c
+++ b/src/timestamp.c
@@ -28,6 +28,8 @@ static struct event_name event_table[] =
28 EVENT(SYSCALL_OUT), 28 EVENT(SYSCALL_OUT),
29 EVENT(LOCK), 29 EVENT(LOCK),
30 EVENT(UNLOCK), 30 EVENT(UNLOCK),
31 EVENT(READ_LOCK),
32 EVENT(READ_UNLOCK),
31 {"LOCK_SUSPEND", TS_LOCK_SUSPEND}, 33 {"LOCK_SUSPEND", TS_LOCK_SUSPEND},
32 {"LOCK_RESUME", TS_LOCK_RESUME}, 34 {"LOCK_RESUME", TS_LOCK_RESUME},
33}; 35};