mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-09 05:10:23 +00:00
On Solaris and Linux, mmap() is an optimized function without prologue and epilogue. However, Solaris libc does not currently bear any DWARF CFI. Therefore stack chain unwinder grabs only two entries: IP inside mmap() and return address from the previous frame which points inside _start(), right after where main() is invoked. By introducing an intermediate function f(), main() is now visible in the stack trace even on Solaris. n-i-bz git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15749
7 lines
426 B
Plaintext
7 lines
426 B
Plaintext
prog: mmapunmap
|
|
vgopts: --pages-as-heap=yes --threshold=30.0 -q
|
|
vgopts: --stacks=no --time-unit=B --depth=8 --massif-out-file=massif.out
|
|
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
|
|
post: grep -A4 -e =peak massif.out | grep -e 'main (mmapunmap.c:16)' | tr -s ' ' | ../../tests/filter_addresses
|
|
cleanup: rm massif.out
|