diff options
Diffstat (limited to 'tools/perf/util/intel-pt.c')
-rw-r--r-- | tools/perf/util/intel-pt.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tools/perf/util/intel-pt.c b/tools/perf/util/intel-pt.c index 23f9ba676df0..3773d9c54f45 100644 --- a/tools/perf/util/intel-pt.c +++ b/tools/perf/util/intel-pt.c | |||
@@ -104,8 +104,6 @@ struct intel_pt { | |||
104 | u64 pwrx_id; | 104 | u64 pwrx_id; |
105 | u64 cbr_id; | 105 | u64 cbr_id; |
106 | 106 | ||
107 | bool synth_needs_swap; | ||
108 | |||
109 | u64 tsc_bit; | 107 | u64 tsc_bit; |
110 | u64 mtc_bit; | 108 | u64 mtc_bit; |
111 | u64 mtc_freq_bits; | 109 | u64 mtc_freq_bits; |
@@ -1101,11 +1099,10 @@ static void intel_pt_prep_b_sample(struct intel_pt *pt, | |||
1101 | } | 1099 | } |
1102 | 1100 | ||
1103 | static int intel_pt_inject_event(union perf_event *event, | 1101 | static int intel_pt_inject_event(union perf_event *event, |
1104 | struct perf_sample *sample, u64 type, | 1102 | struct perf_sample *sample, u64 type) |
1105 | bool swapped) | ||
1106 | { | 1103 | { |
1107 | event->header.size = perf_event__sample_event_size(sample, type, 0); | 1104 | event->header.size = perf_event__sample_event_size(sample, type, 0); |
1108 | return perf_event__synthesize_sample(event, type, 0, sample, swapped); | 1105 | return perf_event__synthesize_sample(event, type, 0, sample); |
1109 | } | 1106 | } |
1110 | 1107 | ||
1111 | static inline int intel_pt_opt_inject(struct intel_pt *pt, | 1108 | static inline int intel_pt_opt_inject(struct intel_pt *pt, |
@@ -1115,7 +1112,7 @@ static inline int intel_pt_opt_inject(struct intel_pt *pt, | |||
1115 | if (!pt->synth_opts.inject) | 1112 | if (!pt->synth_opts.inject) |
1116 | return 0; | 1113 | return 0; |
1117 | 1114 | ||
1118 | return intel_pt_inject_event(event, sample, type, pt->synth_needs_swap); | 1115 | return intel_pt_inject_event(event, sample, type); |
1119 | } | 1116 | } |
1120 | 1117 | ||
1121 | static int intel_pt_deliver_synth_b_event(struct intel_pt *pt, | 1118 | static int intel_pt_deliver_synth_b_event(struct intel_pt *pt, |
@@ -2329,8 +2326,6 @@ static int intel_pt_synth_events(struct intel_pt *pt, | |||
2329 | id += 1; | 2326 | id += 1; |
2330 | } | 2327 | } |
2331 | 2328 | ||
2332 | pt->synth_needs_swap = evsel->needs_swap; | ||
2333 | |||
2334 | return 0; | 2329 | return 0; |
2335 | } | 2330 | } |
2336 | 2331 | ||