diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-11-10 20:16:12 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-11-10 20:16:12 +0100 |
| commit | bbab5a629ae653899b9f613057916eaf95fc60f8 (patch) | |
| tree | 9d09807c52f583ff5984b04f119d66e55fd34af5 | |
| parent | cbe2a0a0f3bb681e65cf26ddc239403a42a77bcb (diff) | |
| download | allocbench-bbab5a629ae653899b9f613057916eaf95fc60f8.tar.gz allocbench-bbab5a629ae653899b9f613057916eaf95fc60f8.zip | |
add bumpptr variations allocator definitions
| -rw-r--r-- | src/allocators/bumpptr.py | 8 | ||||
| -rw-r--r-- | src/allocators/bumpptrs.py | 23 |
2 files changed, 31 insertions, 0 deletions
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 <florian.fl.fischer@fau.de> +# +# 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 <http://www.gnu.org/licenses/>. + +"""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] |
