|
@@ -228,7 +228,7 @@ static void test_config_functions(void)
|
|
read_timer_cb, write_timer_cb, &ts);
|
|
read_timer_cb, write_timer_cb, &ts);
|
|
/* structure reset by throttle_init previous_leak should be null */
|
|
/* structure reset by throttle_init previous_leak should be null */
|
|
g_assert(!ts.previous_leak);
|
|
g_assert(!ts.previous_leak);
|
|
- throttle_config(&ts, QEMU_CLOCK_VIRTUAL, &tt, &orig_cfg);
|
|
|
|
|
|
+ throttle_config(&ts, QEMU_CLOCK_VIRTUAL, &orig_cfg);
|
|
|
|
|
|
/* has previous leak been initialized by throttle_config ? */
|
|
/* has previous leak been initialized by throttle_config ? */
|
|
g_assert(ts.previous_leak);
|
|
g_assert(ts.previous_leak);
|
|
@@ -486,7 +486,7 @@ static bool do_test_accounting(bool is_ops, /* are we testing bps or ops */
|
|
throttle_init(&ts);
|
|
throttle_init(&ts);
|
|
throttle_timers_init(&tt, ctx, QEMU_CLOCK_VIRTUAL,
|
|
throttle_timers_init(&tt, ctx, QEMU_CLOCK_VIRTUAL,
|
|
read_timer_cb, write_timer_cb, &ts);
|
|
read_timer_cb, write_timer_cb, &ts);
|
|
- throttle_config(&ts, QEMU_CLOCK_VIRTUAL, &tt, &cfg);
|
|
|
|
|
|
+ throttle_config(&ts, QEMU_CLOCK_VIRTUAL, &cfg);
|
|
|
|
|
|
/* account a read */
|
|
/* account a read */
|
|
throttle_account(&ts, false, size);
|
|
throttle_account(&ts, false, size);
|