libsysprof-analyze: include inode when creating ELF

We want to know the inode of the FD that was mmaped so that we can check
the requested inode when processing the address map from a particular
process.
This commit is contained in:
Christian Hergert
2023-05-19 15:44:26 -07:00
parent f1f0261486
commit 1833fabd62
3 changed files with 36 additions and 2 deletions

View File

@ -150,6 +150,7 @@ sysprof_elf_init (SysprofElf *self)
SysprofElf *
sysprof_elf_new (const char *filename,
GMappedFile *mapped_file,
guint64 file_inode,
GError **error)
{
SysprofElf *self;
@ -163,6 +164,7 @@ sysprof_elf_new (const char *filename,
self = g_object_new (SYSPROF_TYPE_ELF, NULL);
self->file = g_strdup (filename);
self->parser = g_steal_pointer (&parser);
self->file_inode = file_inode;
return self;
}