For making mmap cache code reusable from other areas in strace than unwind, mmap cache related code and unwind related code should be separated. This change is one of the steps for the separation. It moves unw_flush_cache function call from the core of mmap cache code to upper level code. * unwind.c (mmap_cache_rebuild_result): New enum. (rebuild_cache_if_invalid): Return MMAP_CACHE_REBUILD_* instead of a bool value. (build_mmap_cache): Don't call unw_flush_cache here. (unwind_print_stacktrace, unwind_capture_stacktrace): Call unw_flush_cache here instead. Signed-off-by: Masatake YAMATO <yamato@redhat.com>
strace - the linux syscall tracer
This is strace -- a diagnostic, debugging and instructional userspace utility with a traditional command-line interface for Linux. It is used to monitor and tamper with interactions between processes and the Linux kernel, which include system calls, signal deliveries, and changes of process state. The operation of strace is made possible by the kernel feature known as ptrace.
strace is released under a Berkeley-style license at the request of Paul Kranenburg; see the file COPYING for details.
See the file NEWS for information on what has changed in recent versions.
Please read the file INSTALL-git for installation instructions.
The user discussion and development of strace take place on the strace mailing list -- everyone is welcome to post bug reports, feature requests, comments and patches to strace-devel@lists.strace.io. The mailing list archives are available at https://lists.strace.io/pipermail/strace-devel/ and other archival sites.
The GIT repository of strace is available at GitHub and GitLab.