From ae1d5e700bbf4b8b1f1ecfaab69f2ef8d55e3563 Mon Sep 17 00:00:00 2001 From: Bjoern Brandenburg Date: Mon, 5 May 2014 18:10:25 +0200 Subject: Add syscall get_current_budget() --- include/litmus.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') diff --git a/include/litmus.h b/include/litmus.h index b9dbdb5..72f1ad4 100644 --- a/include/litmus.h +++ b/include/litmus.h @@ -401,6 +401,16 @@ static inline int open_dflp_sem(int fd, int name, int cpu) return od_openx(fd, DFLP_SEM, name, &cpu); } +/** + * Get budget information from the scheduler (in nanoseconds). + * @param expended pointer to time value in wich the total + * amount of already used-up budget will be stored. + * @param remaining pointer to time value in wich the total + * amount of remaining budget will be stored. + */ + +int get_current_budget(lt_t *expended, lt_t *remaining); + /** * Do nothing as a syscall * @param timestamp Cyclecount before calling -- cgit v1.2.2