aboutsummaryrefslogtreecommitdiff
path: root/src/common_targets.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-01-22 19:18:33 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-01-22 19:18:33 +0100
commitcddfdeddcc97872f928d8d1cbdcbc13e7f07c99f (patch)
treeb3418f755d29a34bab4ebd212ec53e2a9f7151b6 /src/common_targets.py
parentd236f892cc82f69b298c260913725ddfa4bea980 (diff)
downloadallocbench-cddfdeddcc97872f928d8d1cbdcbc13e7f07c99f.tar.gz
allocbench-cddfdeddcc97872f928d8d1cbdcbc13e7f07c99f.zip
add custom target option
the custom target definitions must be a valid python script exporting a global dictionary "targets".
Diffstat (limited to 'src/common_targets.py')
-rw-r--r--src/common_targets.py48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/common_targets.py b/src/common_targets.py
deleted file mode 100644
index 7a109a6..0000000
--- a/src/common_targets.py
+++ /dev/null
@@ -1,48 +0,0 @@
-import subprocess
-
-glibc_path_notc = "../glibc/glibc-install-notc/lib"
-
-library_path = ""
-p = subprocess.run(["ldconfig", "-v"], stdout=subprocess.PIPE,
- stderr=subprocess.PIPE,
- universal_newlines=True)
-
-for l in p.stdout.splitlines():
- if not l.startswith('\t'):
- library_path += l
-
-common_targets = {
- "glibc" : {
- "cmd_prefix" : "",
- "binary_suffix" : "",
- "LD_PRELOAD" : "",
- "color" : "C1"
- },
- "tcmalloc" : {
- "cmd_prefix" : "",
- "binary_suffix" : "",
- "LD_PRELOAD" : "targets/libtcmalloc.so",
- "color" : "C2"
- },
- "jemalloc" : {
- "cmd_prefix" : "",
- "binary_suffix" : "",
- "LD_PRELOAD" : "targets/libjemalloc.so",
- "color" : "C3"
- },
- "hoard" : {
- "cmd_prefix" : "",
- "binary_suffix" : "",
- "LD_PRELOAD" : "targets/libhoard.so",
- "color" : "C4"
- },
- "glibc-notc" : {
- "cmd_prefix" : glibc_path_notc+"/ld-linux-x86-64.so.2 "
- + "--library-path "
- + glibc_path_notc + ":"
- + library_path,
- "binary_suffix" : "-glibc-notc",
- "LD_PRELOAD" : "",
- "color" : "C5"
- },
- }