aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2011-03-31 11:58:29 -0400
committerGlenn Elliott <gelliott@cs.unc.edu>2011-03-31 11:58:29 -0400
commitaee0e7c1385751aa92c04b993fec570552c2669a (patch)
tree074fdb3ba3e60c7e94ecd47d3d4fa42af0b52e60
parented2742a29674222173147b73f223bc7be01e1eaf (diff)
Add interface for K-FMLP.
Added hooks to support K-FMLP.
-rw-r--r--include/litmus.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/litmus.h b/include/litmus.h
index 52435d8..165e9cf 100644
--- a/include/litmus.h
+++ b/include/litmus.h
@@ -49,7 +49,8 @@ int sporadic_task_ns(
49/* file descriptor attached shared objects support */ 49/* file descriptor attached shared objects support */
50typedef enum { 50typedef enum {
51 FMLP_SEM = 0, 51 FMLP_SEM = 0,
52 SRP_SEM = 1, 52 KFMLP_SEM = 1,
53 SRP_SEM = 2,
53} obj_type_t; 54} obj_type_t;
54 55
55int od_openx(int fd, obj_type_t type, int obj_id, void* config); 56int od_openx(int fd, obj_type_t type, int obj_id, void* config);
@@ -125,6 +126,10 @@ static inline int open_srp_sem(int fd, int name)
125 return od_open(fd, SRP_SEM, name); 126 return od_open(fd, SRP_SEM, name);
126} 127}
127 128
129static inline int open_kfmlp_sem(int fd, int name, void* arg)
130{
131 return od_openx(fd, KFMLP_SEM, name, arg);
132}
128 133
129/* syscall overhead measuring */ 134/* syscall overhead measuring */
130int null_call(cycles_t *timestamp); 135int null_call(cycles_t *timestamp);