summary refs log tree commit diff stats
path: root/accel/tcg/tcg-stats.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-06-17 14:45:29 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-07-15 19:34:33 +0200
commitcf4305ed7a24f25cef0bd35609d03ea688fa24fa (patch)
treef2e7a26410739682cf7b69420ed70eeb4a216a42 /accel/tcg/tcg-stats.c
parent2320453031f87e4245a5625f3714d444e987ea0c (diff)
downloadfocaccia-qemu-cf4305ed7a24f25cef0bd35609d03ea688fa24fa.tar.gz
focaccia-qemu-cf4305ed7a24f25cef0bd35609d03ea688fa24fa.zip
accel/tcg: Implement AccelClass::get_stats() handler
Factor tcg_get_stats() out of tcg_dump_stats(),
passing the current accelerator argument to match
the AccelClass::get_stats() prototype.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250715140048.84942-7-philmd@linaro.org>
Diffstat (limited to 'accel/tcg/tcg-stats.c')
-rw-r--r--accel/tcg/tcg-stats.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/accel/tcg/tcg-stats.c b/accel/tcg/tcg-stats.c
index e1a1c4cf4a..ced5dec0c4 100644
--- a/accel/tcg/tcg-stats.c
+++ b/accel/tcg/tcg-stats.c
@@ -206,9 +206,14 @@ static void dump_exec_info(GString *buf)
     tcg_dump_flush_info(buf);
 }
 
-void tcg_dump_stats(GString *buf)
+void tcg_get_stats(AccelState *accel, GString *buf)
 {
-    dump_accel_info(current_accel(), buf);
+    dump_accel_info(accel, buf);
     dump_exec_info(buf);
     dump_drift_info(buf);
 }
+
+void tcg_dump_stats(GString *buf)
+{
+    tcg_get_stats(current_accel(), buf);
+}