Commit edb4d843 authored by Adrian Hunter's avatar Adrian Hunter Committed by Arnaldo Carvalho de Melo

perf tools: Define Intel PT CFE (Control Flow Event) / EVD (Event Data) event

Similar to other Intel PT synth events, define structures to hold CFE
and EVD data.
Signed-off-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: https://lore.kernel.org/r/20220124084201.2699795-10-adrian.hunter@intel.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent cf0c98e2
...@@ -182,6 +182,7 @@ enum perf_synth_id { ...@@ -182,6 +182,7 @@ enum perf_synth_id {
PERF_SYNTH_INTEL_PWRX, PERF_SYNTH_INTEL_PWRX,
PERF_SYNTH_INTEL_CBR, PERF_SYNTH_INTEL_CBR,
PERF_SYNTH_INTEL_PSB, PERF_SYNTH_INTEL_PSB,
PERF_SYNTH_INTEL_EVT,
}; };
/* /*
...@@ -280,6 +281,33 @@ struct perf_synth_intel_psb { ...@@ -280,6 +281,33 @@ struct perf_synth_intel_psb {
u64 offset; u64 offset;
}; };
struct perf_synth_intel_evd {
union {
struct {
u8 evd_type;
u8 reserved[7];
};
u64 et;
};
u64 payload;
};
/* Intel PT Event Trace */
struct perf_synth_intel_evt {
u32 padding;
union {
struct {
u32 type : 5,
reserved : 2,
ip : 1,
vector : 8,
evd_cnt : 16;
};
u32 cfe;
};
struct perf_synth_intel_evd evd[];
};
/* /*
* raw_data is always 4 bytes from an 8-byte boundary, so subtract 4 to get * raw_data is always 4 bytes from an 8-byte boundary, so subtract 4 to get
* 8-byte alignment. * 8-byte alignment.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment