From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35878) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZX5vL-0005qS-N3 for qemu-devel@nongnu.org; Wed, 02 Sep 2015 07:09:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZX5vG-0007df-RG for qemu-devel@nongnu.org; Wed, 02 Sep 2015 07:09:51 -0400 Received: from mail-qg0-x234.google.com ([2607:f8b0:400d:c04::234]:35211) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZX5vG-0007dZ-OB for qemu-devel@nongnu.org; Wed, 02 Sep 2015 07:09:46 -0400 Received: by qgt47 with SMTP id 47so2968667qgt.2 for ; Wed, 02 Sep 2015 04:09:46 -0700 (PDT) Sender: =?UTF-8?B?TWFyYy1BbmRyw6kgTHVyZWF1?= From: marcandre.lureau@redhat.com Date: Wed, 2 Sep 2015 13:09:40 +0200 Message-Id: <1441192183-4812-1-git-send-email-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH 0/3] monitor: throttle VSERPORT_CHANGED by "id" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: amit.shah@redhat.com, lersek@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= From: Marc-André Lureau 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