mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof: add union for perf "lost" records
This commit is contained in:
@ -132,6 +132,15 @@ typedef struct _SysprofPerfEventTracepoint
|
|||||||
} SysprofPerfEventTracepoint
|
} SysprofPerfEventTracepoint
|
||||||
SYSPROF_ALIGNED_END(1);
|
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)
|
SYSPROF_ALIGNED_BEGIN(1)
|
||||||
typedef union _SysprofPerfEvent
|
typedef union _SysprofPerfEvent
|
||||||
{
|
{
|
||||||
@ -143,6 +152,7 @@ typedef union _SysprofPerfEvent
|
|||||||
SysprofPerfEventMmap2 mmap2;
|
SysprofPerfEventMmap2 mmap2;
|
||||||
SysprofPerfEventCallchain callchain;
|
SysprofPerfEventCallchain callchain;
|
||||||
SysprofPerfEventTracepoint tracepoint;
|
SysprofPerfEventTracepoint tracepoint;
|
||||||
|
SysprofPerfEventLost lost;
|
||||||
guint8 raw[0];
|
guint8 raw[0];
|
||||||
} SysprofPerfEvent
|
} SysprofPerfEvent
|
||||||
SYSPROF_ALIGNED_END(1);
|
SYSPROF_ALIGNED_END(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user