Em Wed, Jun 14, 2017 at 10:53:40AM +0800, Jin Yao escreveu:Hi Arnaldo,
Macro fusion merges two instructions to a single micro-op. Inteldoing it as a weak function that will be overriden by the host arch
core platform performs this hardware optimization under limited
circumstances. For example, CMP + JCC can be "fused" and executed
/retired together. While with sampling this can result in the
sample sometimes being on the JCC and sometimes on the CMP.
So for the fused instruction pair, they could be considered
together.
doesn't work, as we also support cross-annotation. So you have to take
into account perf_evsel__env_arch(evsel), etc.
Please search for perf_evsel__env_arch(evsel) in the annotation source
files to see how it is used.
- Arnaldo