From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43859) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDEvj-0007Jl-OA for qemu-devel@nongnu.org; Fri, 01 Aug 2014 11:39:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XDEve-0000Ip-PS for qemu-devel@nongnu.org; Fri, 01 Aug 2014 11:39:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46671) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDEve-0000Ia-It for qemu-devel@nongnu.org; Fri, 01 Aug 2014 11:39:34 -0400 From: John Snow Date: Fri, 1 Aug 2014 11:38:55 -0400 Message-Id: <1406907539-18757-1-git-send-email-jsnow@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v3 0/4] libqos: add a simple first-fit memory allocator List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: marc.mari.barcelo@gmail.com, pbonzini@redhat.com, jsnow@redhat.com, afaerber@suse.de, stefanha@redhat.com This set collects two patches by Marc Mar=C3=AD already on the mailing li= st, but goes further by adding a simple memory allocator that allows us to track and debug freed memory, and optionally keep track of any leaks. For convenience: https://github.com/jnsnow/qemu/tree/libqos-alloc v2: use QTAILQ as a basis for the linked list implementation instead. Correct an error in the size of the initial node. v3: remove mlist wrappers around QTAILQ interface for clarity. adjust the options controlling when to do allocation list debugging. John Snow (2): libqos: add a simple first-fit memory allocator qtest/ide: Uninitialize PC allocator Marc Mar=C3=AD (2): libqos: Correct mask to align size to PAGE_SIZE in malloc-pc libqos: Change free function called in malloc tests/ide-test.c | 2 + tests/libqos/malloc-pc.c | 280 +++++++++++++++++++++++++++++++++++++++++= ++++-- tests/libqos/malloc-pc.h | 9 ++ tests/libqos/malloc.h | 2 +- 4 files changed, 282 insertions(+), 11 deletions(-) --=20 1.9.3