aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/intel-bts.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/intel-bts.c')
-rw-r--r--tools/perf/util/intel-bts.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/perf/util/intel-bts.c b/tools/perf/util/intel-bts.c
index 5325e65f9711..72db2744876d 100644
--- a/tools/perf/util/intel-bts.c
+++ b/tools/perf/util/intel-bts.c
@@ -67,7 +67,6 @@ struct intel_bts {
67 u64 branches_sample_type; 67 u64 branches_sample_type;
68 u64 branches_id; 68 u64 branches_id;
69 size_t branches_event_size; 69 size_t branches_event_size;
70 bool synth_needs_swap;
71 unsigned long num_events; 70 unsigned long num_events;
72}; 71};
73 72
@@ -303,8 +302,7 @@ static int intel_bts_synth_branch_sample(struct intel_bts_queue *btsq,
303 event.sample.header.size = bts->branches_event_size; 302 event.sample.header.size = bts->branches_event_size;
304 ret = perf_event__synthesize_sample(&event, 303 ret = perf_event__synthesize_sample(&event,
305 bts->branches_sample_type, 304 bts->branches_sample_type,
306 0, &sample, 305 0, &sample);
307 bts->synth_needs_swap);
308 if (ret) 306 if (ret)
309 return ret; 307 return ret;
310 } 308 }
@@ -841,8 +839,6 @@ static int intel_bts_synth_events(struct intel_bts *bts,
841 __perf_evsel__sample_size(attr.sample_type); 839 __perf_evsel__sample_size(attr.sample_type);
842 } 840 }
843 841
844 bts->synth_needs_swap = evsel->needs_swap;
845
846 return 0; 842 return 0;
847} 843}
848 844