From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkqCT-0008Sy-3c for qemu-devel@nongnu.org; Sun, 02 Nov 2014 03:07:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XkqCK-0004T7-2V for qemu-devel@nongnu.org; Sun, 02 Nov 2014 03:07:49 -0500 Received: from mail-lb0-x229.google.com ([2a00:1450:4010:c04::229]:43290) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkqCJ-0004Sr-OM for qemu-devel@nongnu.org; Sun, 02 Nov 2014 03:07:39 -0500 Received: by mail-lb0-f169.google.com with SMTP id p9so2267314lbv.14 for ; Sun, 02 Nov 2014 01:07:37 -0700 (PDT) From: Max Filippov Date: Sun, 2 Nov 2014 11:07:20 +0300 Message-Id: <1414915640-9543-1-git-send-email-jcmvbkbc@gmail.com> Subject: [Qemu-devel] [PATCH] tcg: dump op count to the same stream as other info List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Max Filippov , Richard Henderson Otherwise 'info jit' outputs half of the information to monitor and the rest to qemu log. Signed-off-by: Max Filippov --- 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