|
@@ -1309,6 +1309,14 @@ static int test__checkevent_config_cache(struct perf_evlist *evlist)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
+static int test__intel_pt(struct perf_evlist *evlist)
|
|
|
+{
|
|
|
+ struct perf_evsel *evsel = perf_evlist__first(evlist);
|
|
|
+
|
|
|
+ TEST_ASSERT_VAL("wrong name setting", strcmp(evsel->name, "intel_pt//u") == 0);
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
static int count_tracepoints(void)
|
|
|
{
|
|
|
struct dirent *events_ent;
|
|
@@ -1637,6 +1645,11 @@ static struct evlist_test test__events[] = {
|
|
|
.check = test__checkevent_config_cache,
|
|
|
.id = 51,
|
|
|
},
|
|
|
+ {
|
|
|
+ .name = "intel_pt//u",
|
|
|
+ .check = test__intel_pt,
|
|
|
+ .id = 52,
|
|
|
+ },
|
|
|
};
|
|
|
|
|
|
static struct evlist_test test__events_pmu[] = {
|