/openbmc/qemu/hw/virtio/ |
H A D | virtio-hmp-cmds.c | 11 #include "qapi/qapi-commands-virtio.h" 15 static void hmp_virtio_dump_protocols(Monitor *mon, in hmp_virtio_dump_protocols() argument 18 strList *pcol_list = pcol->protocols; in hmp_virtio_dump_protocols() 20 monitor_printf(mon, "\t%s", pcol_list->value); in hmp_virtio_dump_protocols() 21 pcol_list = pcol_list->next; in hmp_virtio_dump_protocols() 23 monitor_printf(mon, ",\n"); in hmp_virtio_dump_protocols() 26 monitor_printf(mon, "\n"); in hmp_virtio_dump_protocols() 27 if (pcol->has_unknown_protocols) { in hmp_virtio_dump_protocols() 28 monitor_printf(mon, " unknown-protocols(0x%016"PRIx64")\n", in hmp_virtio_dump_protocols() 29 pcol->unknown_protocols); in hmp_virtio_dump_protocols() [all …]
|
/openbmc/qemu/hw/net/rocker/ |
H A D | rocker-hmp-cmds.c | 10 * the COPYING file in the top-level directory. 12 * Contributions after 2012-01-13 are licensed under the terms of the 20 #include "qapi/qapi-commands-rocker.h" 23 void hmp_rocker(Monitor *mon, const QDict *qdict) in hmp_rocker() argument 30 if (hmp_handle_error(mon, err)) { in hmp_rocker() 34 monitor_printf(mon, "name: %s\n", rocker->name); in hmp_rocker() 35 monitor_printf(mon, "id: 0x%" PRIx64 "\n", rocker->id); in hmp_rocker() 36 monitor_printf(mon, "ports: %d\n", rocker->ports); in hmp_rocker() 41 void hmp_rocker_ports(Monitor *mon, const QDict *qdict) in hmp_rocker_ports() argument 48 if (hmp_handle_error(mon, err)) { in hmp_rocker_ports() [all …]
|
/openbmc/qemu/monitor/ |
H A D | hmp.c | 4 * Copyright (c) 2003-2004 Fabrice Bellard 27 #include "hw/qdev-core.h" 28 #include "monitor-internal.h" 32 #include "qemu/config-file.h" 38 #include "sysemu/block-backend.h" 44 MonitorHMP *mon = opaque; in monitor_command_cb() local 46 monitor_suspend(&mon->common); in monitor_command_cb() 47 handle_hmp_command(mon, cmdline); in monitor_command_cb() 48 monitor_resume(&mon->common); in monitor_command_cb() 51 void monitor_read_command(MonitorHMP *mon, int show_prompt) in monitor_read_command() argument [all …]
|
H A D | hmp-cmds.c | 10 * the COPYING file in the top-level directory. 12 * Contributions after 2012-01-13 are licensed under the terms of the 17 #include "exec/address-spaces.h" 23 #include "monitor/monitor-internal.h" 25 #include "qapi/qapi-commands-control.h" 26 #include "qapi/qapi-commands-machine.h" 27 #include "qapi/qapi-commands-misc.h" 33 bool hmp_handle_error(Monitor *mon, Error *err) in hmp_handle_error() argument 48 char **split = g_strsplit(str ?: "", ",", -1); in hmp_split_at_comma() 53 for (i = 0; split[i]; i++) { in hmp_split_at_comma() [all …]
|
H A D | hmp-cmds-target.c | 2 * Miscellaneous target-dependent HMP commands 4 * Copyright (c) 2003-2004 Fabrice Bellard 27 #include "exec/address-spaces.h" 29 #include "monitor/hmp-target.h" 30 #include "monitor/monitor-internal.h" 36 int monitor_set_cpu(Monitor *mon, int cpu_index) in monitor_set_cpu() argument 42 return -1; in monitor_set_cpu() 44 g_free(mon->mon_cpu_path); in monitor_set_cpu() 45 mon->mon_cpu_path = object_get_canonical_path(OBJECT(cpu)); in monitor_set_cpu() 46 return 0; in monitor_set_cpu() [all …]
|
H A D | monitor.c | 4 * Copyright (c) 2003-2004 Fabrice Bellard 26 #include "monitor-internal.h" 28 #include "qapi/opts-visitor.h" 29 #include "qapi/qapi-emit-events.h" 30 #include "qapi/qapi-visit-control.h" 32 #include "qemu/error-report.h" 39 * throttling is calculated globally, rather than per-Monitor 78 Monitor *mon; in monitor_cur() local 81 mon = g_hash_table_lookup(coroutine_mon, qemu_coroutine_self()); in monitor_cur() 84 return mon; in monitor_cur() [all …]
|
H A D | qmp.c | 4 * Copyright (c) 2003-2004 Fabrice Bellard 27 #include "chardev/char-io.h" 28 #include "monitor-internal.h" 30 #include "qapi/qapi-commands-control.h" 45 * be pushed onto mon->qmp_requests, and @qmp_dispatcher_co_shutdown may 62 MonitorQMP *mon; member 65 * (exactly one of them is non-null) 74 static bool qmp_oob_enabled(MonitorQMP *mon) in qmp_oob_enabled() argument 76 return mon->capab[QMP_CAPABILITY_OOB]; in qmp_oob_enabled() 79 static void monitor_qmp_caps_reset(MonitorQMP *mon) in monitor_qmp_caps_reset() argument [all …]
|
/openbmc/linux/net/tipc/ |
H A D | monitor.c | 73 * @down_cnt: - numbers of other peers which have reported this on lost 102 return tipc_net(net)->monitors[bearer_id]; in tipc_monitor() 148 int i = 0; in dom_size() 168 return list_last_entry(&peer->list, struct tipc_peer, list); in peer_prev() 173 return list_first_entry(&peer->list, struct tipc_peer, list); in peer_nxt() 178 while (!peer->is_head) in peer_head() 183 static struct tipc_peer *get_peer(struct tipc_monitor *mon, u32 addr) in get_peer() argument 188 hlist_for_each_entry(peer, &mon->peers[thash], hash) { in get_peer() 189 if (peer->addr == addr) in get_peer() 197 struct tipc_monitor *mon = tipc_monitor(net, bearer_id); in get_self() local [all …]
|
/openbmc/qemu/util/ |
H A D | filemonitor-inotify.c | 23 #include "qemu/main-loop.h" 24 #include "qemu/error-report.h" 56 QFileMonitor *mon = arg; in qemu_file_monitor_watch() local 59 int used = 0; in qemu_file_monitor_watch() 62 qemu_mutex_lock(&mon->lock); in qemu_file_monitor_watch() 64 if (mon->fd == -1) { in qemu_file_monitor_watch() 65 qemu_mutex_unlock(&mon->lock); in qemu_file_monitor_watch() 69 len = read(mon->fd, buf, sizeof(buf)); in qemu_file_monitor_watch() 71 if (len < 0) { in qemu_file_monitor_watch() 95 assert(len - used >= sizeof(struct inotify_event)); in qemu_file_monitor_watch() [all …]
|
/openbmc/qemu/hw/core/ |
H A D | machine-hmp-cmds.c | 10 * the COPYING file in the top-level directory. 12 * Contributions after 2012-01-13 are licensed under the terms of the 20 #include "qapi/qapi-builtin-visit.h" 21 #include "qapi/qapi-commands-machine.h" 23 #include "qapi/string-output-visitor.h" 24 #include "qemu/error-report.h" 28 void hmp_info_cpus(Monitor *mon, const QDict *qdict) in hmp_info_cpus() argument 34 for (cpu = cpu_list; cpu; cpu = cpu->next) { in hmp_info_cpus() 37 if (cpu->value->cpu_index == monitor_get_cpu_index(mon)) { in hmp_info_cpus() 41 monitor_printf(mon, "%c CPU #%" PRId64 ":", active, in hmp_info_cpus() [all …]
|
/openbmc/qemu/target/i386/ |
H A D | monitor.c | 4 * Copyright (c) 2003-2004 Fabrice Bellard 28 #include "monitor/hmp-target.h" 32 #include "qapi/qapi-commands-misc-target.h" 33 #include "qapi/qapi-commands-misc.h" 39 if (env->cr[4] & CR4_LA57_MASK) { in addr_canonical() 41 addr |= (hwaddr)-(1LL << 57); in addr_canonical() 45 addr |= (hwaddr)-(1LL << 48); in addr_canonical() 52 static void print_pte(Monitor *mon, CPUArchState *env, hwaddr addr, in print_pte() argument 57 monitor_printf(mon, HWADDR_FMT_plx ": " HWADDR_FMT_plx in print_pte() 61 pte & PG_NX_MASK ? 'X' : '-', in print_pte() [all …]
|
/openbmc/qemu/hw/pci/ |
H A D | pci-hmp-cmds.c | 10 * the COPYING file in the top-level directory. 12 * Contributions after 2012-01-13 are licensed under the terms of the 21 #include "pci-internal.h" 24 #include "qapi/qapi-commands-pci.h" 27 static void hmp_info_pci_device(Monitor *mon, const PciDeviceInfo *dev) in hmp_info_pci_device() argument 31 monitor_printf(mon, " Bus %2" PRId64 ", ", dev->bus); in hmp_info_pci_device() 32 monitor_printf(mon, "device %3" PRId64 ", function %" PRId64 ":\n", in hmp_info_pci_device() 33 dev->slot, dev->function); in hmp_info_pci_device() 34 monitor_printf(mon, " "); in hmp_info_pci_device() 36 if (dev->class_info->desc) { in hmp_info_pci_device() [all …]
|
/openbmc/qemu/ui/ |
H A D | ui-hmp-cmds.c | 10 * the COPYING file in the top-level directory. 12 * Contributions after 2012-01-13 are licensed under the terms of the 21 #include "monitor/monitor-internal.h" 23 #include "qapi/qapi-commands-ui.h" 31 void hmp_mouse_move(Monitor *mon, const QDict *qdict) in hmp_mouse_move() argument 38 dx = strtol(dx_str, NULL, 0); in hmp_mouse_move() 39 dy = strtol(dy_str, NULL, 0); in hmp_mouse_move() 44 dz = strtol(dz_str, NULL, 0); in hmp_mouse_move() 45 if (dz != 0) { in hmp_mouse_move() 46 button = (dz > 0) ? INPUT_BUTTON_WHEEL_UP : INPUT_BUTTON_WHEEL_DOWN; in hmp_mouse_move() [all …]
|
/openbmc/qemu/migration/ |
H A D | migration-hmp-cmds.c | 10 * the COPYING file in the top-level directory. 12 * Contributions after 2012-01-13 are licensed under the terms of the 22 #include "qapi/qapi-commands-migration.h" 23 #include "qapi/qapi-visit-migration.h" 25 #include "qapi/string-input-visitor.h" 26 #include "qapi/string-output-visitor.h" 28 #include "qemu/error-report.h" 31 #include "ui/qemu-spice.h" 36 static void migration_global_dump(Monitor *mon) in migration_global_dump() argument 40 monitor_printf(mon, "globals:\n"); in migration_global_dump() [all …]
|
/openbmc/linux/tools/power/cpupower/utils/idle_monitor/ |
H A D | cpupower-monitor.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 #include "idle_monitor/cpupower-monitor.h" 27 0 56 if ((end.tv_nsec - start.tv_nsec) < 0) { in timespec_diff_us() 57 temp.tv_sec = end.tv_sec - start.tv_sec - 1; in timespec_diff_us() 58 temp.tv_nsec = 1000000000 + end.tv_nsec - start.tv_nsec; in timespec_diff_us() 60 temp.tv_sec = end.tv_sec - start.tv_sec; in timespec_diff_us() 61 temp.tv_nsec = end.tv_nsec - start.tv_nsec; in timespec_diff_us() 69 for (x = 0; x < n; x++) in print_n_spaces() 82 return -1; in fill_string_with_spaces() [all …]
|
/openbmc/qemu/block/monitor/ |
H A D | block-hmp-cmds.c | 7 * Copyright (c) 2003-2008 Fabrice Bellard 10 * See the COPYING file in the top-level directory. 11 * Contributions after 2012-01-13 are licensed under the terms of the 17 * Copyright (c) 2003-2008 Fabrice Bellard 40 #include "sysemu/block-backend.h" 42 #include "qapi/qapi-commands-block.h" 43 #include "qapi/qapi-commands-block-export.h" 47 #include "qemu/config-file.h" 51 #include "qemu/error-report.h" 58 #include "block/block-hmp-cmds.h" [all …]
|
/openbmc/qemu/target/riscv/ |
H A D | monitor.c | 2 * QEMU monitor for RISC-V 6 * RISC-V specific monitor commands implementation 25 #include "monitor/hmp-target.h" 30 #define PTE_HEADER_DELIMITER "---------------- ---------------- "\ 31 "---------------- -------\n" 34 #define PTE_HEADER_DELIMITER "-------- ---------------- -------- -------\n" 41 if (addr & (1UL << (va_bits - 1))) { in addr_canonical() 42 addr |= (hwaddr)-(1L << va_bits); in addr_canonical() 49 static void print_pte_header(Monitor *mon) in print_pte_header() argument 51 monitor_printf(mon, PTE_HEADER_FIELDS); in print_pte_header() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/crypto/ |
H A D | fsl,sec-v4.0-mon.yaml | 1 # SPDX-License-Identifier: GPL-2.0 2 # Copyright (C) 2008-2011 Freescale Semiconductor Inc. 4 --- 5 $id: http://devicetree.org/schemas/crypto/fsl,sec-v4.0-mon.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Freescale Secure Non-Volatile Storage (SNVS) 11 - '"Horia Geantă" <horia.geanta@nxp.com>' 12 - Pankaj Gupta <pankaj.gupta@nxp.com> 13 - Gaurav Jain <gaurav.jain@nxp.com> 23 - items: [all …]
|
/openbmc/qemu/include/monitor/ |
H A D | monitor.h | 5 #include "qapi/qapi-types-misc.h" 17 Monitor *monitor_set_cur(Coroutine *co, Monitor *mon); 28 int monitor_suspend(Monitor *mon); 29 void monitor_resume(Monitor *mon); 31 int monitor_get_fd(Monitor *mon, const char *fdname, Error **errp); 32 int monitor_fd_param(Monitor *mon, const char *fdname, Error **errp); 34 int monitor_puts(Monitor *mon, const char *str); 35 int monitor_vprintf(Monitor *mon, const char *fmt, va_list ap) 36 G_GNUC_PRINTF(2, 0); 37 int monitor_printf(Monitor *mon, const char *fmt, ...) G_GNUC_PRINTF(2, 3); [all …]
|
H A D | hmp-target.h | 4 * Copyright (c) 2003-2004 Fabrice Bellard 35 target_long (*get_value)(Monitor *mon, const struct MonitorDef *md, 41 #define MD_TLONG 0 47 CPUArchState *mon_get_cpu_env(Monitor *mon); 48 CPUState *mon_get_cpu(Monitor *mon); 50 void hmp_info_mem(Monitor *mon, const QDict *qdict); 51 void hmp_info_tlb(Monitor *mon, const QDict *qdict); 52 void hmp_mce(Monitor *mon, const QDict *qdict); 53 void hmp_info_local_apic(Monitor *mon, const QDict *qdict); 54 void hmp_info_sev(Monitor *mon, const QDict *qdict); [all …]
|
/openbmc/qemu/chardev/ |
H A D | char-hmp-cmds.c | 10 * the COPYING file in the top-level directory. 12 * Contributions after 2012-01-13 are licensed under the terms of the 21 #include "qapi/qapi-commands-char.h" 23 #include "qemu/config-file.h" 26 void hmp_info_chardev(Monitor *mon, const QDict *qdict) in hmp_info_chardev() argument 31 for (info = char_info; info; info = info->next) { in hmp_info_chardev() 32 monitor_printf(mon, "%s: filename=%s\n", info->value->label, in hmp_info_chardev() 33 info->value->filename); in hmp_info_chardev() 39 void hmp_ringbuf_write(Monitor *mon, const QDict *qdict) in hmp_ringbuf_write() argument 45 qmp_ringbuf_write(chardev, data, false, 0, &err); in hmp_ringbuf_write() [all …]
|
/openbmc/qemu/qom/ |
H A D | qom-hmp-cmds.c | 5 * later. See the COPYING file in the top-level directory. 9 #include "hw/qdev-core.h" 13 #include "qapi/qapi-commands-qom.h" 20 void hmp_qom_list(Monitor *mon, const QDict *qdict) in hmp_qom_list() argument 27 monitor_printf(mon, "/\n"); in hmp_qom_list() 35 ObjectPropertyInfo *value = list->value; in hmp_qom_list() 37 monitor_printf(mon, "%s (%s)\n", in hmp_qom_list() 38 value->name, value->type); in hmp_qom_list() 39 list = list->next; in hmp_qom_list() 43 hmp_handle_error(mon, err); in hmp_qom_list() [all …]
|
/openbmc/qemu/stats/ |
H A D | stats-hmp-cmds.c | 9 #include "qapi/qapi-commands-stats.h" 17 static void print_stats_schema_value(Monitor *mon, StatsSchemaValue *value) in print_stats_schema_value() argument 20 monitor_printf(mon, " %s (%s%s", value->name, StatsType_str(value->type), in print_stats_schema_value() 21 value->has_unit || value->exponent ? ", " : ""); in print_stats_schema_value() 23 if (value->has_unit) { in print_stats_schema_value() 24 if (value->unit == STATS_UNIT_SECONDS) { in print_stats_schema_value() 26 } else if (value->unit == STATS_UNIT_BYTES) { in print_stats_schema_value() 31 if (unit && value->base == 10 && in print_stats_schema_value() 32 value->exponent >= -18 && value->exponent <= 18 && in print_stats_schema_value() 33 value->exponent % 3 == 0) { in print_stats_schema_value() [all …]
|
/openbmc/qemu/target/ppc/ |
H A D | ppc-qmp-cmds.c | 4 * Copyright (c) 2003-2004 Fabrice Bellard 29 #include "monitor/hmp-target.h" 31 #include "qapi/qapi-commands-machine-target.h" 32 #include "cpu-models.h" 33 #include "cpu-qom.h" 35 static target_long monitor_get_ccr(Monitor *mon, const struct MonitorDef *md, in monitor_get_ccr() argument 38 CPUArchState *env = mon_get_cpu_env(mon); in monitor_get_ccr() 46 static target_long monitor_get_xer(Monitor *mon, const struct MonitorDef *md, in monitor_get_xer() argument 49 CPUArchState *env = mon_get_cpu_env(mon); in monitor_get_xer() 53 static target_long monitor_get_decr(Monitor *mon, const struct MonitorDef *md, in monitor_get_decr() argument [all …]
|
/openbmc/qemu/net/ |
H A D | net-hmp-cmds.c | 10 * the COPYING file in the top-level directory. 12 * Contributions after 2012-01-13 are licensed under the terms of the 22 #include "qapi/clone-visitor.h" 23 #include "qapi/qapi-commands-net.h" 24 #include "qapi/qapi-visit-net.h" 26 #include "qemu/config-file.h" 30 void hmp_info_network(Monitor *mon, const QDict *qdict) in hmp_info_network() argument 35 net_hub_info(mon); in hmp_info_network() 38 peer = nc->peer; in hmp_info_network() 39 type = nc->info->type; in hmp_info_network() [all …]
|