File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
tools/perf/arch/arm64/util Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ static int arm_spe_recording_options(struct auxtrace_record *itr,
376
376
container_of (itr , struct arm_spe_recording , itr );
377
377
struct evsel * evsel , * tmp ;
378
378
struct perf_cpu_map * cpus = evlist -> core .user_requested_cpus ;
379
-
379
+ bool discard = false;
380
380
int err ;
381
381
382
382
sper -> evlist = evlist ;
@@ -396,10 +396,17 @@ static int arm_spe_recording_options(struct auxtrace_record *itr,
396
396
return 0 ;
397
397
398
398
evlist__for_each_entry_safe (evlist , tmp , evsel ) {
399
- if (evsel__is_aux_event (evsel ))
399
+ if (evsel__is_aux_event (evsel )) {
400
400
arm_spe_setup_evsel (evsel , cpus );
401
+ if (evsel -> core .attr .config &
402
+ perf_pmu__format_bits (evsel -> pmu , "discard" ))
403
+ discard = true;
404
+ }
401
405
}
402
406
407
+ if (discard )
408
+ return 0 ;
409
+
403
410
err = arm_spe_setup_aux_buffer (opts );
404
411
if (err )
405
412
return err ;
You can’t perform that action at this time.
0 commit comments