From bbab5a629ae653899b9f613057916eaf95fc60f8 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 10 Nov 2019 20:16:12 +0100 Subject: add bumpptr variations allocator definitions --- src/allocators/bumpptr.py | 8 ++++++++ src/allocators/bumpptrs.py | 23 +++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 src/allocators/bumpptrs.py diff --git a/src/allocators/bumpptr.py b/src/allocators/bumpptr.py index 98cba4b..37fbfe5 100644 --- a/src/allocators/bumpptr.py +++ b/src/allocators/bumpptr.py @@ -27,3 +27,11 @@ from src.allocator import Allocator, BUILDDIR bumpptr = Allocator("bumpptr", LD_PRELOAD=os.path.join(BUILDDIR, "bumpptr_alloc.so"), color="xkcd:black") + +bumpptr_single_tsd = Allocator("bumpptr_single_tsd", + LD_PRELOAD=os.path.join(BUILDDIR, "bumpptr_alloc_single_tsd.so"), + color="xkcd:black") + +bumpptr_always_align = Allocator("bumpptr_always_align", + LD_PRELOAD=os.path.join(BUILDDIR, "bumpptr_alloc_always_align.so"), + color="xkcd:black") diff --git a/src/allocators/bumpptrs.py b/src/allocators/bumpptrs.py new file mode 100644 index 0000000..f6d5cc6 --- /dev/null +++ b/src/allocators/bumpptrs.py @@ -0,0 +1,23 @@ +# Copyright 2018-2019 Florian Fischer +# +# This file is part of allocbench. +# +# allocbench is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# allocbench is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with allocbench. If not, see . + +"""Collection containing all bumpptr variants""" + +from src.allocators.bumpptr import bumpptr, bumpptr_single_tsd, bumpptr_always_align + + +allocators = [bumpptr, bumpptr_single_tsd, bumpptr_always_align] -- cgit v1.2.3