https://sourceware.org/bugzilla/show_bug.cgi?id=32263
Bug ID: 32263 Summary: RFE: API to create/track executable memory layout for processes from perf PERF_RECORD_MMAP* events Product: elfutils Version: unspecified Status: NEW Severity: normal Priority: P2 Component: general Assignee: unassigned at sourceware dot org Reporter: wcohen at redhat dot com CC: elfutils-devel at sourceware dot org Target Milestone: --- The current eu-stacktrace code in development resorts to reading /proc information to determine which binaries the IP addresses map to when unwinding the stack. The main disadvantages of reading the /proc information is for short lived processes the /proc maybe non-existent and for processes using dlopen/dlclose the information /proc information might be out of sync with the mmap when the sample was taken. The approach that Linux perf takes to avoid those problems is to record changes to the memory map with PERF_RECORD_MMAP and PERF_RECORD_MMAP2 events. It would be a nice addition to elfutils tools to have a means of building a picture of a memory map of a process using the PERF_RECORD_MMAP* events and being able to use that in other parts of the elfutils such as eu-stacktrace. The code may still need to read /proc/<pid>/maps to get a starting point memory map of processes that existed before data recording started. -- You are receiving this mail because: You are on the CC list for the bug.