[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] tcg: dump op count to the same stream as other info
From: |
Max Filippov |
Subject: |
[Qemu-devel] [PATCH] tcg: dump op count to the same stream as other info |
Date: |
Sun, 2 Nov 2014 11:07:20 +0300 |
Otherwise 'info jit' outputs half of the information to monitor and the
rest to qemu log.
Signed-off-by: Max Filippov <address@hidden>
---
tcg/tcg.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/tcg/tcg.c b/tcg/tcg.c
index 7a84b87..15d29df 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -2401,12 +2401,13 @@ static int tcg_reg_alloc_call(TCGContext *s, const
TCGOpDef *def,
static int64_t tcg_table_op_count[NB_OPS];
-static void dump_op_count(void)
+static void dump_op_count(FILE *f, fprintf_function cpu_fprintf)
{
int i;
for(i = INDEX_op_end; i < NB_OPS; i++) {
- qemu_log("%s %" PRId64 "\n", tcg_op_defs[i].name,
tcg_table_op_count[i]);
+ cpu_fprintf(f, "%s %" PRId64 "\n", tcg_op_defs[i].name,
+ tcg_table_op_count[i]);
}
}
#endif
@@ -2621,7 +2622,7 @@ void tcg_dump_info(FILE *f, fprintf_function cpu_fprintf)
cpu_fprintf(f, " avg cycles %0.1f\n",
s->restore_count ? (double)s->restore_time / s->restore_count
: 0);
- dump_op_count();
+ dump_op_count(f, cpu_fprintf);
}
#else
void tcg_dump_info(FILE *f, fprintf_function cpu_fprintf)
--
1.8.1.4
- [Qemu-devel] [PATCH] tcg: dump op count to the same stream as other info,
Max Filippov <=