linux_dsm_epyc7002/tools/perf/util/intel-pt-decoder
Adrian Hunter 3f05516758 perf intel-pt: Accumulate cycle count from TSC/TMA/MTC packets
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>
2019-06-05 09:47:56 -03:00
..
Build perf tools: Rename build libperf to perf 2019-02-14 15:18:08 -03:00
gen-insn-attr-x86.awk License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
inat_types.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
inat.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
inat.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
insn.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
insn.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
intel-pt-decoder.c perf intel-pt: Accumulate cycle count from TSC/TMA/MTC packets 2019-06-05 09:47:56 -03:00
intel-pt-decoder.h perf intel-pt: Accumulate cycle count from CYC packets 2019-06-05 09:47:54 -03:00
intel-pt-insn-decoder.c perf script: Fix LBR skid dump problems in brstackinsn 2018-12-28 16:33:02 -03:00
intel-pt-insn-decoder.h perf intel-pt/bts: Tidy instruction buffer size usage 2016-10-24 10:31:32 -03:00
intel-pt-log.c perf intel-pt: Add more event information to debug log 2018-11-05 14:53:37 -03:00
intel-pt-log.h perf intel-pt: Add more event information to debug log 2018-11-05 14:53:37 -03:00
intel-pt-pkt-decoder.c perf intel-pt: Fix packet decoding of CYC packets 2018-06-25 11:59:36 -03:00
intel-pt-pkt-decoder.h perf intel-pt: Add decoder support for ptwrite and power event packets 2017-06-21 11:35:50 -03:00
x86-opcode-map.txt x86/decoder: Fix and update the opcodes map 2017-12-15 13:45:20 +01:00