aboutsummaryrefslogtreecommitdiff
path: root/src/allocators/glibc.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-03-09 19:34:31 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-03-09 19:34:31 +0100
commit3884a7712b74c09d4216b856464d6c3cdd9e3476 (patch)
tree1ccef133671bc885a46ea54edc39f983fc4ef298 /src/allocators/glibc.py
parent8b416335805fc07262c0570bda324afccb5e3da3 (diff)
downloadallocbench-3884a7712b74c09d4216b856464d6c3cdd9e3476.tar.gz
allocbench-3884a7712b74c09d4216b856464d6c3cdd9e3476.zip
fmt all src/allocators using yapf
Diffstat (limited to 'src/allocators/glibc.py')
-rw-r--r--src/allocators/glibc.py31
1 files changed, 17 insertions, 14 deletions
diff --git a/src/allocators/glibc.py b/src/allocators/glibc.py
index faeadd4..5d2814d 100644
--- a/src/allocators/glibc.py
+++ b/src/allocators/glibc.py
@@ -14,7 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with allocbench. If not, see <http://www.gnu.org/licenses/>.
-
"""Glibc definitions"""
from multiprocessing import cpu_count
@@ -36,10 +35,12 @@ class Glibc(Allocator):
configure_args = kwargs["configure_args"]
del kwargs["configure_args"]
- self.build_cmds = ["mkdir -p glibc-build",
- "cd glibc-build; {srcdir}/configure --prefix={dir} " + configure_args,
- "cd glibc-build; make",
- f"cd glibc-build; make -l {cpu_count()} install"]
+ self.build_cmds = [
+ "mkdir -p glibc-build",
+ "cd glibc-build; {srcdir}/configure --prefix={dir} " +
+ configure_args, "cd glibc-build; make",
+ f"cd glibc-build; make -l {cpu_count()} install"
+ ]
self.cmd_prefix = "{dir}/lib/ld-linux-x86-64.so.2 --library-path {dir}/lib:" + LIBRARY_PATH
@@ -53,12 +54,14 @@ glibc_notc = Glibc("glibc-noThreadCache",
version="glibc-2.29",
color="xkcd:maroon")
-glibc_nofs = Glibc("glibc-noFalsesharing",
- patches=["{patchdir}/glibc_2.29_no_passive_falsesharing.patch"],
- version="glibc-2.29",
- color="xkcd:pink")
-
-glibc_nofs_fancy = Glibc("glibc-noFalsesharingClever",
- patches=["{patchdir}/glibc_2.29_no_passive_falsesharing_fancy.patch"],
- version="glibc-2.29",
- color="xkcd:orange")
+glibc_nofs = Glibc(
+ "glibc-noFalsesharing",
+ patches=["{patchdir}/glibc_2.29_no_passive_falsesharing.patch"],
+ version="glibc-2.29",
+ color="xkcd:pink")
+
+glibc_nofs_fancy = Glibc(
+ "glibc-noFalsesharingClever",
+ patches=["{patchdir}/glibc_2.29_no_passive_falsesharing_fancy.patch"],
+ version="glibc-2.29",
+ color="xkcd:orange")