You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/qga
Daniel P. Berrangé 5288d9d085 qga: implement a 'guest-get-load' command
Provide a way to report the process load average, via a new
'guest-get-load' command.

This is only implemented for POSIX platforms providing 'getloadavg'.

Example illustrated with qmp-shell:

(QEMU) guest-get-load
{
    "return": {
        "load15m": 1.546875,
        "load1m": 1.669921875,
        "load5m": 1.9306640625
    }
}

Windows has no native equivalent API, but it would be possible to
simulate it as illustrated here (BSD-3-Clause):

  https://github.com/giampaolo/psutil/pull/1485

This is left as an exercise for future contributors.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Message-ID: <20241202121927.864335-1-berrange@redhat.com>
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
2 weeks ago
..
installer qga/win/installer: add VssOption to installer 2 years ago
vss-win32 qga: fix missing static and prototypes windows warnings 3 months ago
channel-posix.c qga/: spelling fixes 1 year ago
channel-win32.c qga: Add spaces around operator 4 years ago
channel.h qga: add systemd socket activation support 8 years ago
commands-bsd.c error: Drop superfluous #include "qapi/qmp/qerror.h" 3 months ago
commands-common-ssh.c qga: Refactor common SSH functions 9 months ago
commands-common-ssh.h qga: Refactor common SSH functions 9 months ago
commands-common.h qga: move CONFIG_FSFREEZE/TRIM to be meson defined options 6 months ago
commands-linux.c qga: skip bind mounts in fs list 1 month ago
commands-posix-ssh.c Remove glib compatibility code that is not required anymore 8 months ago
commands-posix.c qga: implement a 'guest-get-load' command 2 weeks ago
commands-win32.c qemu-ga-win: Fix a typo error 1 month ago
commands-windows-ssh.c qga: fix -Wsometimes-uninitialized windows warning 3 months ago
commands-windows-ssh.h qga: Implement SSH commands for Windows 9 months ago
commands.c qga: Shorten several error messages 8 months ago
cutils.c qga: Clean up includes 2 years ago
cutils.h qga: Clean up includes 2 years ago
guest-agent-command-state.c qga: use local path for local headers 7 years ago
guest-agent-core.h qga: Replace 'blacklist' and 'whitelist' in the guest agent sources 2 years ago
main.c qga: Don't access global variable in run_agent_once() 1 month ago
meson.build qga: Implement SSH commands for Windows 9 months ago
messages-win32.mc qga-win: add logging to Windows event log 2 years ago
qapi-schema.json qga: implement a 'guest-get-load' command 2 weeks ago
service-win32.c qga: Remove unnecessary glib.h includes 9 years ago
service-win32.h qga-win: changing --retry-path option behavior 6 years ago
vss-win32.c qga-win: add support for qmp_guest_fsfreeze_freeze_list 6 years ago
vss-win32.h qga-win: add support for qmp_guest_fsfreeze_freeze_list 6 years ago