diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2011-01-29 14:45:49 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2011-02-01 16:54:35 -0500 |
commit | 963fd846e36b48d5338ef2a134d3ee8d208abc07 (patch) | |
tree | 6c0c69edcdf3dfe23f4305fb03e6c29788f34168 | |
parent | 7f0bd4c213ff8dca0eb3bdd887f5c62c8d30fab5 (diff) |
Feather-Trace: rename locking trace points
Since we don't expect to trace more than one lock type at a time,
having protocol-specific trace points is not required.
-rw-r--r-- | include/litmus/trace.h | 18 | ||||
-rw-r--r-- | litmus/locking.c | 8 |
2 files changed, 8 insertions, 18 deletions
diff --git a/include/litmus/trace.h b/include/litmus/trace.h index b32c71180774..05f487263f28 100644 --- a/include/litmus/trace.h +++ b/include/litmus/trace.h | |||
@@ -91,20 +91,10 @@ feather_callback void save_timestamp_cpu(unsigned long event, unsigned long cpu) | |||
91 | #define TS_EXIT_NP_START TIMESTAMP(150) | 91 | #define TS_EXIT_NP_START TIMESTAMP(150) |
92 | #define TS_EXIT_NP_END TIMESTAMP(151) | 92 | #define TS_EXIT_NP_END TIMESTAMP(151) |
93 | 93 | ||
94 | #define TS_SRP_UP_START TIMESTAMP(160) | 94 | #define TS_LOCK_START TIMESTAMP(170) |
95 | #define TS_SRP_UP_END TIMESTAMP(161) | 95 | #define TS_LOCK_END TIMESTAMP(171) |
96 | #define TS_SRP_DOWN_START TIMESTAMP(162) | 96 | #define TS_UNLOCK_START TIMESTAMP(172) |
97 | #define TS_SRP_DOWN_END TIMESTAMP(163) | 97 | #define TS_UNLOCK_END TIMESTAMP(173) |
98 | |||
99 | #define TS_PI_UP_START TIMESTAMP(170) | ||
100 | #define TS_PI_UP_END TIMESTAMP(171) | ||
101 | #define TS_PI_DOWN_START TIMESTAMP(172) | ||
102 | #define TS_PI_DOWN_END TIMESTAMP(173) | ||
103 | |||
104 | #define TS_FIFO_UP_START TIMESTAMP(180) | ||
105 | #define TS_FIFO_UP_END TIMESTAMP(181) | ||
106 | #define TS_FIFO_DOWN_START TIMESTAMP(182) | ||
107 | #define TS_FIFO_DOWN_END TIMESTAMP(183) | ||
108 | 98 | ||
109 | #define TS_SEND_RESCHED_START(c) CTIMESTAMP(190, c) | 99 | #define TS_SEND_RESCHED_START(c) CTIMESTAMP(190, c) |
110 | #define TS_SEND_RESCHED_END DTIMESTAMP(191, TSK_UNKNOWN) | 100 | #define TS_SEND_RESCHED_END DTIMESTAMP(191, TSK_UNKNOWN) |
diff --git a/litmus/locking.c b/litmus/locking.c index 8ee6a6b68009..728b56835cf7 100644 --- a/litmus/locking.c +++ b/litmus/locking.c | |||
@@ -69,7 +69,7 @@ asmlinkage long sys_litmus_lock(int lock_od) | |||
69 | struct od_table_entry* entry; | 69 | struct od_table_entry* entry; |
70 | struct litmus_lock* l; | 70 | struct litmus_lock* l; |
71 | 71 | ||
72 | TS_PI_DOWN_START; | 72 | TS_LOCK_START; |
73 | 73 | ||
74 | entry = get_entry_for_od(lock_od); | 74 | entry = get_entry_for_od(lock_od); |
75 | if (entry && is_lock(entry)) { | 75 | if (entry && is_lock(entry)) { |
@@ -80,7 +80,7 @@ asmlinkage long sys_litmus_lock(int lock_od) | |||
80 | 80 | ||
81 | /* Note: task my have been suspended or preempted in between! Take | 81 | /* Note: task my have been suspended or preempted in between! Take |
82 | * this into account when computing overheads. */ | 82 | * this into account when computing overheads. */ |
83 | TS_PI_DOWN_END; | 83 | TS_UNLOCK_END; |
84 | 84 | ||
85 | return err; | 85 | return err; |
86 | } | 86 | } |
@@ -91,7 +91,7 @@ asmlinkage long sys_litmus_unlock(int lock_od) | |||
91 | struct od_table_entry* entry; | 91 | struct od_table_entry* entry; |
92 | struct litmus_lock* l; | 92 | struct litmus_lock* l; |
93 | 93 | ||
94 | TS_PI_UP_START; | 94 | TS_UNLOCK_START; |
95 | 95 | ||
96 | entry = get_entry_for_od(lock_od); | 96 | entry = get_entry_for_od(lock_od); |
97 | if (entry && is_lock(entry)) { | 97 | if (entry && is_lock(entry)) { |
@@ -102,7 +102,7 @@ asmlinkage long sys_litmus_unlock(int lock_od) | |||
102 | 102 | ||
103 | /* Note: task my have been preempted in between! Take this into | 103 | /* Note: task my have been preempted in between! Take this into |
104 | * account when computing overheads. */ | 104 | * account when computing overheads. */ |
105 | TS_PI_UP_END; | 105 | TS_UNLOCK_END; |
106 | 106 | ||
107 | return err; | 107 | return err; |
108 | } | 108 | } |