diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-08-12 18:21:44 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-08-12 18:21:44 +0200 |
| commit | f3a2f62edd79deedff5e6ffaa1d2d7a9f3ac5d11 (patch) | |
| tree | d2e36ab54882f9dd911e5569343179d29ba17511 /src/allocators/glibc.py | |
| parent | 3556ba5007193bb1bee5577b1e33a82936af7fe5 (diff) | |
| download | allocbench-f3a2f62edd79deedff5e6ffaa1d2d7a9f3ac5d11.tar.gz allocbench-f3a2f62edd79deedff5e6ffaa1d2d7a9f3ac5d11.zip | |
fix benchmarks for any glibc version
use the included loader of the build glibc instead of LD_LIBRARY_PATH.
Using LD_LIBRARY_PATH probably fails because of incompatible system
loaders and newer glibc versions.
Then we have to reverse the positions of {measure cmd} and {cmd prefix}
in the exec chain because ld loads only ELF binaries and {measure cmd}
could be a script.
Diffstat (limited to 'src/allocators/glibc.py')
| -rw-r--r-- | src/allocators/glibc.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/allocators/glibc.py b/src/allocators/glibc.py index 3842877..b9f0a9e 100644 --- a/src/allocators/glibc.py +++ b/src/allocators/glibc.py @@ -25,10 +25,10 @@ class Glibc (Allocator): "cd glibc-build; make", "cd glibc-build; make install"] - # kwargs["cmd_prefix"] = ("{dir}/lib/ld-linux-x86-64.so.2 --library-path {dir}/lib:" - # + library_path) + kwargs["cmd_prefix"] = ("{dir}/lib/ld-linux-x86-64.so.2 --library-path {dir}/lib:" + + library_path) - kwargs["LD_LIBRARY_PATH"] = "{dir}/lib:" + library_path + # kwargs["LD_LIBRARY_PATH"] = "{dir}/lib:" + library_path super().__init__(name, **kwargs) |
