Revision d7f9b689 monitor.c

b/monitor.c
1813 1813

  
1814 1814
/* Please update qemu-monitor.hx when adding or changing commands */
1815 1815
static const mon_cmd_t info_cmds[] = {
1816
    { "version", "", do_info_version,
1817
      "", "show the version of QEMU" },
1818
    { "network", "", do_info_network,
1819
      "", "show the network state" },
1820
    { "chardev", "", qemu_chr_info,
1821
      "", "show the character devices" },
1822
    { "block", "", bdrv_info,
1823
      "", "show the block devices" },
1824
    { "blockstats", "", bdrv_info_stats,
1825
      "", "show block device statistics" },
1826
    { "registers", "", do_info_registers,
1827
      "", "show the cpu registers" },
1828
    { "cpus", "", do_info_cpus,
1829
      "", "show infos for each CPU" },
1830
    { "history", "", do_info_history,
1831
      "", "show the command line history", },
1832
    { "irq", "", irq_info,
1833
      "", "show the interrupts statistics (if available)", },
1834
    { "pic", "", pic_info,
1835
      "", "show i8259 (PIC) state", },
1836
    { "pci", "", pci_info,
1837
      "", "show PCI info", },
1816
    {
1817
        .name       = "version",
1818
        .args_type  = "",
1819
        .handler    = do_info_version,
1820
        .params     = "",
1821
        .help       = "show the version of QEMU",
1822
    },
1823
    {
1824
        .name       = "network",
1825
        .args_type  = "",
1826
        .handler    = do_info_network,
1827
        .params     = "",
1828
        .help       = "show the network state",
1829
    },
1830
    {
1831
        .name       = "chardev",
1832
        .args_type  = "",
1833
        .handler    = qemu_chr_info,
1834
        .params     = "",
1835
        .help       = "show the character devices",
1836
    },
1837
    {
1838
        .name       = "block",
1839
        .args_type  = "",
1840
        .handler    = bdrv_info,
1841
        .params     = "",
1842
        .help       = "show the block devices",
1843
    },
1844
    {
1845
        .name       = "blockstats",
1846
        .args_type  = "",
1847
        .handler    = bdrv_info_stats,
1848
        .params     = "",
1849
        .help       = "show block device statistics",
1850
    },
1851
    {
1852
        .name       = "registers",
1853
        .args_type  = "",
1854
        .handler    = do_info_registers,
1855
        .params     = "",
1856
        .help       = "show the cpu registers",
1857
    },
1858
    {
1859
        .name       = "cpus",
1860
        .args_type  = "",
1861
        .handler    = do_info_cpus,
1862
        .params     = "",
1863
        .help       = "show infos for each CPU",
1864
    },
1865
    {
1866
        .name       = "history",
1867
        .args_type  = "",
1868
        .handler    = do_info_history,
1869
        .params     = "",
1870
        .help       = "show the command line history",
1871
    },
1872
    {
1873
        .name       = "irq",
1874
        .args_type  = "",
1875
        .handler    = irq_info,
1876
        .params     = "",
1877
        .help       = "show the interrupts statistics (if available)",
1878
    },
1879
    {
1880
        .name       = "pic",
1881
        .args_type  = "",
1882
        .handler    = pic_info,
1883
        .params     = "",
1884
        .help       = "show i8259 (PIC) state",
1885
    },
1886
    {
1887
        .name       = "pci",
1888
        .args_type  = "",
1889
        .handler    = pci_info,
1890
        .params     = "",
1891
        .help       = "show PCI info",
1892
    },
1838 1893
#if defined(TARGET_I386) || defined(TARGET_SH4)
1839
    { "tlb", "", tlb_info,
1840
      "", "show virtual to physical memory mappings", },
1894
    {
1895
        .name       = "tlb",
1896
        .args_type  = "",
1897
        .handler    = tlb_info,
1898
        .params     = "",
1899
        .help       = "show virtual to physical memory mappings",
1900
    },
1841 1901
#endif
1842 1902
#if defined(TARGET_I386)
1843
    { "mem", "", mem_info,
1844
      "", "show the active virtual memory mappings", },
1845
    { "hpet", "", do_info_hpet,
1846
      "", "show state of HPET", },
1903
    {
1904
        .name       = "mem",
1905
        .args_type  = "",
1906
        .handler    = mem_info,
1907
        .params     = "",
1908
        .help       = "show the active virtual memory mappings",
1909
    },
1910
    {
1911
        .name       = "hpet",
1912
        .args_type  = "",
1913
        .handler    = do_info_hpet,
1914
        .params     = "",
1915
        .help       = "show state of HPET",
1916
    },
1847 1917
#endif
1848
    { "jit", "", do_info_jit,
1849
      "", "show dynamic compiler info", },
1850
    { "kvm", "", do_info_kvm,
1851
      "", "show KVM information", },
1852
    { "numa", "", do_info_numa,
1853
      "", "show NUMA information", },
1854
    { "usb", "", usb_info,
1855
      "", "show guest USB devices", },
1856
    { "usbhost", "", usb_host_info,
1857
      "", "show host USB devices", },
1858
    { "profile", "", do_info_profile,
1859
      "", "show profiling information", },
1860
    { "capture", "", do_info_capture,
1861
      "", "show capture information" },
1862
    { "snapshots", "", do_info_snapshots,
1863
      "", "show the currently saved VM snapshots" },
1864
    { "status", "", do_info_status,
1865
      "", "show the current VM status (running|paused)" },
1866
    { "pcmcia", "", pcmcia_info,
1867
      "", "show guest PCMCIA status" },
1868
    { "mice", "", do_info_mice,
1869
      "", "show which guest mouse is receiving events" },
1870
    { "vnc", "", do_info_vnc,
1871
      "", "show the vnc server status"},
1872
    { "name", "", do_info_name,
1873
      "", "show the current VM name" },
1874
    { "uuid", "", do_info_uuid,
1875
      "", "show the current VM UUID" },
1918
    {
1919
        .name       = "jit",
1920
        .args_type  = "",
1921
        .handler    = do_info_jit,
1922
        .params     = "",
1923
        .help       = "show dynamic compiler info",
1924
    },
1925
    {
1926
        .name       = "kvm",
1927
        .args_type  = "",
1928
        .handler    = do_info_kvm,
1929
        .params     = "",
1930
        .help       = "show KVM information",
1931
    },
1932
    {
1933
        .name       = "numa",
1934
        .args_type  = "",
1935
        .handler    = do_info_numa,
1936
        .params     = "",
1937
        .help       = "show NUMA information",
1938
    },
1939
    {
1940
        .name       = "usb",
1941
        .args_type  = "",
1942
        .handler    = usb_info,
1943
        .params     = "",
1944
        .help       = "show guest USB devices",
1945
    },
1946
    {
1947
        .name       = "usbhost",
1948
        .args_type  = "",
1949
        .handler    = usb_host_info,
1950
        .params     = "",
1951
        .help       = "show host USB devices",
1952
    },
1953
    {
1954
        .name       = "profile",
1955
        .args_type  = "",
1956
        .handler    = do_info_profile,
1957
        .params     = "",
1958
        .help       = "show profiling information",
1959
    },
1960
    {
1961
        .name       = "capture",
1962
        .args_type  = "",
1963
        .handler    = do_info_capture,
1964
        .params     = "",
1965
        .help       = "show capture information",
1966
    },
1967
    {
1968
        .name       = "snapshots",
1969
        .args_type  = "",
1970
        .handler    = do_info_snapshots,
1971
        .params     = "",
1972
        .help       = "show the currently saved VM snapshots",
1973
    },
1974
    {
1975
        .name       = "status",
1976
        .args_type  = "",
1977
        .handler    = do_info_status,
1978
        .params     = "",
1979
        .help       = "show the current VM status (running|paused)",
1980
    },
1981
    {
1982
        .name       = "pcmcia",
1983
        .args_type  = "",
1984
        .handler    = pcmcia_info,
1985
        .params     = "",
1986
        .help       = "show guest PCMCIA status",
1987
    },
1988
    {
1989
        .name       = "mice",
1990
        .args_type  = "",
1991
        .handler    = do_info_mice,
1992
        .params     = "",
1993
        .help       = "show which guest mouse is receiving events",
1994
    },
1995
    {
1996
        .name       = "vnc",
1997
        .args_type  = "",
1998
        .handler    = do_info_vnc,
1999
        .params     = "",
2000
        .help       = "show the vnc server status",
2001
    },
2002
    {
2003
        .name       = "name",
2004
        .args_type  = "",
2005
        .handler    = do_info_name,
2006
        .params     = "",
2007
        .help       = "show the current VM name",
2008
    },
2009
    {
2010
        .name       = "uuid",
2011
        .args_type  = "",
2012
        .handler    = do_info_uuid,
2013
        .params     = "",
2014
        .help       = "show the current VM UUID",
2015
    },
1876 2016
#if defined(TARGET_PPC)
1877
    { "cpustats", "", do_info_cpu_stats,
1878
      "", "show CPU statistics", },
2017
    {
2018
        .name       = "cpustats",
2019
        .args_type  = "",
2020
        .handler    = do_info_cpu_stats,
2021
        .params     = "",
2022
        .help       = "show CPU statistics",
2023
    },
1879 2024
#endif
1880 2025
#if defined(CONFIG_SLIRP)
1881
    { "usernet", "", do_info_usernet,
1882
      "", "show user network stack connection states", },
2026
    {
2027
        .name       = "usernet",
2028
        .args_type  = "",
2029
        .handler    = do_info_usernet,
2030
        .params     = "",
2031
        .help       = "show user network stack connection states",
2032
    },
1883 2033
#endif
1884
    { "migrate", "", do_info_migrate, "", "show migration status" },
1885
    { "balloon", "", do_info_balloon,
1886
      "", "show balloon information" },
1887
    { "qtree", "", do_info_qtree,
1888
      "", "show device tree" },
1889
    { "qdm", "", do_info_qdm,
1890
      "", "show qdev device model list" },
1891
    { "roms", "", do_info_roms,
1892
      "", "show roms" },
1893
    { NULL, NULL, },
2034
    {
2035
        .name       = "migrate",
2036
        .args_type  = "",
2037
        .handler    = do_info_migrate,
2038
        .params     = "",
2039
        .help       = "show migration status",
2040
    },
2041
    {
2042
        .name       = "balloon",
2043
        .args_type  = "",
2044
        .handler    = do_info_balloon,
2045
        .params     = "",
2046
        .help       = "show balloon information",
2047
    },
2048
    {
2049
        .name       = "qtree",
2050
        .args_type  = "",
2051
        .handler    = do_info_qtree,
2052
        .params     = "",
2053
        .help       = "show device tree",
2054
    },
2055
    {
2056
        .name       = "qdm",
2057
        .args_type  = "",
2058
        .handler    = do_info_qdm,
2059
        .params     = "",
2060
        .help       = "show qdev device model list",
2061
    },
2062
    {
2063
        .name       = "roms",
2064
        .args_type  = "",
2065
        .handler    = do_info_roms,
2066
        .params     = "",
2067
        .help       = "show roms",
2068
    },
2069
    {
2070
        .name       = NULL,
2071
    },
1894 2072
};
1895 2073

  
1896 2074
/*******************************************************************/

Also available in: Unified diff