When CYC packets are not available, it is still possible to count cycles using TSC/TMA/MTC timestamps. As the timestamp increments in TSC ticks, convert to CPU cycles using the current core-to-bus ratio. Do not accumulate cycles when control flow packet generation is not enabled, nor when time has been "lost", typically due to mwait, which is indicated by a TSC/TMA packet that is not part of PSB+. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: http://lkml.kernel.org/r/20190520113728.14389-12-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> |
||
|---|---|---|
| .. | ||
| Build | ||
| gen-insn-attr-x86.awk | ||
| inat.c | ||
| inat.h | ||
| inat_types.h | ||
| insn.c | ||
| insn.h | ||
| intel-pt-decoder.c | ||
| intel-pt-decoder.h | ||
| intel-pt-insn-decoder.c | ||
| intel-pt-insn-decoder.h | ||
| intel-pt-log.c | ||
| intel-pt-log.h | ||
| intel-pt-pkt-decoder.c | ||
| intel-pt-pkt-decoder.h | ||
| x86-opcode-map.txt | ||