aboutsummaryrefslogtreecommitdiffstats
path: root/include/litmus.h
diff options
context:
space:
mode:
authorNamhoon Kim <namhoonk@cs.unc.edu>2016-10-13 16:27:40 -0400
committerNamhoon Kim <namhoonk@cs.unc.edu>2016-10-13 16:27:40 -0400
commitb6ef12e31351d23a439597162f8d0fa7031b771d (patch)
tree9e1c36eabaef6def1df0c0ffe56db608f0c5852c /include/litmus.h
parent262677fc436c3e2109e628bb2f4708c6b279a551 (diff)
RTAS 2017 submissionwip-shared-lib
Diffstat (limited to 'include/litmus.h')
-rw-r--r--include/litmus.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/litmus.h b/include/litmus.h
index b9dbdb5..4b97b87 100644
--- a/include/litmus.h
+++ b/include/litmus.h
@@ -40,6 +40,8 @@ extern "C" {
40 40
41#include "migration.h" 41#include "migration.h"
42 42
43#include "litmus/mc2_common.h"
44
43/** 45/**
44 * @private 46 * @private
45 * The numeric ID of the LITMUS^RT scheduling class. 47 * The numeric ID of the LITMUS^RT scheduling class.
@@ -146,6 +148,12 @@ int sporadic_clustered(lt_t e_ns, lt_t p_ns, int cluster);
146/** Convert microseconds to nanoseconds 148/** Convert microseconds to nanoseconds
147 * @param us Time units in microseconds */ 149 * @param us Time units in microseconds */
148#define us2ns(us) ((us)*1000LL) 150#define us2ns(us) ((us)*1000LL)
151#define ns2s(ns) ((ns)/1000000000LL)
152#define ns2ms(ns) ((ns)/1000000LL)
153#define ns2us(ns) ((ns)/1000LL)
154#define us2ms(us) ((us)/1000LL)
155#define us2s(us) ((us)/1000000LL)
156#define ms2s(ms) ((ms)/1000LL)
149 157
150/** 158/**
151 * Locking protocols for allocated shared objects 159 * Locking protocols for allocated shared objects
@@ -416,6 +424,18 @@ int null_call(cycles_t *timestamp);
416 */ 424 */
417struct control_page* get_ctrl_page(void); 425struct control_page* get_ctrl_page(void);
418 426
427int reservation_create(int rtype, void *config);
428
429int reservation_destroy(unsigned int reservation_id, int cpu);
430
431int set_mc2_task_param(pid_t pid, struct mc2_task* param);
432
433int set_page_color(int cpu);
434
435int test_call(unsigned int param);
436
437typedef struct cacheline cacheline_t;
438
419#ifdef __cplusplus 439#ifdef __cplusplus
420} 440}
421#endif 441#endif