hmp: Name HMP info handler functions hmp_info_SUBCOMMAND()
Some are called do_info_SUBCOMMAND() (old ones, usually), some hmp_info_SUBCOMMAND(), some SUBCOMMAND_info(), sometimes SUBCOMMAND pointlessly differs in spelling. Normalize to hmp_info_SUBCOMMAND(), where SUBCOMMAND is exactly the subcommand name with '-' replaced by '_'. Exceptions: * sun4m_irq_info(), sun4m_pic_info() renamed to sun4m_hmp_info_irq(), sun4m_hmp_info_pic(). * lm32_irq_info(), lm32_pic_info() renamed to lm32_hmp_info_irq(), lm32_hmp_info_pic(). Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
3e5a50d64c
commit
1ce6be24df
@ -1062,7 +1062,7 @@ void *rom_ptr(hwaddr addr)
|
|||||||
return rom->data + (addr - rom->addr);
|
return rom->data + (addr - rom->addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
void do_info_roms(Monitor *mon, const QDict *qdict)
|
void hmp_info_roms(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
Rom *rom;
|
Rom *rom;
|
||||||
|
|
||||||
|
@ -429,7 +429,7 @@ static void pic_realize(DeviceState *dev, Error **errp)
|
|||||||
pc->parent_realize(dev, errp);
|
pc->parent_realize(dev, errp);
|
||||||
}
|
}
|
||||||
|
|
||||||
void pic_info(Monitor *mon, const QDict *qdict)
|
void hmp_info_pic(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
PICCommonState *s;
|
PICCommonState *s;
|
||||||
@ -447,7 +447,7 @@ void pic_info(Monitor *mon, const QDict *qdict)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void irq_info(Monitor *mon, const QDict *qdict)
|
void hmp_info_irq(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
#ifndef DEBUG_IRQ_COUNT
|
#ifndef DEBUG_IRQ_COUNT
|
||||||
monitor_printf(mon, "irq statistic code not compiled.\n");
|
monitor_printf(mon, "irq statistic code not compiled.\n");
|
||||||
|
@ -43,7 +43,7 @@ struct LM32PicState {
|
|||||||
typedef struct LM32PicState LM32PicState;
|
typedef struct LM32PicState LM32PicState;
|
||||||
|
|
||||||
static LM32PicState *pic;
|
static LM32PicState *pic;
|
||||||
void lm32_do_pic_info(Monitor *mon, const QDict *qdict)
|
void lm32_hmp_info_pic(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
if (pic == NULL) {
|
if (pic == NULL) {
|
||||||
return;
|
return;
|
||||||
@ -53,7 +53,7 @@ void lm32_do_pic_info(Monitor *mon, const QDict *qdict)
|
|||||||
pic->im, pic->ip, pic->irq_state);
|
pic->im, pic->ip, pic->irq_state);
|
||||||
}
|
}
|
||||||
|
|
||||||
void lm32_irq_info(Monitor *mon, const QDict *qdict)
|
void lm32_hmp_info_irq(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
uint32_t count;
|
uint32_t count;
|
||||||
|
@ -176,13 +176,13 @@ static void nvram_init(M48t59State *nvram, uint8_t *macaddr,
|
|||||||
|
|
||||||
static DeviceState *slavio_intctl;
|
static DeviceState *slavio_intctl;
|
||||||
|
|
||||||
void sun4m_pic_info(Monitor *mon, const QDict *qdict)
|
void sun4m_hmp_info_pic(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
if (slavio_intctl)
|
if (slavio_intctl)
|
||||||
slavio_pic_info(mon, slavio_intctl);
|
slavio_pic_info(mon, slavio_intctl);
|
||||||
}
|
}
|
||||||
|
|
||||||
void sun4m_irq_info(Monitor *mon, const QDict *qdict)
|
void sun4m_hmp_info_irq(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
if (slavio_intctl)
|
if (slavio_intctl)
|
||||||
slavio_irq_info(mon, slavio_intctl);
|
slavio_irq_info(mon, slavio_intctl);
|
||||||
|
@ -627,7 +627,7 @@ static char *usb_get_fw_dev_path(DeviceState *qdev)
|
|||||||
return fw_path;
|
return fw_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
void usb_info(Monitor *mon, const QDict *qdict)
|
void hmp_info_usb(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
USBBus *bus;
|
USBBus *bus;
|
||||||
USBDevice *dev;
|
USBDevice *dev;
|
||||||
|
@ -1637,7 +1637,7 @@ static void usb_host_auto_check(void *unused)
|
|||||||
timer_mod(usb_auto_timer, qemu_clock_get_ms(QEMU_CLOCK_REALTIME) + 2000);
|
timer_mod(usb_auto_timer, qemu_clock_get_ms(QEMU_CLOCK_REALTIME) + 2000);
|
||||||
}
|
}
|
||||||
|
|
||||||
void usb_host_info(Monitor *mon, const QDict *qdict)
|
void hmp_info_usbhost(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
libusb_device **devs = NULL;
|
libusb_device **devs = NULL;
|
||||||
struct libusb_device_descriptor ddesc;
|
struct libusb_device_descriptor ddesc;
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
#include "hw/usb.h"
|
#include "hw/usb.h"
|
||||||
#include "monitor/monitor.h"
|
#include "monitor/monitor.h"
|
||||||
|
|
||||||
void usb_host_info(Monitor *mon, const QDict *qdict)
|
void hmp_info_usbhost(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
monitor_printf(mon, "USB host devices not supported\n");
|
monitor_printf(mon, "USB host devices not supported\n");
|
||||||
}
|
}
|
||||||
|
@ -136,8 +136,8 @@ qemu_irq *i8259_init(ISABus *bus, qemu_irq parent_irq);
|
|||||||
qemu_irq *kvm_i8259_init(ISABus *bus);
|
qemu_irq *kvm_i8259_init(ISABus *bus);
|
||||||
int pic_read_irq(DeviceState *d);
|
int pic_read_irq(DeviceState *d);
|
||||||
int pic_get_output(DeviceState *d);
|
int pic_get_output(DeviceState *d);
|
||||||
void pic_info(Monitor *mon, const QDict *qdict);
|
void hmp_info_pic(Monitor *mon, const QDict *qdict);
|
||||||
void irq_info(Monitor *mon, const QDict *qdict);
|
void hmp_info_irq(Monitor *mon, const QDict *qdict);
|
||||||
|
|
||||||
/* Global System Interrupts */
|
/* Global System Interrupts */
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ uint32_t lm32_pic_get_im(DeviceState *d);
|
|||||||
void lm32_pic_set_ip(DeviceState *d, uint32_t ip);
|
void lm32_pic_set_ip(DeviceState *d, uint32_t ip);
|
||||||
void lm32_pic_set_im(DeviceState *d, uint32_t im);
|
void lm32_pic_set_im(DeviceState *d, uint32_t im);
|
||||||
|
|
||||||
void lm32_do_pic_info(Monitor *mon, const QDict *qdict);
|
void lm32_hmp_info_pic(Monitor *mon, const QDict *qdict);
|
||||||
void lm32_irq_info(Monitor *mon, const QDict *qdict);
|
void lm32_hmp_info_irq(Monitor *mon, const QDict *qdict);
|
||||||
|
|
||||||
#endif /* QEMU_HW_LM32_PIC_H */
|
#endif /* QEMU_HW_LM32_PIC_H */
|
||||||
|
@ -78,7 +78,7 @@ void rom_load_done(void);
|
|||||||
void rom_set_fw(FWCfgState *f);
|
void rom_set_fw(FWCfgState *f);
|
||||||
int rom_copy(uint8_t *dest, hwaddr addr, size_t size);
|
int rom_copy(uint8_t *dest, hwaddr addr, size_t size);
|
||||||
void *rom_ptr(hwaddr addr);
|
void *rom_ptr(hwaddr addr);
|
||||||
void do_info_roms(Monitor *mon, const QDict *qdict);
|
void hmp_info_roms(Monitor *mon, const QDict *qdict);
|
||||||
|
|
||||||
#define rom_add_file_fixed(_f, _a, _i) \
|
#define rom_add_file_fixed(_f, _a, _i) \
|
||||||
rom_add_file(_f, NULL, _a, _i, false)
|
rom_add_file(_f, NULL, _a, _i, false)
|
||||||
|
@ -29,8 +29,8 @@ void slavio_pic_info(Monitor *mon, DeviceState *dev);
|
|||||||
void slavio_irq_info(Monitor *mon, DeviceState *dev);
|
void slavio_irq_info(Monitor *mon, DeviceState *dev);
|
||||||
|
|
||||||
/* sun4m.c */
|
/* sun4m.c */
|
||||||
void sun4m_pic_info(Monitor *mon, const QDict *qdict);
|
void sun4m_hmp_info_pic(Monitor *mon, const QDict *qdict);
|
||||||
void sun4m_irq_info(Monitor *mon, const QDict *qdict);
|
void sun4m_hmp_info_irq(Monitor *mon, const QDict *qdict);
|
||||||
|
|
||||||
/* sparc32_dma.c */
|
/* sparc32_dma.c */
|
||||||
#include "hw/sparc/sparc32_dma.h"
|
#include "hw/sparc/sparc32_dma.h"
|
||||||
|
@ -473,7 +473,7 @@ int set_usb_string(uint8_t *buf, const char *str);
|
|||||||
|
|
||||||
/* usb-linux.c */
|
/* usb-linux.c */
|
||||||
USBDevice *usb_host_device_open(USBBus *bus, const char *devname);
|
USBDevice *usb_host_device_open(USBBus *bus, const char *devname);
|
||||||
void usb_host_info(Monitor *mon, const QDict *qdict);
|
void hmp_info_usbhost(Monitor *mon, const QDict *qdict);
|
||||||
|
|
||||||
/* usb ports of the VM */
|
/* usb ports of the VM */
|
||||||
|
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
|
|
||||||
/*** monitor commands ***/
|
/*** monitor commands ***/
|
||||||
|
|
||||||
void do_info_qtree(Monitor *mon, const QDict *qdict);
|
void hmp_info_qtree(Monitor *mon, const QDict *qdict);
|
||||||
void do_info_qdm(Monitor *mon, const QDict *qdict);
|
void hmp_info_qdm(Monitor *mon, const QDict *qdict);
|
||||||
int do_device_add(Monitor *mon, const QDict *qdict, QObject **ret_data);
|
int do_device_add(Monitor *mon, const QDict *qdict, QObject **ret_data);
|
||||||
int qdev_device_help(QemuOpts *opts);
|
int qdev_device_help(QemuOpts *opts);
|
||||||
DeviceState *qdev_device_add(QemuOpts *opts);
|
DeviceState *qdev_device_add(QemuOpts *opts);
|
||||||
|
@ -156,7 +156,7 @@ ssize_t qemu_deliver_packet_iov(NetClientState *sender,
|
|||||||
void *opaque);
|
void *opaque);
|
||||||
|
|
||||||
void print_net_client(Monitor *mon, NetClientState *nc);
|
void print_net_client(Monitor *mon, NetClientState *nc);
|
||||||
void do_info_network(Monitor *mon, const QDict *qdict);
|
void hmp_info_network(Monitor *mon, const QDict *qdict);
|
||||||
|
|
||||||
/* NIC info */
|
/* NIC info */
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ int net_slirp_parse_legacy(QemuOptsList *opts_list, const char *optarg, int *ret
|
|||||||
|
|
||||||
int net_slirp_smb(const char *exported_dir);
|
int net_slirp_smb(const char *exported_dir);
|
||||||
|
|
||||||
void do_info_usernet(Monitor *mon, const QDict *qdict);
|
void hmp_info_usernet(Monitor *mon, const QDict *qdict);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ void qemu_add_machine_init_done_notifier(Notifier *notify);
|
|||||||
void hmp_savevm(Monitor *mon, const QDict *qdict);
|
void hmp_savevm(Monitor *mon, const QDict *qdict);
|
||||||
int load_vmstate(const char *name);
|
int load_vmstate(const char *name);
|
||||||
void hmp_delvm(Monitor *mon, const QDict *qdict);
|
void hmp_delvm(Monitor *mon, const QDict *qdict);
|
||||||
void do_info_snapshots(Monitor *mon, const QDict *qdict);
|
void hmp_info_snapshots(Monitor *mon, const QDict *qdict);
|
||||||
|
|
||||||
void qemu_announce_self(void);
|
void qemu_announce_self(void);
|
||||||
|
|
||||||
@ -201,7 +201,7 @@ extern CharDriverState *parallel_hds[MAX_PARALLEL_PORTS];
|
|||||||
|
|
||||||
void hmp_usb_add(Monitor *mon, const QDict *qdict);
|
void hmp_usb_add(Monitor *mon, const QDict *qdict);
|
||||||
void hmp_usb_del(Monitor *mon, const QDict *qdict);
|
void hmp_usb_del(Monitor *mon, const QDict *qdict);
|
||||||
void usb_info(Monitor *mon, const QDict *qdict);
|
void hmp_info_usb(Monitor *mon, const QDict *qdict);
|
||||||
|
|
||||||
void add_boot_device_path(int32_t bootindex, DeviceState *dev,
|
void add_boot_device_path(int32_t bootindex, DeviceState *dev,
|
||||||
const char *suffix);
|
const char *suffix);
|
||||||
|
84
monitor.c
84
monitor.c
@ -73,7 +73,7 @@
|
|||||||
#include "qapi/qmp-event.h"
|
#include "qapi/qmp-event.h"
|
||||||
#include "qapi-event.h"
|
#include "qapi-event.h"
|
||||||
|
|
||||||
/* for pic/irq_info */
|
/* for hmp_info_irq/pic */
|
||||||
#if defined(TARGET_SPARC)
|
#if defined(TARGET_SPARC)
|
||||||
#include "hw/sparc/sun4m.h"
|
#include "hw/sparc/sun4m.h"
|
||||||
#endif
|
#endif
|
||||||
@ -1027,7 +1027,7 @@ int monitor_get_cpu_index(void)
|
|||||||
return cpu->cpu_index;
|
return cpu->cpu_index;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void do_info_registers(Monitor *mon, const QDict *qdict)
|
static void hmp_info_registers(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
CPUState *cpu;
|
CPUState *cpu;
|
||||||
CPUArchState *env;
|
CPUArchState *env;
|
||||||
@ -1036,18 +1036,18 @@ static void do_info_registers(Monitor *mon, const QDict *qdict)
|
|||||||
cpu_dump_state(cpu, (FILE *)mon, monitor_fprintf, CPU_DUMP_FPU);
|
cpu_dump_state(cpu, (FILE *)mon, monitor_fprintf, CPU_DUMP_FPU);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void do_info_jit(Monitor *mon, const QDict *qdict)
|
static void hmp_info_jit(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
dump_exec_info((FILE *)mon, monitor_fprintf);
|
dump_exec_info((FILE *)mon, monitor_fprintf);
|
||||||
dump_drift_info((FILE *)mon, monitor_fprintf);
|
dump_drift_info((FILE *)mon, monitor_fprintf);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void do_info_opcount(Monitor *mon, const QDict *qdict)
|
static void hmp_info_opcount(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
dump_opcount_info((FILE *)mon, monitor_fprintf);
|
dump_opcount_info((FILE *)mon, monitor_fprintf);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void do_info_history(Monitor *mon, const QDict *qdict)
|
static void hmp_info_history(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
const char *str;
|
const char *str;
|
||||||
@ -1064,7 +1064,7 @@ static void do_info_history(Monitor *mon, const QDict *qdict)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void do_info_cpu_stats(Monitor *mon, const QDict *qdict)
|
static void hmp_info_cpustats(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
CPUState *cpu;
|
CPUState *cpu;
|
||||||
CPUArchState *env;
|
CPUArchState *env;
|
||||||
@ -1074,7 +1074,7 @@ static void do_info_cpu_stats(Monitor *mon, const QDict *qdict)
|
|||||||
cpu_dump_statistics(cpu, (FILE *)mon, &monitor_fprintf, 0);
|
cpu_dump_statistics(cpu, (FILE *)mon, &monitor_fprintf, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void do_trace_print_events(Monitor *mon, const QDict *qdict)
|
static void hmp_info_trace_events(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
TraceEventInfoList *events = qmp_trace_event_get_state("*", NULL);
|
TraceEventInfoList *events = qmp_trace_event_get_state("*", NULL);
|
||||||
TraceEventInfoList *elem;
|
TraceEventInfoList *elem;
|
||||||
@ -1657,7 +1657,7 @@ static void tlb_info_64(Monitor *mon, CPUArchState *env)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void tlb_info(Monitor *mon, const QDict *qdict)
|
static void hmp_info_tlb(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
CPUArchState *env;
|
CPUArchState *env;
|
||||||
|
|
||||||
@ -1880,7 +1880,7 @@ static void mem_info_64(Monitor *mon, CPUArchState *env)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void mem_info(Monitor *mon, const QDict *qdict)
|
static void hmp_info_mem(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
CPUArchState *env;
|
CPUArchState *env;
|
||||||
|
|
||||||
@ -1919,7 +1919,7 @@ static void print_tlb(Monitor *mon, int idx, tlb_t *tlb)
|
|||||||
tlb->d, tlb->wt);
|
tlb->d, tlb->wt);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void tlb_info(Monitor *mon, const QDict *qdict)
|
static void hmp_info_tlb(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
CPUArchState *env = mon_get_cpu();
|
CPUArchState *env = mon_get_cpu();
|
||||||
int i;
|
int i;
|
||||||
@ -1935,7 +1935,7 @@ static void tlb_info(Monitor *mon, const QDict *qdict)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(TARGET_SPARC) || defined(TARGET_PPC) || defined(TARGET_XTENSA)
|
#if defined(TARGET_SPARC) || defined(TARGET_PPC) || defined(TARGET_XTENSA)
|
||||||
static void tlb_info(Monitor *mon, const QDict *qdict)
|
static void hmp_info_tlb(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
CPUArchState *env1 = mon_get_cpu();
|
CPUArchState *env1 = mon_get_cpu();
|
||||||
|
|
||||||
@ -1943,12 +1943,12 @@ static void tlb_info(Monitor *mon, const QDict *qdict)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void do_info_mtree(Monitor *mon, const QDict *qdict)
|
static void hmp_info_mtree(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
mtree_info((fprintf_function)monitor_printf, mon);
|
mtree_info((fprintf_function)monitor_printf, mon);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void do_info_numa(Monitor *mon, const QDict *qdict)
|
static void hmp_info_numa(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
CPUState *cpu;
|
CPUState *cpu;
|
||||||
@ -1976,7 +1976,7 @@ static void do_info_numa(Monitor *mon, const QDict *qdict)
|
|||||||
int64_t qemu_time;
|
int64_t qemu_time;
|
||||||
int64_t dev_time;
|
int64_t dev_time;
|
||||||
|
|
||||||
static void do_info_profile(Monitor *mon, const QDict *qdict)
|
static void hmp_info_profile(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
monitor_printf(mon, "async time %" PRId64 " (%0.3f)\n",
|
monitor_printf(mon, "async time %" PRId64 " (%0.3f)\n",
|
||||||
dev_time, dev_time / (double)get_ticks_per_sec());
|
dev_time, dev_time / (double)get_ticks_per_sec());
|
||||||
@ -1986,7 +1986,7 @@ static void do_info_profile(Monitor *mon, const QDict *qdict)
|
|||||||
dev_time = 0;
|
dev_time = 0;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
static void do_info_profile(Monitor *mon, const QDict *qdict)
|
static void hmp_info_profile(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
monitor_printf(mon, "Internal profiler not compiled\n");
|
monitor_printf(mon, "Internal profiler not compiled\n");
|
||||||
}
|
}
|
||||||
@ -1995,7 +1995,7 @@ static void do_info_profile(Monitor *mon, const QDict *qdict)
|
|||||||
/* Capture support */
|
/* Capture support */
|
||||||
static QLIST_HEAD (capture_list_head, CaptureState) capture_head;
|
static QLIST_HEAD (capture_list_head, CaptureState) capture_head;
|
||||||
|
|
||||||
static void do_info_capture(Monitor *mon, const QDict *qdict)
|
static void hmp_info_capture(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
CaptureState *s;
|
CaptureState *s;
|
||||||
@ -2621,7 +2621,7 @@ static mon_cmd_t info_cmds[] = {
|
|||||||
.args_type = "",
|
.args_type = "",
|
||||||
.params = "",
|
.params = "",
|
||||||
.help = "show the network state",
|
.help = "show the network state",
|
||||||
.mhandler.cmd = do_info_network,
|
.mhandler.cmd = hmp_info_network,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.name = "chardev",
|
.name = "chardev",
|
||||||
@ -2657,7 +2657,7 @@ static mon_cmd_t info_cmds[] = {
|
|||||||
.args_type = "",
|
.args_type = "",
|
||||||
.params = "",
|
.params = "",
|
||||||
.help = "show the cpu registers",
|
.help = "show the cpu registers",
|
||||||
.mhandler.cmd = do_info_registers,
|
.mhandler.cmd = hmp_info_registers,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.name = "cpus",
|
.name = "cpus",
|
||||||
@ -2671,7 +2671,7 @@ static mon_cmd_t info_cmds[] = {
|
|||||||
.args_type = "",
|
.args_type = "",
|
||||||
.params = "",
|
.params = "",
|
||||||
.help = "show the command line history",
|
.help = "show the command line history",
|
||||||
.mhandler.cmd = do_info_history,
|
.mhandler.cmd = hmp_info_history,
|
||||||
},
|
},
|
||||||
#if defined(TARGET_I386) || defined(TARGET_PPC) || defined(TARGET_MIPS) || \
|
#if defined(TARGET_I386) || defined(TARGET_PPC) || defined(TARGET_MIPS) || \
|
||||||
defined(TARGET_LM32) || (defined(TARGET_SPARC) && !defined(TARGET_SPARC64))
|
defined(TARGET_LM32) || (defined(TARGET_SPARC) && !defined(TARGET_SPARC64))
|
||||||
@ -2681,11 +2681,11 @@ static mon_cmd_t info_cmds[] = {
|
|||||||
.params = "",
|
.params = "",
|
||||||
.help = "show the interrupts statistics (if available)",
|
.help = "show the interrupts statistics (if available)",
|
||||||
#ifdef TARGET_SPARC
|
#ifdef TARGET_SPARC
|
||||||
.mhandler.cmd = sun4m_irq_info,
|
.mhandler.cmd = sun4m_hmp_info_irq,
|
||||||
#elif defined(TARGET_LM32)
|
#elif defined(TARGET_LM32)
|
||||||
.mhandler.cmd = lm32_irq_info,
|
.mhandler.cmd = lm32_hmp_info_irq,
|
||||||
#else
|
#else
|
||||||
.mhandler.cmd = irq_info,
|
.mhandler.cmd = hmp_info_irq,
|
||||||
#endif
|
#endif
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -2694,11 +2694,11 @@ static mon_cmd_t info_cmds[] = {
|
|||||||
.params = "",
|
.params = "",
|
||||||
.help = "show i8259 (PIC) state",
|
.help = "show i8259 (PIC) state",
|
||||||
#ifdef TARGET_SPARC
|
#ifdef TARGET_SPARC
|
||||||
.mhandler.cmd = sun4m_pic_info,
|
.mhandler.cmd = sun4m_hmp_info_pic,
|
||||||
#elif defined(TARGET_LM32)
|
#elif defined(TARGET_LM32)
|
||||||
.mhandler.cmd = lm32_do_pic_info,
|
.mhandler.cmd = lm32_hmp_info_pic,
|
||||||
#else
|
#else
|
||||||
.mhandler.cmd = pic_info,
|
.mhandler.cmd = hmp_info_pic,
|
||||||
#endif
|
#endif
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
@ -2716,7 +2716,7 @@ static mon_cmd_t info_cmds[] = {
|
|||||||
.args_type = "",
|
.args_type = "",
|
||||||
.params = "",
|
.params = "",
|
||||||
.help = "show virtual to physical memory mappings",
|
.help = "show virtual to physical memory mappings",
|
||||||
.mhandler.cmd = tlb_info,
|
.mhandler.cmd = hmp_info_tlb,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
#if defined(TARGET_I386)
|
#if defined(TARGET_I386)
|
||||||
@ -2725,7 +2725,7 @@ static mon_cmd_t info_cmds[] = {
|
|||||||
.args_type = "",
|
.args_type = "",
|
||||||
.params = "",
|
.params = "",
|
||||||
.help = "show the active virtual memory mappings",
|
.help = "show the active virtual memory mappings",
|
||||||
.mhandler.cmd = mem_info,
|
.mhandler.cmd = hmp_info_mem,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
@ -2733,21 +2733,21 @@ static mon_cmd_t info_cmds[] = {
|
|||||||
.args_type = "",
|
.args_type = "",
|
||||||
.params = "",
|
.params = "",
|
||||||
.help = "show memory tree",
|
.help = "show memory tree",
|
||||||
.mhandler.cmd = do_info_mtree,
|
.mhandler.cmd = hmp_info_mtree,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.name = "jit",
|
.name = "jit",
|
||||||
.args_type = "",
|
.args_type = "",
|
||||||
.params = "",
|
.params = "",
|
||||||
.help = "show dynamic compiler info",
|
.help = "show dynamic compiler info",
|
||||||
.mhandler.cmd = do_info_jit,
|
.mhandler.cmd = hmp_info_jit,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.name = "opcount",
|
.name = "opcount",
|
||||||
.args_type = "",
|
.args_type = "",
|
||||||
.params = "",
|
.params = "",
|
||||||
.help = "show dynamic compiler opcode counters",
|
.help = "show dynamic compiler opcode counters",
|
||||||
.mhandler.cmd = do_info_opcount,
|
.mhandler.cmd = hmp_info_opcount,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.name = "kvm",
|
.name = "kvm",
|
||||||
@ -2761,42 +2761,42 @@ static mon_cmd_t info_cmds[] = {
|
|||||||
.args_type = "",
|
.args_type = "",
|
||||||
.params = "",
|
.params = "",
|
||||||
.help = "show NUMA information",
|
.help = "show NUMA information",
|
||||||
.mhandler.cmd = do_info_numa,
|
.mhandler.cmd = hmp_info_numa,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.name = "usb",
|
.name = "usb",
|
||||||
.args_type = "",
|
.args_type = "",
|
||||||
.params = "",
|
.params = "",
|
||||||
.help = "show guest USB devices",
|
.help = "show guest USB devices",
|
||||||
.mhandler.cmd = usb_info,
|
.mhandler.cmd = hmp_info_usb,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.name = "usbhost",
|
.name = "usbhost",
|
||||||
.args_type = "",
|
.args_type = "",
|
||||||
.params = "",
|
.params = "",
|
||||||
.help = "show host USB devices",
|
.help = "show host USB devices",
|
||||||
.mhandler.cmd = usb_host_info,
|
.mhandler.cmd = hmp_info_usbhost,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.name = "profile",
|
.name = "profile",
|
||||||
.args_type = "",
|
.args_type = "",
|
||||||
.params = "",
|
.params = "",
|
||||||
.help = "show profiling information",
|
.help = "show profiling information",
|
||||||
.mhandler.cmd = do_info_profile,
|
.mhandler.cmd = hmp_info_profile,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.name = "capture",
|
.name = "capture",
|
||||||
.args_type = "",
|
.args_type = "",
|
||||||
.params = "",
|
.params = "",
|
||||||
.help = "show capture information",
|
.help = "show capture information",
|
||||||
.mhandler.cmd = do_info_capture,
|
.mhandler.cmd = hmp_info_capture,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.name = "snapshots",
|
.name = "snapshots",
|
||||||
.args_type = "",
|
.args_type = "",
|
||||||
.params = "",
|
.params = "",
|
||||||
.help = "show the currently saved VM snapshots",
|
.help = "show the currently saved VM snapshots",
|
||||||
.mhandler.cmd = do_info_snapshots,
|
.mhandler.cmd = hmp_info_snapshots,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.name = "status",
|
.name = "status",
|
||||||
@ -2847,7 +2847,7 @@ static mon_cmd_t info_cmds[] = {
|
|||||||
.args_type = "",
|
.args_type = "",
|
||||||
.params = "",
|
.params = "",
|
||||||
.help = "show CPU statistics",
|
.help = "show CPU statistics",
|
||||||
.mhandler.cmd = do_info_cpu_stats,
|
.mhandler.cmd = hmp_info_cpustats,
|
||||||
},
|
},
|
||||||
#if defined(CONFIG_SLIRP)
|
#if defined(CONFIG_SLIRP)
|
||||||
{
|
{
|
||||||
@ -2855,7 +2855,7 @@ static mon_cmd_t info_cmds[] = {
|
|||||||
.args_type = "",
|
.args_type = "",
|
||||||
.params = "",
|
.params = "",
|
||||||
.help = "show user network stack connection states",
|
.help = "show user network stack connection states",
|
||||||
.mhandler.cmd = do_info_usernet,
|
.mhandler.cmd = hmp_info_usernet,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
@ -2891,28 +2891,28 @@ static mon_cmd_t info_cmds[] = {
|
|||||||
.args_type = "",
|
.args_type = "",
|
||||||
.params = "",
|
.params = "",
|
||||||
.help = "show device tree",
|
.help = "show device tree",
|
||||||
.mhandler.cmd = do_info_qtree,
|
.mhandler.cmd = hmp_info_qtree,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.name = "qdm",
|
.name = "qdm",
|
||||||
.args_type = "",
|
.args_type = "",
|
||||||
.params = "",
|
.params = "",
|
||||||
.help = "show qdev device model list",
|
.help = "show qdev device model list",
|
||||||
.mhandler.cmd = do_info_qdm,
|
.mhandler.cmd = hmp_info_qdm,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.name = "roms",
|
.name = "roms",
|
||||||
.args_type = "",
|
.args_type = "",
|
||||||
.params = "",
|
.params = "",
|
||||||
.help = "show roms",
|
.help = "show roms",
|
||||||
.mhandler.cmd = do_info_roms,
|
.mhandler.cmd = hmp_info_roms,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.name = "trace-events",
|
.name = "trace-events",
|
||||||
.args_type = "",
|
.args_type = "",
|
||||||
.params = "",
|
.params = "",
|
||||||
.help = "show available trace-events & their state",
|
.help = "show available trace-events & their state",
|
||||||
.mhandler.cmd = do_trace_print_events,
|
.mhandler.cmd = hmp_info_trace_events,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.name = "tpm",
|
.name = "tpm",
|
||||||
|
@ -1117,7 +1117,7 @@ RxFilterInfoList *qmp_query_rx_filter(bool has_name, const char *name,
|
|||||||
return filter_list;
|
return filter_list;
|
||||||
}
|
}
|
||||||
|
|
||||||
void do_info_network(Monitor *mon, const QDict *qdict)
|
void hmp_info_network(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
NetClientState *nc, *peer;
|
NetClientState *nc, *peer;
|
||||||
NetClientOptionsKind type;
|
NetClientOptionsKind type;
|
||||||
|
@ -681,7 +681,7 @@ static int slirp_guestfwd(SlirpState *s, const char *config_str,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void do_info_usernet(Monitor *mon, const QDict *qdict)
|
void hmp_info_usernet(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
SlirpState *s;
|
SlirpState *s;
|
||||||
|
|
||||||
|
@ -667,13 +667,13 @@ static void qbus_print(Monitor *mon, BusState *bus, int indent)
|
|||||||
}
|
}
|
||||||
#undef qdev_printf
|
#undef qdev_printf
|
||||||
|
|
||||||
void do_info_qtree(Monitor *mon, const QDict *qdict)
|
void hmp_info_qtree(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
if (sysbus_get_default())
|
if (sysbus_get_default())
|
||||||
qbus_print(mon, sysbus_get_default(), 0);
|
qbus_print(mon, sysbus_get_default(), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void do_info_qdm(Monitor *mon, const QDict *qdict)
|
void hmp_info_qdm(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
qdev_print_devinfos(true);
|
qdev_print_devinfos(true);
|
||||||
}
|
}
|
||||||
|
2
savevm.c
2
savevm.c
@ -1323,7 +1323,7 @@ void hmp_delvm(Monitor *mon, const QDict *qdict)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void do_info_snapshots(Monitor *mon, const QDict *qdict)
|
void hmp_info_snapshots(Monitor *mon, const QDict *qdict)
|
||||||
{
|
{
|
||||||
BlockDriverState *bs, *bs1;
|
BlockDriverState *bs, *bs1;
|
||||||
QEMUSnapshotInfo *sn_tab, *sn, s, *sn_info = &s;
|
QEMUSnapshotInfo *sn_tab, *sn, s, *sn_info = &s;
|
||||||
|
Loading…
Reference in New Issue
Block a user