mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof: add control structure for mmap2 events
This commit is contained in:
@ -75,6 +75,35 @@ typedef struct _SysprofPerfEventMmap
|
|||||||
} SysprofPerfEventMmap
|
} SysprofPerfEventMmap
|
||||||
SYSPROF_ALIGNED_END(1);
|
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)
|
SYSPROF_ALIGNED_BEGIN(1)
|
||||||
typedef struct _SysprofPerfEventCallchain
|
typedef struct _SysprofPerfEventCallchain
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user