|
@@ -192,6 +192,7 @@ static u64 intel_pt_default_config(struct perf_pmu *intel_pt_pmu)
|
|
int psb_cyc, psb_periods, psb_period;
|
|
int psb_cyc, psb_periods, psb_period;
|
|
int pos = 0;
|
|
int pos = 0;
|
|
u64 config;
|
|
u64 config;
|
|
|
|
+ char c;
|
|
|
|
|
|
pos += scnprintf(buf + pos, sizeof(buf) - pos, "tsc");
|
|
pos += scnprintf(buf + pos, sizeof(buf) - pos, "tsc");
|
|
|
|
|
|
@@ -225,6 +226,10 @@ static u64 intel_pt_default_config(struct perf_pmu *intel_pt_pmu)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (perf_pmu__scan_file(intel_pt_pmu, "format/pt", "%c", &c) == 1 &&
|
|
|
|
+ perf_pmu__scan_file(intel_pt_pmu, "format/branch", "%c", &c) == 1)
|
|
|
|
+ pos += scnprintf(buf + pos, sizeof(buf) - pos, ",pt,branch");
|
|
|
|
+
|
|
pr_debug2("%s default config: %s\n", intel_pt_pmu->name, buf);
|
|
pr_debug2("%s default config: %s\n", intel_pt_pmu->name, buf);
|
|
|
|
|
|
intel_pt_parse_terms(&intel_pt_pmu->format, buf, &config);
|
|
intel_pt_parse_terms(&intel_pt_pmu->format, buf, &config);
|