mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
perf-source: fix acquisition of time for comm and mmap events
We were not getting the proper value for time. We need sample_id_all set according to my cursory reading of the core.c in the kernel. Also, the time is aligned to 64-bit (after the comm field).
This commit is contained in:
@ -31,18 +31,6 @@ typedef struct _SpPerfCounter SpPerfCounter;
|
||||
|
||||
#pragma pack(push, 1)
|
||||
|
||||
typedef struct
|
||||
{
|
||||
/*
|
||||
* These fields are available as the suffix only because we have specified
|
||||
* them when creating attributes. Be careful about using them.
|
||||
* Ideally, we would probably switch from using structures overlaid with
|
||||
* casts to a reader design, which knows about the attributes.
|
||||
*/
|
||||
guint32 pid, tid;
|
||||
guint64 time;
|
||||
} SpPerfCounterSuffix;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
struct perf_event_header header;
|
||||
|
||||
Reference in New Issue
Block a user