diff options
author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2012-08-14 14:29:17 -0400 |
---|---|---|
committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2012-08-14 14:46:16 -0400 |
commit | f215a05c0ea23c7779b1a3a4361b4d88ddc73dc1 (patch) | |
tree | 8d105f8894c1a3f52ae88561faa6e866218fcf10 /include | |
parent | a72371ea7d7b13bf0126b4636a7cba9e03ea12b8 (diff) |
Implement get_nr_ts_release_waiters() /proc wrapper
Add a wrapper for /proc/litmus/stats to make it easy to query the
number of tasks already waiting for a task set release.
Diffstat (limited to 'include')
-rw-r--r-- | include/internal.h | 3 | ||||
-rw-r--r-- | include/litmus.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/internal.h b/include/internal.h index f30ce61..747f095 100644 --- a/include/internal.h +++ b/include/internal.h | |||
@@ -26,5 +26,8 @@ int __launch_rt_task(rt_fn_t rt_prog, void *rt_arg, | |||
26 | #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); })) | 26 | #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); })) |
27 | #define BUILD_BUG_ON(condition) ((void)BUILD_BUG_ON_ZERO(condition)) | 27 | #define BUILD_BUG_ON(condition) ((void)BUILD_BUG_ON_ZERO(condition)) |
28 | 28 | ||
29 | /* I/O convenience function */ | ||
30 | ssize_t read_file(const char* fname, void* buf, size_t maxlen); | ||
31 | |||
29 | #endif | 32 | #endif |
30 | 33 | ||
diff --git a/include/litmus.h b/include/litmus.h index 82e4bd1..e4b619e 100644 --- a/include/litmus.h +++ b/include/litmus.h | |||
@@ -120,6 +120,7 @@ int requested_to_preempt(void); | |||
120 | /* task system support */ | 120 | /* task system support */ |
121 | int wait_for_ts_release(void); | 121 | int wait_for_ts_release(void); |
122 | int release_ts(lt_t *delay); | 122 | int release_ts(lt_t *delay); |
123 | int get_nr_ts_release_waiters(void); | ||
123 | 124 | ||
124 | #define __NS_PER_MS 1000000 | 125 | #define __NS_PER_MS 1000000 |
125 | 126 | ||