projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5da3b23
)
perf intel-pt: Fix transactions_sample_type
author
Adrian Hunter
<adrian.hunter@intel.com>
Fri, 26 May 2017 08:17:18 +0000
(11:17 +0300)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Wed, 21 Jun 2017 14:35:52 +0000
(11:35 -0300)
'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>
tools/perf/util/intel-pt.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/intel-pt.c
b/tools/perf/util/intel-pt.c
index 3ae03f92025336503ba7ebb328430b074253a146..6df836469f2b4987651c8197f4bfafc823819c36 100644
(file)
--- 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,
return err;
}
pt->sample_transactions = true;
+ pt->transactions_sample_type = attr.sample_type;
pt->transactions_id = id;
id += 1;
evlist__for_each_entry(evlist, evsel) {