acrn-hypervisor/hypervisor/common
nacui 512c98fd79 hv: trace: show cpu usage of vms in pcpu sharing case
To maximize the cpu utilization, core 0 is usually shared by service
vm and guest vm. But there are no statistics to show the cpu occupation
of each vm.

This patch is to provide cpu usage statistic for users. To calculate
it, a new trace event is added and marked in scheduling context switch,
accompanying with a new python script to analyze the data from acrntrace
output.

Tracked-On: #8621
Signed-off-by: nacui <na.cui@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
Reviewed-by: Haiwei Li <haiwei.li@intel.com>
2024-06-28 12:55:23 +08:00
..
delay.c hv/mod_timer: separate delay functions from the timer module 2021-05-18 16:43:28 +08:00
efi_mmap.c HV: fix build issue on RELEASE version 2021-11-16 19:01:44 +08:00
event.c hv: support halt in hv idle 2023-09-15 11:52:40 +08:00
hv_main.c hv: sched: Add sched_params struct for thread parameters 2023-09-18 16:26:05 +08:00
hypercall.c hv: s3: reset vm after resume 2024-06-27 11:26:09 +08:00
irq.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
ptdev.c ptirq: Fix ptirq hash tables 2023-04-13 12:24:57 +08:00
sbuf.c hv: add max_len for sbuf_put param 2024-02-20 11:52:02 +08:00
sched_bvt.c hv: s3: add timer support 2024-06-27 11:26:09 +08:00
sched_iorr.c hv: s3: add timer support 2024-06-27 11:26:09 +08:00
sched_noop.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
sched_prio.c hv: sched: Fix scheduler priority issue 2024-05-08 14:52:23 +08:00
schedule.c hv: trace: show cpu usage of vms in pcpu sharing case 2024-06-28 12:55:23 +08:00
softirq.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
thermal.c hv: enable thermal lvt interrupt 2024-05-16 09:40:32 +08:00
ticks.c hv/mod_timer: split tsc handling code from timer. 2021-05-18 16:43:28 +08:00
timer.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
trusty_hypercall.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
vm_event.c hv: add max_len for sbuf_put param 2024-02-20 11:52:02 +08:00
vm_load.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00