unicorn/qemu/accel/tcg
Emilio G. Cota 16113cbd3c
translate-all: report correct avg host TB size
Since commit 6e3b2bfd6 ("tcg: allocate TB structs before the
corresponding translated code") we are not fully utilizing
code_gen_buffer for translated code, and therefore are
incorrectly reporting the amount of translated code as well as
the average host TB size. Address this by:

- Making the conscious choice of misreporting the total translated code;
doing otherwise would mislead users into thinking "-tb-size" is not
honoured.

- Expanding tb_tree_stats to accurately count the bytes of translated code on
the host, and using this for reporting the average tb host size,
as well as the expansion ratio.

In the future we might want to consider reporting the accurate numbers for
the total translated code, together with a "bookkeeping/overhead" field to
account for the TB structs.

Backports commit f19c6cc6fc356dab7a766b471ec5eb3058f0afc1 from qemu
2018-03-13 16:22:24 -04:00
..
atomic_template.h accel/tcg: move atomic_template.h to accel/tcg/ 2018-03-13 12:28:50 -04:00
cpu-exec-common.c tcg: move tcg backend files into accel/tcg/ 2018-03-13 11:48:15 -04:00
cpu-exec.c exec-all: rename tb_free to tb_remove 2018-03-13 16:20:41 -04:00
cputlb.c tcg: move tcg backend files into accel/tcg/ 2018-03-13 11:48:15 -04:00
Makefile.objs tcg: move tcg backend files into accel/tcg/ 2018-03-13 11:48:15 -04:00
softmmu_template.h accel/tcg: move softmmu_template.h to accel/tcg/ 2018-03-13 12:27:04 -04:00
tcg-runtime-gvec.c tcg: move tcg backend files into accel/tcg/ 2018-03-13 11:48:15 -04:00
tcg-runtime.c tcg: define CF_PARALLEL and use it for TB hashing along with CF_COUNT_MASK 2018-03-13 14:32:43 -04:00
tcg-runtime.h tcg: move tcg backend files into accel/tcg/ 2018-03-13 11:48:15 -04:00
translate-all.c translate-all: report correct avg host TB size 2018-03-13 16:22:24 -04:00
translate-all.h tcg: move tcg backend files into accel/tcg/ 2018-03-13 11:48:15 -04:00
translate-common.c tcg: move tcg backend files into accel/tcg/ 2018-03-13 11:48:15 -04:00
translator.c tcg: convert tb->cflags reads to tb_cflags(tb) 2018-03-13 14:57:51 -04:00