hmp.c (644B)
1#include "qemu/osdep.h" 2#include "qemu/error-report.h" 3#include "exec/exec-all.h" 4#include "monitor/monitor.h" 5#include "sysemu/tcg.h" 6 7static void hmp_info_jit(Monitor *mon, const QDict *qdict) 8{ 9 if (!tcg_enabled()) { 10 error_report("JIT information is only available with accel=tcg"); 11 return; 12 } 13 14 dump_exec_info(); 15 dump_drift_info(); 16} 17 18static void hmp_info_opcount(Monitor *mon, const QDict *qdict) 19{ 20 dump_opcount_info(); 21} 22 23static void hmp_tcg_register(void) 24{ 25 monitor_register_hmp("jit", true, hmp_info_jit); 26 monitor_register_hmp("opcount", true, hmp_info_opcount); 27} 28 29type_init(hmp_tcg_register);