Skip to content

Commit 9996497

Browse files
authored
fix(macos): add more ignore for massif tests (#158)
1 parent 926705e commit 9996497

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+384
-95
lines changed

.github/macos-14-expected.txt

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -253,47 +253,15 @@ drd/tests/timed_mutex (stderr)
253253
drd/tests/trylock (stderr)
254254
drd/tests/unit_bitmap (stderr)
255255
drd/tests/unit_vc (stderr)
256-
massif/tests/alloc-fns-A (post)
257-
massif/tests/alloc-fns-B (post)
258-
massif/tests/basic (post)
259-
massif/tests/basic2 (post)
260256
massif/tests/big-alloc (post)
261257
massif/tests/bug469146 (post)
262258
massif/tests/culling1 (stderr)
263-
massif/tests/culling2 (stderr)
264259
massif/tests/custom_alloc (stderr)
265260
massif/tests/custom_alloc (post)
266-
massif/tests/deep-A (post)
267-
massif/tests/deep-B (stderr)
268-
massif/tests/deep-B (post)
269-
massif/tests/deep-C (stderr)
270-
massif/tests/deep-C (post)
271-
massif/tests/deep-D (post)
272-
massif/tests/ignored (post)
273-
massif/tests/ignoring (post)
274261
massif/tests/inlinfomalloc (post)
275-
massif/tests/insig (post)
276-
massif/tests/long-names (post)
277-
massif/tests/long-time (post)
278262
massif/tests/mmapunmap (post)
279-
massif/tests/new-cpp (post)
280-
massif/tests/null (post)
281-
massif/tests/one (post)
282263
massif/tests/overloaded-new (post)
283264
massif/tests/pages_as_heap (stderr)
284-
massif/tests/peak (post)
285-
massif/tests/peak2 (stderr)
286-
massif/tests/peak2 (post)
287-
massif/tests/realloc (stderr)
288-
massif/tests/realloc (post)
289-
massif/tests/thresholds_0_0 (post)
290-
massif/tests/thresholds_0_10 (post)
291-
massif/tests/thresholds_10_0 (post)
292-
massif/tests/thresholds_10_10 (post)
293-
massif/tests/thresholds_5_0 (post)
294-
massif/tests/thresholds_5_10 (post)
295-
massif/tests/zero1 (post)
296-
massif/tests/zero2 (post)
297265
dhat/tests/acc (stderr)
298266
dhat/tests/basic (stderr)
299267
dhat/tests/big (stderr)

.github/macos-26-expected.txt

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -387,47 +387,20 @@ drd/tests/timed_mutex (stderr)
387387
drd/tests/trylock (stderr)
388388
drd/tests/unit_bitmap (stderr)
389389
drd/tests/unit_vc (stderr)
390-
massif/tests/alloc-fns-A (post)
391-
massif/tests/alloc-fns-B (post)
392-
massif/tests/basic (post)
393-
massif/tests/basic2 (post)
394390
massif/tests/big-alloc (post)
395391
massif/tests/bug469146 (post)
396392
massif/tests/culling1 (stderr)
397-
massif/tests/culling2 (stderr)
398393
massif/tests/custom_alloc (stderr)
399394
massif/tests/custom_alloc (post)
400-
massif/tests/deep-A (post)
401-
massif/tests/deep-B (stderr)
402-
massif/tests/deep-B (post)
403-
massif/tests/deep-C (stderr)
404-
massif/tests/deep-C (post)
405-
massif/tests/deep-D (post)
406-
massif/tests/ignored (post)
407-
massif/tests/ignoring (post)
408395
massif/tests/inlinfomalloc (post)
409396
massif/tests/insig (post)
410-
massif/tests/long-names (post)
411-
massif/tests/long-time (post)
412397
massif/tests/mmapunmap (post)
413-
massif/tests/new-cpp (post)
414-
massif/tests/null (post)
415398
massif/tests/one (post)
416399
massif/tests/overloaded-new (post)
417400
massif/tests/pages_as_heap (stderr)
418401
massif/tests/peak (post)
419402
massif/tests/peak2 (stderr)
420403
massif/tests/peak2 (post)
421-
massif/tests/realloc (stderr)
422-
massif/tests/realloc (post)
423-
massif/tests/thresholds_0_0 (post)
424-
massif/tests/thresholds_0_10 (post)
425-
massif/tests/thresholds_10_0 (post)
426-
massif/tests/thresholds_10_10 (post)
427-
massif/tests/thresholds_5_0 (post)
428-
massif/tests/thresholds_5_10 (post)
429-
massif/tests/zero1 (post)
430-
massif/tests/zero2 (post)
431404
dhat/tests/acc (stderr)
432405
dhat/tests/basic (stderr)
433406
dhat/tests/big (stderr)

massif/tests/alloc-fns-A.post.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--------------------------------------------------------------------------------
22
Command: ./alloc-fns
3-
Massif arguments: --stacks=no --time-unit=B --heap-admin=0 --massif-out-file=massif.out --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element --alloc-fn=_xpc_malloc --ignore-fn=_xpc_dictionary_insert --ignore-fn=map_images_nolock --ignore-fn=allocBuckets(void*, unsigned int) --ignore-fn=realizeClass(objc_class*) --ignore-fn=_NXHashRehashToCapacity --ignore-fn=NXCreateHashTableFromZone --ignore-fn=NXCreateMapTableFromZone --ignore-fn=NXHashInsert --ignore-fn=add_class_to_loadable_list --ignore-fn=class_createInstance --ignore-fn=xpc_string_create --alloc-fn=strdup --alloc-fn=_xpc_calloc --ignore-fn=xpc_array_create
3+
Massif arguments: --stacks=no --time-unit=B --heap-admin=0 --massif-out-file=massif.out --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element --alloc-fn=_xpc_malloc --ignore-fn=_xpc_dictionary_insert --ignore-fn=map_images_nolock --ignore-fn=allocBuckets(void*, unsigned int) --ignore-fn=realizeClass(objc_class*) --ignore-fn=_NXHashRehashToCapacity --ignore-fn=NXCreateHashTableFromZone --ignore-fn=NXCreateMapTableFromZone --ignore-fn=NXHashInsert --ignore-fn=add_class_to_loadable_list --ignore-fn=class_createInstance --ignore-fn=xpc_string_create --alloc-fn=strdup --alloc-fn=_xpc_calloc --ignore-fn=xpc_array_create --ignore-fn=realizeClassWithoutSwift(objc_class*, objc_class*) --ignore-fn=allocBuckets(unsigned int) --alloc-fn=_xpc_alloc_typed --ignore-fn=_xpc_array_create --alloc-fn=_xpc_strdup --ignore-fn=NXCreateMapTable --ignore-fn=NXCreateHashTable --ignore-fn=id2data(objc_object*, SyncKind, usage) --ignore-fn=class_rw_t::extAlloc(class_ro_t const*, bool) --ignore-fn=_fetchInitializingClassList(bool) --ignore-fn=objc::SafeRanges::add(unsigned long, unsigned long) --ignore-fn=cache_t::insert(objc_selector*, void (*)(), objc_object*) --ignore-fn=_vasprintf --ignore-fn=xpc_bundle_create_from_origin --ignore-fn=_xpc_realpath --ignore-fn=_xpc_realpath_fd --ignore-fn=_xpc_bundle_resolve_executable_variant --ignore-fn=_xpc_bundle_copy_container --alloc-fn=_xpc_alloc --alloc-fn=_malloc_zone_malloc_with_options_np_outlined --ignore-fn=objc::DenseMap<objc_class*, objc::category_list, objc::DenseMapValueInfo<objc::category_list>, objc::DenseMapInfo<objc_class*>, objc::detail::DenseMapPair<objc_class*, objc::category_list> >::init(unsigned int) --ignore-fn=objc::DenseMap<DisguisedPtr<objc_class>, objc::category_list, objc::DenseMapValueInfo<objc::category_list>, objc::DenseMapInfo<DisguisedPtr<objc_class> >, objc::detail::DenseMapPair<DisguisedPtr<objc_class>, objc::category_list> >::init(unsigned int) --ignore-fn=xpc_bundle_create_from_origin_with_string_cache
44
ms_print arguments: massif.out
55
--------------------------------------------------------------------------------
66

massif/tests/alloc-fns-A.vgtest

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,11 @@ vgopts: --stacks=no --time-unit=B --heap-admin=0 --massif-out-file=massif.out
33
vgopts: --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element
44
# Darwin ignore functions, for macOS 10.13
55
vgopts: --alloc-fn=_xpc_malloc --ignore-fn=_xpc_dictionary_insert --ignore-fn=map_images_nolock --ignore-fn="allocBuckets(void*, unsigned int)" --ignore-fn="realizeClass(objc_class*)" --ignore-fn=_NXHashRehashToCapacity --ignore-fn=NXCreateHashTableFromZone --ignore-fn=NXCreateMapTableFromZone --ignore-fn=NXHashInsert --ignore-fn=add_class_to_loadable_list --ignore-fn=class_createInstance --ignore-fn=xpc_string_create --alloc-fn=strdup --alloc-fn=_xpc_calloc --ignore-fn=xpc_array_create
6+
# Darwin ignore functions, as of macOS 15
7+
vgopts: --ignore-fn="realizeClassWithoutSwift(objc_class*, objc_class*)" --ignore-fn="allocBuckets(unsigned int)" --alloc-fn=_xpc_alloc_typed --ignore-fn=_xpc_array_create --alloc-fn=_xpc_strdup --ignore-fn=NXCreateMapTable --ignore-fn=NXCreateHashTable --ignore-fn="id2data(objc_object*, SyncKind, usage)" --ignore-fn="class_rw_t::extAlloc(class_ro_t const*, bool)" --ignore-fn="_fetchInitializingClassList(bool)" --ignore-fn="objc::SafeRanges::add(unsigned long, unsigned long)" --ignore-fn="cache_t::insert(objc_selector*, void (*)(), objc_object*)" --ignore-fn=_vasprintf --ignore-fn=xpc_bundle_create_from_origin --ignore-fn=_xpc_realpath --ignore-fn=_xpc_realpath_fd --ignore-fn=_xpc_bundle_resolve_executable_variant --ignore-fn=_xpc_bundle_copy_container --alloc-fn=_xpc_alloc --alloc-fn=_malloc_zone_malloc_with_options_np_outlined
8+
vgopts: --ignore-fn="objc::DenseMap<objc_class*, objc::category_list, objc::DenseMapValueInfo<objc::category_list>, objc::DenseMapInfo<objc_class*>, objc::detail::DenseMapPair<objc_class*, objc::category_list> >::init(unsigned int)"
9+
vgopts: --ignore-fn="objc::DenseMap<DisguisedPtr<objc_class>, objc::category_list, objc::DenseMapValueInfo<objc::category_list>, objc::DenseMapInfo<DisguisedPtr<objc_class> >, objc::detail::DenseMapPair<DisguisedPtr<objc_class>, objc::category_list> >::init(unsigned int)"
10+
# Darwin ignore functions, as of macOS
11+
vgopts: --ignore-fn=xpc_bundle_create_from_origin_with_string_cache
612
post: perl ../../massif/ms_print massif.out | ../../tests/filter_addresses
713
cleanup: rm massif.out

massif/tests/alloc-fns-B.post.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--------------------------------------------------------------------------------
22
Command: ./alloc-fns
3-
Massif arguments: --stacks=no --time-unit=B --heap-admin=0 --alloc-fn=a4 --alloc-fn=b4 --alloc-fn=b3 --alloc-fn=c4 --alloc-fn=c3 --alloc-fn=c2 --alloc-fn=d4 --alloc-fn=d3 --alloc-fn=d2 --alloc-fn=d1 --massif-out-file=massif.out --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element --alloc-fn=_xpc_malloc --ignore-fn=_xpc_dictionary_insert --ignore-fn=map_images_nolock --ignore-fn=allocBuckets(void*, unsigned int) --ignore-fn=realizeClass(objc_class*) --ignore-fn=_NXHashRehashToCapacity --ignore-fn=NXCreateHashTableFromZone --ignore-fn=NXCreateMapTableFromZone --ignore-fn=NXHashInsert --ignore-fn=add_class_to_loadable_list --ignore-fn=class_createInstance --ignore-fn=xpc_string_create --alloc-fn=strdup --alloc-fn=_xpc_calloc --ignore-fn=xpc_array_create
3+
Massif arguments: --stacks=no --time-unit=B --heap-admin=0 --alloc-fn=a4 --alloc-fn=b4 --alloc-fn=b3 --alloc-fn=c4 --alloc-fn=c3 --alloc-fn=c2 --alloc-fn=d4 --alloc-fn=d3 --alloc-fn=d2 --alloc-fn=d1 --massif-out-file=massif.out --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element --alloc-fn=_xpc_malloc --ignore-fn=_xpc_dictionary_insert --ignore-fn=map_images_nolock --ignore-fn=allocBuckets(void*, unsigned int) --ignore-fn=realizeClass(objc_class*) --ignore-fn=_NXHashRehashToCapacity --ignore-fn=NXCreateHashTableFromZone --ignore-fn=NXCreateMapTableFromZone --ignore-fn=NXHashInsert --ignore-fn=add_class_to_loadable_list --ignore-fn=class_createInstance --ignore-fn=xpc_string_create --alloc-fn=strdup --alloc-fn=_xpc_calloc --ignore-fn=xpc_array_create --ignore-fn=realizeClassWithoutSwift(objc_class*, objc_class*) --ignore-fn=allocBuckets(unsigned int) --alloc-fn=_xpc_alloc_typed --ignore-fn=_xpc_array_create --alloc-fn=_xpc_strdup --ignore-fn=NXCreateMapTable --ignore-fn=NXCreateHashTable --ignore-fn=id2data(objc_object*, SyncKind, usage) --ignore-fn=class_rw_t::extAlloc(class_ro_t const*, bool) --ignore-fn=_fetchInitializingClassList(bool) --ignore-fn=objc::SafeRanges::add(unsigned long, unsigned long) --ignore-fn=cache_t::insert(objc_selector*, void (*)(), objc_object*) --ignore-fn=_vasprintf --ignore-fn=xpc_bundle_create_from_origin --ignore-fn=_xpc_realpath --ignore-fn=_xpc_realpath_fd --ignore-fn=_xpc_bundle_resolve_executable_variant --ignore-fn=_xpc_bundle_copy_container --alloc-fn=_xpc_alloc --alloc-fn=_malloc_zone_malloc_with_options_np_outlined --ignore-fn=objc::DenseMap<objc_class*, objc::category_list, objc::DenseMapValueInfo<objc::category_list>, objc::DenseMapInfo<objc_class*>, objc::detail::DenseMapPair<objc_class*, objc::category_list> >::init(unsigned int) --ignore-fn=objc::DenseMap<DisguisedPtr<objc_class>, objc::category_list, objc::DenseMapValueInfo<objc::category_list>, objc::DenseMapInfo<DisguisedPtr<objc_class> >, objc::detail::DenseMapPair<DisguisedPtr<objc_class>, objc::category_list> >::init(unsigned int) --ignore-fn=xpc_bundle_create_from_origin_with_string_cache
44
ms_print arguments: massif.out
55
--------------------------------------------------------------------------------
66

massif/tests/alloc-fns-B.vgtest

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,11 @@ vgopts: --stacks=no --time-unit=B --heap-admin=0 --alloc-fn=a4 --alloc-fn=b4 --a
33
vgopts: --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element
44
# Darwin ignore functions, for macOS 10.13
55
vgopts: --alloc-fn=_xpc_malloc --ignore-fn=_xpc_dictionary_insert --ignore-fn=map_images_nolock --ignore-fn="allocBuckets(void*, unsigned int)" --ignore-fn="realizeClass(objc_class*)" --ignore-fn=_NXHashRehashToCapacity --ignore-fn=NXCreateHashTableFromZone --ignore-fn=NXCreateMapTableFromZone --ignore-fn=NXHashInsert --ignore-fn=add_class_to_loadable_list --ignore-fn=class_createInstance --ignore-fn=xpc_string_create --alloc-fn=strdup --alloc-fn=_xpc_calloc --ignore-fn=xpc_array_create
6+
# Darwin ignore functions, as of macOS 15
7+
vgopts: --ignore-fn="realizeClassWithoutSwift(objc_class*, objc_class*)" --ignore-fn="allocBuckets(unsigned int)" --alloc-fn=_xpc_alloc_typed --ignore-fn=_xpc_array_create --alloc-fn=_xpc_strdup --ignore-fn=NXCreateMapTable --ignore-fn=NXCreateHashTable --ignore-fn="id2data(objc_object*, SyncKind, usage)" --ignore-fn="class_rw_t::extAlloc(class_ro_t const*, bool)" --ignore-fn="_fetchInitializingClassList(bool)" --ignore-fn="objc::SafeRanges::add(unsigned long, unsigned long)" --ignore-fn="cache_t::insert(objc_selector*, void (*)(), objc_object*)" --ignore-fn=_vasprintf --ignore-fn=xpc_bundle_create_from_origin --ignore-fn=_xpc_realpath --ignore-fn=_xpc_realpath_fd --ignore-fn=_xpc_bundle_resolve_executable_variant --ignore-fn=_xpc_bundle_copy_container --alloc-fn=_xpc_alloc --alloc-fn=_malloc_zone_malloc_with_options_np_outlined
8+
vgopts: --ignore-fn="objc::DenseMap<objc_class*, objc::category_list, objc::DenseMapValueInfo<objc::category_list>, objc::DenseMapInfo<objc_class*>, objc::detail::DenseMapPair<objc_class*, objc::category_list> >::init(unsigned int)"
9+
vgopts: --ignore-fn="objc::DenseMap<DisguisedPtr<objc_class>, objc::category_list, objc::DenseMapValueInfo<objc::category_list>, objc::DenseMapInfo<DisguisedPtr<objc_class> >, objc::detail::DenseMapPair<DisguisedPtr<objc_class>, objc::category_list> >::init(unsigned int)"
10+
# Darwin ignore functions, as of macOS
11+
vgopts: --ignore-fn=xpc_bundle_create_from_origin_with_string_cache
612
post: perl ../../massif/ms_print massif.out | ../../tests/filter_addresses
713
cleanup: rm massif.out

massif/tests/basic.post.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--------------------------------------------------------------------------------
22
Command: ./basic
3-
Massif arguments: --stacks=no --time-unit=B --massif-out-file=massif.out --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element --alloc-fn=_xpc_malloc --ignore-fn=_xpc_dictionary_insert --ignore-fn=map_images_nolock --ignore-fn=allocBuckets(void*, unsigned int) --ignore-fn=realizeClass(objc_class*) --ignore-fn=_NXHashRehashToCapacity --ignore-fn=NXCreateHashTableFromZone --ignore-fn=NXCreateMapTableFromZone --ignore-fn=NXHashInsert --ignore-fn=add_class_to_loadable_list --ignore-fn=class_createInstance --ignore-fn=xpc_string_create --alloc-fn=strdup --alloc-fn=_xpc_calloc --ignore-fn=xpc_array_create
3+
Massif arguments: --stacks=no --time-unit=B --massif-out-file=massif.out --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element --alloc-fn=_xpc_malloc --ignore-fn=_xpc_dictionary_insert --ignore-fn=map_images_nolock --ignore-fn=allocBuckets(void*, unsigned int) --ignore-fn=realizeClass(objc_class*) --ignore-fn=_NXHashRehashToCapacity --ignore-fn=NXCreateHashTableFromZone --ignore-fn=NXCreateMapTableFromZone --ignore-fn=NXHashInsert --ignore-fn=add_class_to_loadable_list --ignore-fn=class_createInstance --ignore-fn=xpc_string_create --alloc-fn=strdup --alloc-fn=_xpc_calloc --ignore-fn=xpc_array_create --ignore-fn=realizeClassWithoutSwift(objc_class*, objc_class*) --ignore-fn=allocBuckets(unsigned int) --alloc-fn=_xpc_alloc_typed --ignore-fn=_xpc_array_create --alloc-fn=_xpc_strdup --ignore-fn=NXCreateMapTable --ignore-fn=NXCreateHashTable --ignore-fn=id2data(objc_object*, SyncKind, usage) --ignore-fn=class_rw_t::extAlloc(class_ro_t const*, bool) --ignore-fn=_fetchInitializingClassList(bool) --ignore-fn=objc::SafeRanges::add(unsigned long, unsigned long) --ignore-fn=cache_t::insert(objc_selector*, void (*)(), objc_object*) --ignore-fn=_vasprintf --ignore-fn=xpc_bundle_create_from_origin --ignore-fn=_xpc_realpath --ignore-fn=_xpc_realpath_fd --ignore-fn=_xpc_bundle_resolve_executable_variant --ignore-fn=_xpc_bundle_copy_container --alloc-fn=_xpc_alloc --alloc-fn=_malloc_zone_malloc_with_options_np_outlined --ignore-fn=objc::DenseMap<objc_class*, objc::category_list, objc::DenseMapValueInfo<objc::category_list>, objc::DenseMapInfo<objc_class*>, objc::detail::DenseMapPair<objc_class*, objc::category_list> >::init(unsigned int) --ignore-fn=objc::DenseMap<DisguisedPtr<objc_class>, objc::category_list, objc::DenseMapValueInfo<objc::category_list>, objc::DenseMapInfo<DisguisedPtr<objc_class> >, objc::detail::DenseMapPair<DisguisedPtr<objc_class>, objc::category_list> >::init(unsigned int) --ignore-fn=xpc_bundle_create_from_origin_with_string_cache
44
ms_print arguments: massif.out
55
--------------------------------------------------------------------------------
66

0 commit comments

Comments
 (0)