diff options
| author | ztong <ztong@cs.unc.edu> | 2021-03-10 15:29:46 -0500 |
|---|---|---|
| committer | ztong <ztong@cs.unc.edu> | 2021-03-10 15:29:46 -0500 |
| commit | 22fa2c37519cdd1d7e261d4efe0d3aa57b96c716 (patch) | |
| tree | a47385ba5748de35333ae5bd862ce108d97062fd | |
| parent | bea119e8503107b92aae3bd26f2ceac104f58293 (diff) | |
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | include/timestamp.h | 14 | ||||
| -rw-r--r-- | src/timestamp.c | 6 |
3 files changed, 15 insertions, 7 deletions
| @@ -5,7 +5,7 @@ | |||
| 5 | -include .config | 5 | -include .config |
| 6 | 6 | ||
| 7 | # Where is the LITMUS^RT userspace library source tree? | 7 | # Where is the LITMUS^RT userspace library source tree? |
| 8 | LIBLITMUS ?= ../liblitmus | 8 | LIBLITMUS ?= ../liblitmus-ext-res |
| 9 | 9 | ||
| 10 | # Include default configuration from liblitmus | 10 | # Include default configuration from liblitmus |
| 11 | # Liblitmus must have been built before ft_tools can be built. | 11 | # Liblitmus must have been built before ft_tools can be built. |
diff --git a/include/timestamp.h b/include/timestamp.h index 40050f7..8836071 100644 --- a/include/timestamp.h +++ b/include/timestamp.h | |||
| @@ -49,8 +49,14 @@ const char* task_type2str(int task_type); | |||
| 49 | #define TS_LOCK_START TIMESTAMP(30) | 49 | #define TS_LOCK_START TIMESTAMP(30) |
| 50 | #define TS_LOCK_END TIMESTAMP(31) | 50 | #define TS_LOCK_END TIMESTAMP(31) |
| 51 | 51 | ||
| 52 | #define TS_READ_LOCK_START TIMESTAMP(32) | 52 | #define TS_FZ_ENTER_START TIMESTAMP(32) |
| 53 | #define TS_READ_LOCK_END TIMESTAMP(33) | 53 | #define TS_FZ_ENTER_END TIMESTAMP(33) |
| 54 | |||
| 55 | #define TS_FZ_EXIT_START TIMESTAMP(34) | ||
| 56 | #define TS_FZ_EXIT_END TIMESTAMP(35) | ||
| 57 | |||
| 58 | //#define TS_READ_LOCK_START TIMESTAMP(32) | ||
| 59 | //#define TS_READ_LOCK_END TIMESTAMP(33) | ||
| 54 | 60 | ||
| 55 | #define TS_LOCK_SUSPEND TIMESTAMP(38) | 61 | #define TS_LOCK_SUSPEND TIMESTAMP(38) |
| 56 | #define TS_LOCK_RESUME TIMESTAMP(39) | 62 | #define TS_LOCK_RESUME TIMESTAMP(39) |
| @@ -58,8 +64,8 @@ const char* task_type2str(int task_type); | |||
| 58 | #define TS_UNLOCK_START TIMESTAMP(40) | 64 | #define TS_UNLOCK_START TIMESTAMP(40) |
| 59 | #define TS_UNLOCK_END TIMESTAMP(41) | 65 | #define TS_UNLOCK_END TIMESTAMP(41) |
| 60 | 66 | ||
| 61 | #define TS_READ_UNLOCK_START TIMESTAMP(42) | 67 | //#define TS_READ_UNLOCK_START TIMESTAMP(42) |
| 62 | #define TS_READ_UNLOCK_END TIMESTAMP(43) | 68 | //#define TS_READ_UNLOCK_END TIMESTAMP(43) |
| 63 | 69 | ||
| 64 | #define PID_RECORDS_RANGE 99 | 70 | #define PID_RECORDS_RANGE 99 |
| 65 | 71 | ||
diff --git a/src/timestamp.c b/src/timestamp.c index 581edc2..057cd18 100644 --- a/src/timestamp.c +++ b/src/timestamp.c | |||
| @@ -32,9 +32,11 @@ static struct event_name event_table[] = | |||
| 32 | EVENT(SYSCALL_IN), | 32 | EVENT(SYSCALL_IN), |
| 33 | EVENT(SYSCALL_OUT), | 33 | EVENT(SYSCALL_OUT), |
| 34 | EVENT(LOCK), | 34 | EVENT(LOCK), |
| 35 | EVENT(FZ_ENTER), | ||
| 36 | EVENT(FZ_EXIT), | ||
| 35 | EVENT(UNLOCK), | 37 | EVENT(UNLOCK), |
| 36 | EVENT(READ_LOCK), | 38 | //EVENT(READ_LOCK), |
| 37 | EVENT(READ_UNLOCK), | 39 | //EVENT(READ_UNLOCK), |
| 38 | {"LOCK_SUSPEND", TS_LOCK_SUSPEND}, | 40 | {"LOCK_SUSPEND", TS_LOCK_SUSPEND}, |
| 39 | {"LOCK_RESUME", TS_LOCK_RESUME}, | 41 | {"LOCK_RESUME", TS_LOCK_RESUME}, |
| 40 | }; | 42 | }; |
