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

perf tools: Define Intel PT iflag synthesized event

Similar to other Intel PT synth events, define a structure to hold
information about a change to the interrupt flag.
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-11-adrian.hunter@intel.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent edb4d843
...@@ -183,6 +183,7 @@ enum perf_synth_id { ...@@ -183,6 +183,7 @@ enum perf_synth_id {
PERF_SYNTH_INTEL_CBR, PERF_SYNTH_INTEL_CBR,
PERF_SYNTH_INTEL_PSB, PERF_SYNTH_INTEL_PSB,
PERF_SYNTH_INTEL_EVT, PERF_SYNTH_INTEL_EVT,
PERF_SYNTH_INTEL_IFLAG_CHG,
}; };
/* /*
...@@ -308,6 +309,18 @@ struct perf_synth_intel_evt { ...@@ -308,6 +309,18 @@ struct perf_synth_intel_evt {
struct perf_synth_intel_evd evd[]; struct perf_synth_intel_evd evd[];
}; };
struct perf_synth_intel_iflag_chg {
u32 padding;
union {
struct {
u32 iflag : 1,
via_branch : 1;
};
u32 flags;
};
u64 branch_ip; /* If via_branch */
};
/* /*
* 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