Re: [PATCH v9 02/13] accel: collecting TB execution count

2019-10-08 Thread Richard Henderson
On 10/7/19 11:28 AM, Alex Bennée wrote: > +void HELPER(inc_exec_freq)(void *ptr) > +{ > +TBStatistics *stats = (TBStatistics *) ptr; > +g_assert(stats); > +atomic_inc(>executions.normal); > +} tcg_debug_assert. > diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c >

[PATCH v9 02/13] accel: collecting TB execution count

2019-10-07 Thread Alex Bennée
From: "Vanderson M. do Rosario" If a TB has a TBS (TBStatistics) with the TB_EXEC_STATS enabled, then we instrument the start code of this TB to atomically count the number of times it is executed. We count both the number of "normal" executions and atomic executions of a TB. The execution