mirror of
				https://github.com/qemu/qemu.git
				synced 2025-10-31 12:07:31 +00:00 
			
		
		
		
	 b6a7f3e0d2
			
		
	
	
		b6a7f3e0d2
		
	
	
	
	
		
			
			This is a counterpart to the HMP "info opcount" command. It is being added with an "x-" prefix because this QMP command is intended as an ad hoc debugging tool and will thus not be modelled in QAPI as fully structured data, nor will it have long term guaranteed stability. The existing HMP command is rewritten to call the QMP command. Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
		
			
				
	
	
		
			16 lines
		
	
	
		
			395 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			395 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #include "qemu/osdep.h"
 | |
| #include "qemu/error-report.h"
 | |
| #include "qapi/error.h"
 | |
| #include "qapi/qapi-commands-machine.h"
 | |
| #include "exec/exec-all.h"
 | |
| #include "monitor/monitor.h"
 | |
| #include "sysemu/tcg.h"
 | |
| 
 | |
| static void hmp_tcg_register(void)
 | |
| {
 | |
|     monitor_register_hmp_info_hrt("jit", qmp_x_query_jit);
 | |
|     monitor_register_hmp_info_hrt("opcount", qmp_x_query_opcount);
 | |
| }
 | |
| 
 | |
| type_init(hmp_tcg_register);
 |