Re: [Qemu-devel] [Qemu-Devel][PATCH 1/3] Adding an optional tb execution counter.

2019-06-17 Thread Alex Bennée
[repeat of reply to wrong email...] vandersonmr writes: > An uint64_t counter was added in the TranslationBlock struct and > it is incremented every time that the TB is executed. > > Signed-off-by: vandersonmr > --- > accel/tcg/tcg-runtime.c | 6 ++ > accel/tcg/tcg-runtime.h | 2 ++ >

Re: [Qemu-devel] [Qemu-Devel][PATCH 1/3] Adding an optional tb execution counter.

2019-06-16 Thread Richard Henderson
On 6/14/19 6:53 AM, vandersonmr wrote: > +void HELPER(inc_exec_freq)(void *ptr) > +{ > +TranslationBlock* tb = (TranslationBlock*) ptr; > +atomic_inc(&tb->exec_freq); > +} ... > +DEF_HELPER_FLAGS_1(inc_exec_freq, TCG_CALL_NO_RWG, void, ptr) ... > uint32_t flags; /* flags defining in wh

[Qemu-devel] [Qemu-Devel][PATCH 1/3] Adding an optional tb execution counter.

2019-06-14 Thread vandersonmr
An uint64_t counter was added in the TranslationBlock struct and it is incremented every time that the TB is executed. Signed-off-by: vandersonmr --- accel/tcg/tcg-runtime.c | 6 ++ accel/tcg/tcg-runtime.h | 2 ++ include/exec/exec-all.h | 1 + include/exec/gen-icount.h | 7 +++ li