libsysprof: add union for perf "lost" records

This commit is contained in:
Christian Hergert
2024-10-24 12:42:55 -07:00
parent ef32a3c921
commit 2838024227

View File

@ -132,6 +132,15 @@ typedef struct _SysprofPerfEventTracepoint
} SysprofPerfEventTracepoint
SYSPROF_ALIGNED_END(1);
SYSPROF_ALIGNED_BEGIN(1)
typedef struct _SysprofPerfEventLost
{
struct perf_event_header header;
guint64 identifier;
guint64 lost;
} SysprofPerfEventLost
SYSPROF_ALIGNED_END(1);
SYSPROF_ALIGNED_BEGIN(1)
typedef union _SysprofPerfEvent
{
@ -143,6 +152,7 @@ typedef union _SysprofPerfEvent
SysprofPerfEventMmap2 mmap2;
SysprofPerfEventCallchain callchain;
SysprofPerfEventTracepoint tracepoint;
SysprofPerfEventLost lost;
guint8 raw[0];
} SysprofPerfEvent
SYSPROF_ALIGNED_END(1);