[PATCH v17 00/16] TCG code quality tracking

Richard Henderson posted 16 patches 7 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20231003183058.1639121-1-richard.henderson@linaro.org
Maintainers: Richard Henderson <richard.henderson@linaro.org>, Paolo Bonzini <pbonzini@redhat.com>, Warner Losh <imp@bsdimp.com>, Kyle Evans <kevans@freebsd.org>, "Dr. David Alan Gilbert" <dave@treblig.org>, Peter Xu <peterx@redhat.com>, David Hildenbrand <david@redhat.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Laurent Vivier <laurent@vivier.eu>, Nicholas Piggin <npiggin@gmail.com>, Daniel Henrique Barboza <danielhb413@gmail.com>, "Cédric Le Goater" <clg@kaod.org>, Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>, Artyom Tarasenko <atar4qemu@gmail.com>
accel/tcg/internal-common.h      |   2 -
accel/tcg/tb-context.h           |   4 +-
bsd-user/bsd-proc.h              |   2 +
include/disas/disas.h            |   8 +-
include/exec/cputlb.h            |   1 -
include/exec/memory.h            |   2 +
include/exec/translation-block.h |   3 +
include/monitor/hmp-target.h     |   5 +-
include/qemu/log.h               |   2 +-
include/qemu/typedefs.h          |   1 +
include/tcg/tb-stats.h           | 165 ++++++++++++++++
include/tcg/tcg.h                |   8 +-
accel/tcg/cpu-exec.c             |   6 +
accel/tcg/cputlb.c               |  15 --
accel/tcg/monitor.c              | 317 ++++++++++++++++++++++++++++++-
accel/tcg/tb-maint.c             |   3 +-
accel/tcg/tb-stats.c             | 231 ++++++++++++++++++++++
accel/tcg/translate-all.c        | 167 ++++------------
accel/tcg/translator.c           |  28 +++
bsd-user/main.c                  |   6 +-
disas/disas-mon.c                |  32 +++-
linux-user/exit.c                |  10 +-
linux-user/main.c                |   7 +-
monitor/hmp-cmds-target.c        |  27 +--
monitor/hmp-cmds.c               |   5 +-
monitor/hmp-target.c             |   2 +
softmmu/physmem.c                |   4 +-
softmmu/runstate.c               |   2 +
softmmu/vl.c                     |   7 +-
stubs/tb-stats.c                 |  20 ++
target/i386/monitor.c            |   4 +-
target/ppc/ppc-qmp-cmds.c        |  20 +-
target/sparc/monitor.c           |   8 +-
tcg/tcg.c                        |  50 ++---
util/log.c                       |  51 ++++-
accel/tcg/meson.build            |   1 +
hmp-commands-info.hx             |  14 ++
hmp-commands.hx                  |  15 ++
stubs/meson.build                |   1 +
39 files changed, 1027 insertions(+), 229 deletions(-)
create mode 100644 include/tcg/tb-stats.h
create mode 100644 accel/tcg/tb-stats.c
create mode 100644 stubs/tb-stats.c
[PATCH v17 00/16] TCG code quality tracking
Posted by Richard Henderson 7 months ago
Based-on: <20231003173052.1601813-1-richard.henderson@linaro.org>
("[PULL 00/47] tcg patch queue")

v16: 20230628120430.73777-1-fei2.wu@intel.com

Changes for v17:
  * Split some patches, and other preliminary cleanup.


r~


Fei Wu (2):
  util/log: Add -d tb_stats
  accel/tcg: Dump hot TBs at the end of the execution

Richard Henderson (9):
  accel/tcg: Move HMP info jit and info opcount code
  tcg: Record orig_nb_ops TCGContext
  tcg: Record nb_deleted_ops in TCGContext
  tcg: Record nb_spills in TCGContext
  accel/tcg: Add TBStatistics structure
  accel/tcg: Collect TB jit statistics
  util/log: Add Error argument to qemu_str_to_log_mask
  softmmu: Export qemu_ram_ptr_length
  monitor: Change MonitorDec.get_value return type to int64_t

Vanderson M. do Rosario (5):
  accel/tcg: Collect TB execution statistics
  accel/tcg: Add tb_stats hmp command
  accel/tcg: Add tb_stats_collect and tb_stats_dump
  disas: Allow monitor_disas to read from ram_addr_t
  accel/tcg: Add info [tb-list|tb] commands to HMP

 accel/tcg/internal-common.h      |   2 -
 accel/tcg/tb-context.h           |   4 +-
 bsd-user/bsd-proc.h              |   2 +
 include/disas/disas.h            |   8 +-
 include/exec/cputlb.h            |   1 -
 include/exec/memory.h            |   2 +
 include/exec/translation-block.h |   3 +
 include/monitor/hmp-target.h     |   5 +-
 include/qemu/log.h               |   2 +-
 include/qemu/typedefs.h          |   1 +
 include/tcg/tb-stats.h           | 165 ++++++++++++++++
 include/tcg/tcg.h                |   8 +-
 accel/tcg/cpu-exec.c             |   6 +
 accel/tcg/cputlb.c               |  15 --
 accel/tcg/monitor.c              | 317 ++++++++++++++++++++++++++++++-
 accel/tcg/tb-maint.c             |   3 +-
 accel/tcg/tb-stats.c             | 231 ++++++++++++++++++++++
 accel/tcg/translate-all.c        | 167 ++++------------
 accel/tcg/translator.c           |  28 +++
 bsd-user/main.c                  |   6 +-
 disas/disas-mon.c                |  32 +++-
 linux-user/exit.c                |  10 +-
 linux-user/main.c                |   7 +-
 monitor/hmp-cmds-target.c        |  27 +--
 monitor/hmp-cmds.c               |   5 +-
 monitor/hmp-target.c             |   2 +
 softmmu/physmem.c                |   4 +-
 softmmu/runstate.c               |   2 +
 softmmu/vl.c                     |   7 +-
 stubs/tb-stats.c                 |  20 ++
 target/i386/monitor.c            |   4 +-
 target/ppc/ppc-qmp-cmds.c        |  20 +-
 target/sparc/monitor.c           |   8 +-
 tcg/tcg.c                        |  50 ++---
 util/log.c                       |  51 ++++-
 accel/tcg/meson.build            |   1 +
 hmp-commands-info.hx             |  14 ++
 hmp-commands.hx                  |  15 ++
 stubs/meson.build                |   1 +
 39 files changed, 1027 insertions(+), 229 deletions(-)
 create mode 100644 include/tcg/tb-stats.h
 create mode 100644 accel/tcg/tb-stats.c
 create mode 100644 stubs/tb-stats.c

-- 
2.34.1