mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-analyze: add build-id to SysprofDocumentMmap
In anticipation of getting PERF_EVENT_MMAP2 events, assume we tack on the build-id in hex after the filename like "filename\0@build-id\0" so that we can use it when decoding frames. That will allow us to avoid doing inode checks (which breaks when moving files between computers anyway) as well as potentially supporting debuginfod in the future via build-id.
This commit is contained in:
@ -45,6 +45,8 @@ SYSPROF_AVAILABLE_IN_ALL
|
||||
guint64 sysprof_document_mmap_get_file_offset (SysprofDocumentMmap *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
const char *sysprof_document_mmap_get_file (SysprofDocumentMmap *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
const char *sysprof_document_mmap_get_build_id (SysprofDocumentMmap *self);
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SysprofDocumentMmap, g_object_unref)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user