Re: [RFC PATCH v2 3/7] contrib/plugins: add plugin showcasing new trap related API

2024-10-21 Thread Julian Ganz
October 21, 2024 at 8:07 PM, "Pierrick Bouvier" wrote: > On 10/19/24 09:39, Julian Ganz wrote: > > + max_vcpus = info->system.max_vcpus; > > + traps = calloc(max_vcpus, sizeof(TrapCounters)); > > > Instead of allocating data for max number of vcpu, you can use a > qemu_plugin_scoreboard, which

Re: [RFC PATCH v2 3/7] contrib/plugins: add plugin showcasing new trap related API

2024-10-21 Thread Pierrick Bouvier
On 10/19/24 09:39, Julian Ganz wrote: We recently introduced new plugin API for registration of trap related callbacks. This change introduces a minimal plugin showcasing the new API. It simply counts the occurances of interrupts, exceptions and semihosting events per CPU and reports the count

Re: [RFC PATCH v2 3/7] contrib/plugins: add plugin showcasing new trap related API

2024-10-21 Thread Pierrick Bouvier
On 10/19/24 09:39, Julian Ganz wrote: We recently introduced new plugin API for registration of trap related callbacks. This change introduces a minimal plugin showcasing the new API. It simply counts the occurances of interrupts, exceptions and semihosting events per CPU and reports the counts w

[RFC PATCH v2 3/7] contrib/plugins: add plugin showcasing new trap related API

2024-10-19 Thread Julian Ganz
We recently introduced new plugin API for registration of trap related callbacks. This change introduces a minimal plugin showcasing the new API. It simply counts the occurances of interrupts, exceptions and semihosting events per CPU and reports the counts when exitting. Signed-off-by: Julian Gan