libsysprof-capture: add map variant with build-id

This allows tacking on suplimental data to the capture with a build-id so
that our SysprofDocumentMmap can read it. The format is @build-id\0 after
the trailing \0 of the filename in a SysprofCaptureMap frame.
This commit is contained in:
Christian Hergert
2023-07-24 17:29:59 -07:00
parent dfd81f1ecb
commit a7fe9abb19
3 changed files with 95 additions and 0 deletions

View File

@ -109,6 +109,17 @@ bool sysprof_capture_writer_add_map (Sy
uint64_t inode,
const char *filename);
SYSPROF_AVAILABLE_IN_ALL
bool sysprof_capture_writer_add_map_with_build_id (SysprofCaptureWriter *self,
int64_t time,
int cpu,
int32_t pid,
uint64_t start,
uint64_t end,
uint64_t offset,
uint64_t inode,
const char *filename,
const char *build_id);
SYSPROF_AVAILABLE_IN_ALL
bool sysprof_capture_writer_add_mark (SysprofCaptureWriter *self,
int64_t time,
int cpu,