-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add statistics verification to obj_pmalloc_mt test
Enable statistics in pmalloc mt tests. Extend missing diagnostic of pmalloc and prealloc functions calls. Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@intel.com>
- Loading branch information
Showing
7 changed files
with
214 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Copyright 2023, Intel Corporation | ||
|
||
# | ||
# src/test/obj_pmalloc_mt/TEST4 -- multithreaded allocator test | ||
# (long helgrind version) w/ statistics | ||
# | ||
|
||
. ../unittest/unittest.sh | ||
|
||
require_valgrind 3.10 | ||
require_fs_type pmem non-pmem | ||
require_test_type long | ||
configure_valgrind helgrind force-enable | ||
setup | ||
|
||
PMEM_IS_PMEM_FORCE=1 expect_normal_exit\ | ||
./obj_pmalloc_mt$EXESUFFIX 32 1000 100 $DIR/testfile 1 | ||
|
||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Copyright 2023, Intel Corporation | ||
|
||
# | ||
# src/test/obj_pmalloc_mt/TEST5 -- multithreaded allocator test | ||
# (medium non-helgrind/drd version) w/ statistics | ||
# | ||
|
||
. ../unittest/unittest.sh | ||
|
||
require_fs_type pmem non-pmem | ||
require_test_type medium | ||
configure_valgrind drd force-disable | ||
configure_valgrind helgrind force-disable | ||
setup | ||
|
||
PMEM_IS_PMEM_FORCE=1 expect_normal_exit\ | ||
./obj_pmalloc_mt$EXESUFFIX 32 1000 100 $DIR/testfile 1 | ||
|
||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Copyright 2023, Intel Corporation | ||
|
||
# | ||
# src/test/obj_pmalloc_mt/TEST6 -- multithreaded allocator test | ||
# (medium helgrind version) w/ statistics | ||
# | ||
|
||
. ../unittest/unittest.sh | ||
|
||
require_valgrind 3.10 | ||
require_fs_type pmem non-pmem | ||
require_test_type medium | ||
configure_valgrind helgrind force-enable | ||
setup | ||
|
||
PMEM_IS_PMEM_FORCE=1 expect_normal_exit\ | ||
./obj_pmalloc_mt$EXESUFFIX 4 64 4 $DIR/testfile 1 | ||
|
||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Copyright 2023, Intel Corporation | ||
|
||
# | ||
# src/test/obj_pmalloc_mt/TEST7 -- multithreaded allocator test | ||
# (long drd version) w/ statistics | ||
# | ||
|
||
. ../unittest/unittest.sh | ||
|
||
require_valgrind 3.10 | ||
require_fs_type pmem non-pmem | ||
require_test_type long | ||
configure_valgrind drd force-enable | ||
setup | ||
|
||
PMEM_IS_PMEM_FORCE=1 expect_normal_exit\ | ||
./obj_pmalloc_mt$EXESUFFIX 4 64 4 $DIR/testfile 1 | ||
|
||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env bash | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Copyright 2023, Intel Corporation | ||
|
||
# | ||
# src/test/obj_pmalloc_mt/TEST8 -- multithreaded allocator test | ||
# (long - several iteration) w/ statistics | ||
# | ||
|
||
. ../unittest/unittest.sh | ||
|
||
require_valgrind 3.10 | ||
require_fs_type pmem non-pmem | ||
require_test_type long | ||
configure_valgrind helgrind force-enable | ||
setup | ||
|
||
for n in {1..500} | ||
do | ||
if test -f "rm $DIR/testfile"; then | ||
rm $DIR/testfile | ||
fi | ||
PMEM_IS_PMEM_FORCE=1 expect_normal_exit\ | ||
./obj_pmalloc_mt$EXESUFFIX 32 1000 100 $DIR/testfile 1 $n | ||
done | ||
|
||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env bash | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Copyright 2023, Intel Corporation | ||
|
||
# | ||
# src/test/obj_pmalloc_mt/TEST9 -- multithreaded allocator test | ||
# (long drd version) w/ statistics | ||
# | ||
|
||
. ../unittest/unittest.sh | ||
|
||
require_valgrind 3.10 | ||
require_fs_type pmem non-pmem | ||
require_test_type long | ||
configure_valgrind helgrind force-enable | ||
setup | ||
|
||
for n in {1..50} | ||
do | ||
if test -f "rm $DIR/testfile"; then | ||
rm $DIR/testfile | ||
fi | ||
PMEM_IS_PMEM_FORCE=1 expect_normal_exit\ | ||
./obj_pmalloc_mt$EXESUFFIX 32 1000 100 $DIR/testfile 0 $n | ||
done | ||
|
||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters