From 6d5089ca72c3dce534c5ae23aec36f3f4e5ae4f8 Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Mon, 25 Jul 2011 15:38:17 -0400 Subject: update timestamp types --- include/timestamp.h | 15 +++++++++++++++ src/timestamp.c | 7 +++++++ 2 files changed, 22 insertions(+) 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); #define TIMESTAMP(id) id +#define TS_SYSCALL_IN_START TIMESTAMP(10) +#define TS_SYSCALL_IN_END TIMESTAMP(11) + +#define TS_SYSCALL_OUT_START TIMESTAMP(20) +#define TS_SYSCALL_OUT_END TIMESTAMP(21) + + #define TS_SCHED_START TIMESTAMP(100) #define TS_SCHED_END TIMESTAMP(101) #define TS_SCHED2_START TIMESTAMP(102) @@ -48,6 +55,14 @@ const char* task_type2str(int task_type); #define TS_PLUGIN_TICK_START TIMESTAMP(130) #define TS_PLUGIN_TICK_END TIMESTAMP(131) +#define TS_LOCK_START TIMESTAMP(170) +#define TS_LOCK_SUSPEND TIMESTAMP(171) +#define TS_LOCK_RESUME TIMESTAMP(172) +#define TS_LOCK_END TIMESTAMP(173) + +#define TS_UNLOCK_START TIMESTAMP(180) +#define TS_UNLOCK_END TIMESTAMP(181) + #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 34ad448..442c445 100644 --- a/src/timestamp.c +++ b/src/timestamp.c @@ -23,6 +23,13 @@ static struct event_name event_table[] = EVENT(CXS), EVENT(SEND_RESCHED), {"RELEASE_LATENCY", TS_RELEASE_LATENCY}, + + EVENT(SYSCALL_IN), + EVENT(SYSCALL_OUT), + EVENT(LOCK), + EVENT(UNLOCK), + {"LOCK_SUSPEND", TS_LOCK_SUSPEND}, + {"LOCK_RESUME", TS_LOCK_RESUME}, }; int str2event(const char* str, cmd_t *id) -- cgit v1.2.2