libsysprof: add control structure for mmap2 events

This commit is contained in:
Christian Hergert
2023-07-24 15:34:35 -07:00
parent 29772e7ac2
commit 5f5868c060

View File

@ -75,6 +75,35 @@ typedef struct _SysprofPerfEventMmap
} SysprofPerfEventMmap
SYSPROF_ALIGNED_END(1);
SYSPROF_ALIGNED_BEGIN(1)
typedef struct _SysprofPerfEventMmap2
{
struct perf_event_header header;
guint32 pid;
guint32 tid;
guint64 addr;
guint64 len;
guint64 pgoff;
union {
struct {
guint32 maj;
guint32 min;
guint64 ino;
guint64 ino_generation;
};
struct {
guint8 build_id_size;
guint8 __reserved_1;
guint16 __reserved_2;
guint8 build_id[20];
};
};
guint32 prot;
guint32 flags;
char filename[0];
} SysprofPerfEventMmap2
SYSPROF_ALIGNED_END(1);
SYSPROF_ALIGNED_BEGIN(1)
typedef struct _SysprofPerfEventCallchain
{