aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2017-05-26 04:17:18 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-06-21 10:35:52 -0400
commit2116074898ff9ff093963adc0fefcabbbbd7ec41 (patch)
tree981f3575bb1ce4c94d0bc57c876ff17db20780a8 /tools
parent5da3b23b3b03d34fbb8cb9947c1a99ea77c2203f (diff)
perf intel-pt: Fix transactions_sample_type
'transactions_sample_type' is needed to correctly inject transactions samples but it was not being set. Set it from the event sample type. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <ak@linux.intel.com> Link: http://lkml.kernel.org/r/1495786658-18063-18-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/util/intel-pt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/intel-pt.c b/tools/perf/util/intel-pt.c
index 3ae03f920253..6df836469f2b 100644
--- a/tools/perf/util/intel-pt.c
+++ b/tools/perf/util/intel-pt.c
@@ -2035,6 +2035,7 @@ static int intel_pt_synth_events(struct intel_pt *pt,
2035 return err; 2035 return err;
2036 } 2036 }
2037 pt->sample_transactions = true; 2037 pt->sample_transactions = true;
2038 pt->transactions_sample_type = attr.sample_type;
2038 pt->transactions_id = id; 2039 pt->transactions_id = id;
2039 id += 1; 2040 id += 1;
2040 evlist__for_each_entry(evlist, evsel) { 2041 evlist__for_each_entry(evlist, evsel) {