]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
misc: make valgrind behave with tcmalloc 1618/head
authorSage Weil <sage@newdream.net>
Thu, 18 Feb 2021 16:23:14 +0000 (10:23 -0600)
committerSage Weil <sage@newdream.net>
Thu, 18 Feb 2021 16:23:14 +0000 (10:23 -0600)
Signed-off-by: Sage Weil <sage@newdream.net>
teuthology/misc.py

index ab7dd9936352781b1ba024c74eadddc3b5511816..767da3193a474bfdc312bec14af4adabdec695e5 100644 (file)
@@ -1047,6 +1047,7 @@ def get_valgrind_args(testdir, name, preamble, v, exit_on_first_error=True):
             'valgrind',
             '--trace-children=no',
             '--child-silent-after-fork=yes',
+            '--soname-synonyms=somalloc=*tcmalloc*',
             '--num-callers=50',
             '--suppressions={tdir}/valgrind.supp'.format(tdir=testdir),
             '--xml=yes',
@@ -1059,6 +1060,7 @@ def get_valgrind_args(testdir, name, preamble, v, exit_on_first_error=True):
             'valgrind',
             '--trace-children=no',
             '--child-silent-after-fork=yes',
+            '--soname-synonyms=somalloc=*tcmalloc*',
             '--suppressions={tdir}/valgrind.supp'.format(tdir=testdir),
             '--log-file={vdir}/{n}.log'.format(vdir=val_path, n=name),
             '--time-stamp=yes',