From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCcMm-0000KG-IW for qemu-devel@nongnu.org; Wed, 30 Jul 2014 18:29:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XCcMY-0003U0-2W for qemu-devel@nongnu.org; Wed, 30 Jul 2014 18:29:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:63498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCcMX-0003Tl-Q3 for qemu-devel@nongnu.org; Wed, 30 Jul 2014 18:28:46 -0400 From: John Snow Date: Wed, 30 Jul 2014 18:28:25 -0400 Message-Id: <1406759309-13742-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 v2 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, 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. v2: use QTAILQ as a basis for the linked list implementation instead. Correct an error in the size of the initial node. 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 | 296 +++++++++++++++++++++++++++++++++++++++++= ++++-- tests/libqos/malloc-pc.h | 9 ++ tests/libqos/malloc.h | 2 +- 4 files changed, 298 insertions(+), 11 deletions(-) --=20 1.9.3