|
@@ -418,14 +418,14 @@ static int test__checkevent_pmu_name(struct perf_evlist *evlist)
|
|
|
TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->nr_entries);
|
|
|
TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->attr.type);
|
|
|
TEST_ASSERT_VAL("wrong config", 1 == evsel->attr.config);
|
|
|
- TEST_ASSERT_VAL("wrong name", !strcmp(evsel->name, "krava"));
|
|
|
+ TEST_ASSERT_VAL("wrong name", !strcmp(perf_evsel__name(evsel), "krava"));
|
|
|
|
|
|
/* cpu/config=2/" */
|
|
|
evsel = list_entry(evsel->node.next, struct perf_evsel, node);
|
|
|
TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->nr_entries);
|
|
|
TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->attr.type);
|
|
|
TEST_ASSERT_VAL("wrong config", 2 == evsel->attr.config);
|
|
|
- TEST_ASSERT_VAL("wrong name", !strcmp(evsel->name, "raw 0x2"));
|
|
|
+ TEST_ASSERT_VAL("wrong name", !strcmp(perf_evsel__name(evsel), "raw 0x2"));
|
|
|
|
|
|
return 0;
|
|
|
}
|