diff options
author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2014-05-05 12:10:25 -0400 |
---|---|---|
committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2015-09-08 01:12:22 -0400 |
commit | ae1d5e700bbf4b8b1f1ecfaab69f2ef8d55e3563 (patch) | |
tree | a5ba13a0fb10ee787f1e4c2b8fe40b4bc40e11a1 /include | |
parent | 0394bde254c6c5dadb494d3626f7e3b909f19e0c (diff) |
Add syscall get_current_budget()
Diffstat (limited to 'include')
-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 b9dbdb5..72f1ad4 100644 --- a/include/litmus.h +++ b/include/litmus.h | |||
@@ -402,6 +402,16 @@ static inline int open_dflp_sem(int fd, int name, int cpu) | |||
402 | } | 402 | } |
403 | 403 | ||
404 | /** | 404 | /** |
405 | * Get budget information from the scheduler (in nanoseconds). | ||
406 | * @param expended pointer to time value in wich the total | ||
407 | * amount of already used-up budget will be stored. | ||
408 | * @param remaining pointer to time value in wich the total | ||
409 | * amount of remaining budget will be stored. | ||
410 | */ | ||
411 | |||
412 | int get_current_budget(lt_t *expended, lt_t *remaining); | ||
413 | |||
414 | /** | ||
405 | * Do nothing as a syscall | 415 | * Do nothing as a syscall |
406 | * @param timestamp Cyclecount before calling | 416 | * @param timestamp Cyclecount before calling |
407 | * Can be used for syscall overhead measuring */ | 417 | * Can be used for syscall overhead measuring */ |