malloc-aggregation.d: don't forget posix_memalign (#785)

Motivation:

When counting the number of allocations it's important not to forget an
allocation function that Swift uses.

Modifications:

add posix_memalign to dev/malloc-aggregation.d

Result:

malloc aggregations accurate with recent Swift versions
This commit is contained in:
Johannes Weiss authored and Cory Benfield committed 2019-01-29 11:23:42 +00:00
1 parent 58a58b9680
commit 9480c27148
1 file changed
+1 -1
+1 -1
View File
@@ -28,7 +28,7 @@
printf("=====\n");
}
pid$target::malloc:entry, pid$target::posix_memalign:entry, pid$target::realloc:entry, pid$target::reallocf:entry, pid$target::calloc:entry, pid$target::valloc:entry {
pid$target::malloc:entry, pid$target::posix_memalign:entry, pid$target::realloc:entry, pid$target::reallocf:entry, pid$target::calloc:entry, pid$target::valloc:entry, pid$target::posix_memalign:entry {
@malloc_calls[ustack()] = count();
}