diff options
author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2014-09-15 02:13:35 -0400 |
---|---|---|
committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2014-09-15 02:13:35 -0400 |
commit | 39817a0abbaadd57117a7ca816f5c5c247eba11e (patch) | |
tree | 5d4d5cf2936b9dd8c1d5173e5b9bd28c9c0e6c3f /include/litmus/reservation.h | |
parent | adc5c2babea29bfb1dc3297e41500b95c146fb41 (diff) |
Reservations: keep track of consumed budget
This can be a useful stat for userspace.
Diffstat (limited to 'include/litmus/reservation.h')
-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; |