diff options
author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2014-09-15 02:13:35 -0400 |
---|---|---|
committer | Namhoon Kim <namhoonk@cs.unc.edu> | 2014-11-03 21:59:17 -0500 |
commit | a56ffe502e0f4edc7be9b59533455fdc3c9f86d3 (patch) | |
tree | 9686b5213a83da12b1621301aa9702a616bcaf93 /include | |
parent | 4841253863ef57e0b91d169b0080ce079d54fe6f (diff) |
Reservations: keep track of consumed budget
This can be a useful stat for userspace.
Diffstat (limited to 'include')
-rw-r--r-- | include/litmus/reservation.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/litmus/reservation.h b/include/litmus/reservation.h index 9c23e27165b2..4eecd3f088e8 100644 --- a/include/litmus/reservation.h +++ b/include/litmus/reservation.h | |||
@@ -117,6 +117,10 @@ struct reservation { | |||
117 | lt_t cur_budget; | 117 | lt_t cur_budget; |
118 | lt_t next_replenishment; | 118 | lt_t next_replenishment; |
119 | 119 | ||
120 | /* budget stats */ | ||
121 | lt_t budget_consumed; /* how much budget consumed in this allocation cycle? */ | ||
122 | lt_t budget_consumed_total; | ||
123 | |||
120 | /* interaction with framework */ | 124 | /* interaction with framework */ |
121 | struct reservation_environment *env; | 125 | struct reservation_environment *env; |
122 | struct reservation_ops *ops; | 126 | struct reservation_ops *ops; |