perf intel-pt: Synthesize new power and "ptwrite" events
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 30 Jun 2017 08:36:45 +0000 (11:36 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 30 Jun 2017 14:48:28 +0000 (11:48 -0300)
commit3797307576191d7fb4c974cd461188162ac36f33
tree30e9304b9e1580d681981d8ddf1dff21aeb411bd
parent4a9fd4e0effc94b9ec79250946a0054d4dd1a963
perf intel-pt: Synthesize new power and "ptwrite" events

Synthesize new power and ptwrite events.

Power events report changes to C-state but I have also added support
for the existing CBR (core-to-bus ratio) packet and included that
when outputting power events.

The PTWRITE packet is associated with the new "ptwrite" instruction,
which is essentially just a way to stuff a 32 or 64 bit value into the
PT trace.

More details can be found in the patches that add documentation and in
the Intel SDM.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1498811805-2335-1-git-send-email-adrian.hunter@intel.com
[ Copy the description of such packet from the patchkit cover message ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/intel-pt.c