summaryrefslogtreecommitdiffstats
path: root/tests/libqos/malloc-pc.h
Commit message (Collapse)AuthorAgeFilesLines
* libqos: add a simple first-fit memory allocatorJohn Snow2014-09-081-0/+9
| | | | | | | | | | | | | | | | | | | | | Implement a simple first-fit memory allocator that attempts to keep track of leased blocks of memory in order to be able to re-use blocks. Additionally, allow the user to specify when initializing the device that upon cleanup, we would like to assert that there are no blocks in use. This may be useful for identifying problems in qtests that use more complicated set-up and tear-down routines. This functionality is used in my upcoming ahci-test v2 patch set, but I didn't see fit to enable it for any existing tests, which will continue to operate the same as they have prior. Signed-off-by: John Snow <jsnow@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
* libqos: add malloc supportAnthony Liguori2013-04-171-0/+20
This is a very simple allocator for the PC platform. It should be possible to add backends for other platforms. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-id: 1366123521-4330-5-git-send-email-aliguori@us.ibm.com
OpenPOWER on IntegriCloud