|
@@ -203,19 +203,18 @@ static int cs_etm_recording_options(struct auxtrace_record *itr,
|
|
pr_debug2("%s snapshot size: %zu\n", CORESIGHT_ETM_PMU_NAME,
|
|
pr_debug2("%s snapshot size: %zu\n", CORESIGHT_ETM_PMU_NAME,
|
|
opts->auxtrace_snapshot_size);
|
|
opts->auxtrace_snapshot_size);
|
|
|
|
|
|
- if (cs_etm_evsel) {
|
|
|
|
- /*
|
|
|
|
- * To obtain the auxtrace buffer file descriptor, the auxtrace
|
|
|
|
- * event must come first.
|
|
|
|
- */
|
|
|
|
- perf_evlist__to_front(evlist, cs_etm_evsel);
|
|
|
|
- /*
|
|
|
|
- * In the case of per-cpu mmaps, we need the CPU on the
|
|
|
|
- * AUX event.
|
|
|
|
- */
|
|
|
|
- if (!cpu_map__empty(cpus))
|
|
|
|
- perf_evsel__set_sample_bit(cs_etm_evsel, CPU);
|
|
|
|
- }
|
|
|
|
|
|
+ /*
|
|
|
|
+ * To obtain the auxtrace buffer file descriptor, the auxtrace
|
|
|
|
+ * event must come first.
|
|
|
|
+ */
|
|
|
|
+ perf_evlist__to_front(evlist, cs_etm_evsel);
|
|
|
|
+
|
|
|
|
+ /*
|
|
|
|
+ * In the case of per-cpu mmaps, we need the CPU on the
|
|
|
|
+ * AUX event.
|
|
|
|
+ */
|
|
|
|
+ if (!cpu_map__empty(cpus))
|
|
|
|
+ perf_evsel__set_sample_bit(cs_etm_evsel, CPU);
|
|
|
|
|
|
/* Add dummy event to keep tracking */
|
|
/* Add dummy event to keep tracking */
|
|
if (opts->full_auxtrace) {
|
|
if (opts->full_auxtrace) {
|