qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/1] qga: add command 'guest-get-cpustats'
@ 2022-07-04  2:36 zhenwei pi
  2022-07-04  2:36 ` [PATCH v2 1/1] " zhenwei pi
  0 siblings, 1 reply; 9+ messages in thread
From: zhenwei pi @ 2022-07-04  2:36 UTC (permalink / raw)
  To: michael.roth, kkostiuk; +Cc: qemu-devel, marcandre.lureau, zhenwei pi

v1 -> v2:
- Konstantin & Marc-André pointed out that the structure 'GuestCpuStats'
  is too *linux style*, so re-define it to 'GuestLinuxCpuStats', and use
  an union type of 'GuestCpuStats'.

- Modify comment info from 'man proc', also add linux version infomation.

- Test sscanf return value by '(i == EOF)' (To Marc-André: name is declared
  as 'char name[64];', so we can't test '!name').

- Suggested by Marc-André, use 'int clk_tck = sysconf(_SC_CLK_TCK);'
  instead of hard code.

v1:
- Implement guest agent command 'guest-get-cpustats'

Zhenwei Pi (1):
  qga: add command 'guest-get-cpustats'

 qga/commands-posix.c | 89 ++++++++++++++++++++++++++++++++++++++++++++
 qga/commands-win32.c |  6 +++
 qga/qapi-schema.json | 81 ++++++++++++++++++++++++++++++++++++++++
 3 files changed, 176 insertions(+)

-- 
2.20.1



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-07-06  9:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-04  2:36 [PATCH v2 0/1] qga: add command 'guest-get-cpustats' zhenwei pi
2022-07-04  2:36 ` [PATCH v2 1/1] " zhenwei pi
2022-07-04  7:28   ` Marc-André Lureau
2022-07-04  7:29     ` Marc-André Lureau
2022-07-04  8:00     ` zhenwei pi
2022-07-06  3:04       ` zhenwei pi
2022-07-06  7:20         ` Marc-André Lureau
2022-07-06  7:44           ` zhenwei pi
2022-07-06  8:57             ` Marc-André Lureau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).