[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v7 10/10] linux-user: dumping hot TBs at the end of
From: |
vandersonmr |
Subject: |
[Qemu-devel] [PATCH v7 10/10] linux-user: dumping hot TBs at the end of the execution |
Date: |
Thu, 29 Aug 2019 13:47:54 -0300 |
dumps, in linux-user mode, the hottest TBs if -d tb_stats is used.
Example of output for the 3 hottest TBs:
TB id:1 | phys:0x34d54 virt:0x0000000000034d54 flags:0x0000f0
| exec:4828932/0 guest inst cov:16.38%
| trans:1 ints: g:3 op:82 op_opt:34 spills:3
| h/g (host bytes / guest insts): 90.666664
| time to gen at 2.4GHz => code:3150.83(ns) IR:712.08(ns)
| targets: 0x0000000000034d5e (id:11), 0x0000000000034d0d (id:2)
TB id:2 | phys:0x34d0d virt:0x0000000000034d0d flags:0x0000f0
| exec:4825842/0 guest inst cov:21.82%
| trans:1 ints: g:4 op:80 op_opt:38 spills:2
| h/g (host bytes / guest insts): 84.000000
| time to gen at 2.4GHz => code:3362.92(ns) IR:793.75(ns)
| targets: 0x0000000000034d19 (id:12), 0x0000000000034d54 (id:1)
TB id:3 | phys:0xec1c1 virt:0x00000000000ec1c1 flags:0x0000b0
| exec:872032/0 guest inst cov:1.97%
| trans:1 ints: g:2 op:56 op_opt:26 spills:1
| h/g (host bytes / guest insts): 68.000000
| time to gen at 2.4GHz => code:1692.08(ns) IR:473.75(ns)
| targets: 0x00000000000ec1c5 (id:4), 0x00000000000ec1cb (id:13)
Signed-off-by: Vanderson M. do Rosario <address@hidden>
---
linux-user/exit.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/linux-user/exit.c b/linux-user/exit.c
index bdda720553..7226104959 100644
--- a/linux-user/exit.c
+++ b/linux-user/exit.c
@@ -28,6 +28,10 @@ extern void __gcov_dump(void);
void preexit_cleanup(CPUArchState *env, int code)
{
+ if (tb_stats_collection_enabled()) {
+ dump_tbs_info(max_num_hot_tbs_to_dump, SORT_BY_HOTNESS, false);
+ }
+
#ifdef TARGET_GPROF
_mcleanup();
#endif
--
2.22.0
- [Qemu-devel] [PATCH v7 00/10] Measure Tiny Code Generation Quality, vandersonmr, 2019/08/29
- [Qemu-devel] [PATCH v7 01/10] accel: collecting TB execution count, vandersonmr, 2019/08/29
- [Qemu-devel] [PATCH v7 02/10] accel: collecting JIT statistics, vandersonmr, 2019/08/29
- [Qemu-devel] [PATCH v7 03/10] accel: replacing part of CONFIG_PROFILER with TBStats, vandersonmr, 2019/08/29
- [Qemu-devel] [PATCH v7 05/10] Adding -d tb_stats to control TBStatistics collection:, vandersonmr, 2019/08/29
- [Qemu-devel] [PATCH v7 04/10] accel: adding TB_JIT_TIME and full replacing CONFIG_PROFILER, vandersonmr, 2019/08/29
- [Qemu-devel] [PATCH v7 06/10] monitor: adding tb_stats hmp command, vandersonmr, 2019/08/29
- [Qemu-devel] [PATCH v7 07/10] Adding tb_stats [start|pause|stop|filter] command to hmp., vandersonmr, 2019/08/29
- [Qemu-devel] [PATCH v7 09/10] monitor: adding new info cfg command, vandersonmr, 2019/08/29
- [Qemu-devel] [PATCH v7 10/10] linux-user: dumping hot TBs at the end of the execution,
vandersonmr <=
- [Qemu-devel] [PATCH v7 08/10] Adding info [tb-list|tb|coverset] commands to HMP., vandersonmr, 2019/08/29