From: Marc-André Lureau <marcandre.lur...@redhat.com> QAPI_EVENT_VSERPORT_CHANGE reports changes of a virtio serial port state. However, the events may be for different ports, but the throttle mechanism may replace the event for a different port, since it only checks the event type.
The following series implements throttling of events based on the "id" field. Hopefully this hash table approach can be later extended if other fields or combination of fields have to be used. rfc->v1: - fix uppercase FALSE/TRUE and gpointer (glib-ism) - spelling fix Marc-André Lureau (3): monitor: split MonitorQAPIEventState monitor: throttle QAPI_EVENT_VSERPORT_CHANGE by "id" monitor: remove old entries from event hash table monitor.c | 245 +++++++++++++++++++++++++++++++++++++++++++++-------------- trace-events | 2 +- 2 files changed, 188 insertions(+), 59 deletions(-) -- 2.4.3