X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_profiler.c;h=567f652084e78f0acdbfc99eebe2f2d79fbed22e;hb=ad6ae90a3f3ec599f2cbc37d867614b8dbcf75ee;hp=f7bc8789a3d97e660844639f9df0e7834413866c;hpb=1136ff005017b791572f5f2fa2b2f846a04817e7;p=palacios.git diff --git a/palacios/src/palacios/vmm_profiler.c b/palacios/src/palacios/vmm_profiler.c index f7bc878..567f652 100644 --- a/palacios/src/palacios/vmm_profiler.c +++ b/palacios/src/palacios/vmm_profiler.c @@ -120,9 +120,10 @@ void v3_profile_exit(struct guest_info * info, uint_t exit_code) { insert_event(info, evt); } + - evt->handler_time = (evt->handler_time * .99) + (time * .01); + evt->handler_time = (evt->handler_time * 127ull + time) / 128; evt->exit_count++;