|
@@ -2449,6 +2449,18 @@ static int add_default_attributes(void)
|
|
|
return 0;
|
|
|
|
|
|
if (transaction_run) {
|
|
|
+ /* Handle -T as -M transaction. Once platform specific metrics
|
|
|
+ * support has been added to the json files, all archictures
|
|
|
+ * will use this approach. To determine transaction support
|
|
|
+ * on an architecture test for such a metric name.
|
|
|
+ */
|
|
|
+ if (metricgroup__has_metric("transaction")) {
|
|
|
+ struct option opt = { .value = &evsel_list };
|
|
|
+
|
|
|
+ return metricgroup__parse_groups(&opt, "transaction",
|
|
|
+ &metric_events);
|
|
|
+ }
|
|
|
+
|
|
|
if (pmu_have_event("cpu", "cycles-ct") &&
|
|
|
pmu_have_event("cpu", "el-start"))
|
|
|
err = parse_events(evsel_list, transaction_attrs,
|