diff options
-rw-r--r-- | include/litmus.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/litmus.h b/include/litmus.h index 3fa2a57..82e4bd1 100644 --- a/include/litmus.h +++ b/include/litmus.h | |||
@@ -151,6 +151,16 @@ static inline int open_pcp_sem(int fd, int name, int cpu) | |||
151 | return od_openx(fd, PCP_SEM, name, &cpu); | 151 | return od_openx(fd, PCP_SEM, name, &cpu); |
152 | } | 152 | } |
153 | 153 | ||
154 | static inline int open_mpcp_sem(int fd, int name) | ||
155 | { | ||
156 | return od_open(fd, MPCP_SEM, name); | ||
157 | } | ||
158 | |||
159 | static inline int open_dpcp_sem(int fd, int name, int cpu) | ||
160 | { | ||
161 | return od_openx(fd, DPCP_SEM, name, &cpu); | ||
162 | } | ||
163 | |||
154 | 164 | ||
155 | /* syscall overhead measuring */ | 165 | /* syscall overhead measuring */ |
156 | int null_call(cycles_t *timestamp); | 166 | int null_call(cycles_t *timestamp); |