New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
virt plugin: Add physical cpu reporting #2175
Conversation
Add a metric to report physical cpu consumed by the hypervisor, split per user/system time. This is provided by libvirt since version 0.9.11, and used by oVirt. We also extend the newly-added 'ExtraStats' option to allow users to toggle on/off the new metric. Default is off. Signed-off-by: Francesco Romani <fromani@redhat.com>
|
Previously it failed to compile, even though somehow gcc 6.3.1 liked it.
src/virt.c
Outdated
| @@ -409,6 +484,21 @@ static void disk_submit(struct lv_block_info *binfo, virDomainPtr dom, | |||
| } | |||
| } | |||
|
|
|||
| static unsigned int parse_ex_stats_flags(char **exstats, int numexstats) { | |||
| int extra_stats = ex_stats_none; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this shadows the global extra_stats, which is an unsigned int.
and use a matching type for local one.
|
Thanks again! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
116 files changed and 29 removed
|
@fromanirh so, what's next? ;) |
|
Hi @rubenk! Next in lines are just fixes, we believe we filled all the gaps we had, so from now on it's polishing. I'll be in touch! |
Add a metric to report physical cpu consumed by the hypervisor,
split per user/system time. This is provided by libvirt since version
0.9.11, and used by oVirt.
We also extend the newly-added 'ExtraStats' option to allow
users to toggle on/off the new metric. Default is off.
Signed-off-by: Francesco Romani fromani@redhat.com