[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v4 0/7] Measure Tiny Code Generation Quality
From: |
vandersonmr |
Subject: |
[Qemu-devel] [PATCH v4 0/7] Measure Tiny Code Generation Quality |
Date: |
Fri, 19 Jul 2019 22:02:28 -0300 |
This patch is part of Google Summer of Code (GSoC) 2019.
More about the project can be found in:
https://wiki.qemu.org/Internships/ProjectIdeas/TCGCodeQuality
The goal of this patch is to add infrastructure to collect
execution and JIT statistics during the emulation with accel/TCG.
The statistics are stored in TBStatistic structures (TBStats)
with each TB having its respective TBStats.
We added -d tb_stats and HMP tb_stats commands to allow the control
of this statistics collection. And info tb, tbs, and coverset commands
were also added to allow dumping and exploring all this information
while emulating.
Collecting these statistics and information is useful to understand
qemu performance and to help to add the support for traces to QEMU.
vandersonmr (7):
accel: introducing TBStatistics structure
accel: collecting TB execution count
accel: collecting JIT statistics
accel: replacing part of CONFIG_PROFILER with TBStats
log: adding -d tb_stats to control tbstats
monitor: adding tb_stats hmp command
monitor: adding info tbs, tb, and coverset
accel/tcg/Makefile.objs | 2 +-
accel/tcg/tb-stats.c | 489 +++++++++++++++++++++++++++++++++++
accel/tcg/tcg-runtime.c | 7 +
accel/tcg/tcg-runtime.h | 2 +
accel/tcg/translate-all.c | 93 ++++++-
accel/tcg/translator.c | 6 +
disas.c | 108 ++++++++
hmp-commands-info.hx | 23 ++
hmp-commands.hx | 17 ++
include/disas/disas.h | 1 +
include/exec/exec-all.h | 15 +-
include/exec/gen-icount.h | 9 +
include/exec/tb-context.h | 12 +
include/exec/tb-hash.h | 7 +
include/exec/tb-stats.h | 113 ++++++++
include/qemu/log-for-trace.h | 2 +
include/qemu/log.h | 16 ++
linux-user/exit.c | 4 +
monitor/misc.c | 111 ++++++++
tcg/tcg.c | 114 +++-----
tcg/tcg.h | 12 +-
util/log.c | 99 ++++++-
22 files changed, 1144 insertions(+), 118 deletions(-)
create mode 100644 accel/tcg/tb-stats.c
create mode 100644 include/exec/tb-stats.h
--
2.22.0
- [Qemu-devel] [PATCH v4 0/7] Measure Tiny Code Generation Quality,
vandersonmr <=
- [Qemu-devel] [PATCH v4 1/7] accel: introducing TBStatistics structure, vandersonmr, 2019/07/19
- [Qemu-devel] [PATCH v4 2/7] accel: collecting TB execution count, vandersonmr, 2019/07/19
- [Qemu-devel] [PATCH v4 3/7] accel: collecting JIT statistics, vandersonmr, 2019/07/19
- [Qemu-devel] [PATCH v4 4/7] accel: replacing part of CONFIG_PROFILER with TBStats, vandersonmr, 2019/07/19
- [Qemu-devel] [PATCH v4 5/7] log: adding -d tb_stats to control tbstats, vandersonmr, 2019/07/19