|
@@ -1322,18 +1322,14 @@ static int intel_pt_sample(struct intel_pt_queue *ptq)
|
|
ptq->have_sample = false;
|
|
ptq->have_sample = false;
|
|
|
|
|
|
if (pt->sample_instructions &&
|
|
if (pt->sample_instructions &&
|
|
- (state->type & INTEL_PT_INSTRUCTION) &&
|
|
|
|
- (!pt->synth_opts.initial_skip ||
|
|
|
|
- pt->num_events++ >= pt->synth_opts.initial_skip)) {
|
|
|
|
|
|
+ (state->type & INTEL_PT_INSTRUCTION)) {
|
|
err = intel_pt_synth_instruction_sample(ptq);
|
|
err = intel_pt_synth_instruction_sample(ptq);
|
|
if (err)
|
|
if (err)
|
|
return err;
|
|
return err;
|
|
}
|
|
}
|
|
|
|
|
|
if (pt->sample_transactions &&
|
|
if (pt->sample_transactions &&
|
|
- (state->type & INTEL_PT_TRANSACTION) &&
|
|
|
|
- (!pt->synth_opts.initial_skip ||
|
|
|
|
- pt->num_events++ >= pt->synth_opts.initial_skip)) {
|
|
|
|
|
|
+ (state->type & INTEL_PT_TRANSACTION)) {
|
|
err = intel_pt_synth_transaction_sample(ptq);
|
|
err = intel_pt_synth_transaction_sample(ptq);
|
|
if (err)
|
|
if (err)
|
|
return err;
|
|
return err;
|