diff options
Diffstat (limited to 'tools/perf/tests/parse-events.c')
-rw-r--r-- | tools/perf/tests/parse-events.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/perf/tests/parse-events.c b/tools/perf/tests/parse-events.c index 48114d164e9f..3cbd10496087 100644 --- a/tools/perf/tests/parse-events.c +++ b/tools/perf/tests/parse-events.c | |||
@@ -2,7 +2,7 @@ | |||
2 | #include "parse-events.h" | 2 | #include "parse-events.h" |
3 | #include "evsel.h" | 3 | #include "evsel.h" |
4 | #include "evlist.h" | 4 | #include "evlist.h" |
5 | #include "sysfs.h" | 5 | #include "fs.h" |
6 | #include <lk/debugfs.h> | 6 | #include <lk/debugfs.h> |
7 | #include "tests.h" | 7 | #include "tests.h" |
8 | #include <linux/hw_breakpoint.h> | 8 | #include <linux/hw_breakpoint.h> |
@@ -441,9 +441,8 @@ static int test__checkevent_pmu_name(struct perf_evlist *evlist) | |||
441 | 441 | ||
442 | static int test__checkevent_pmu_events(struct perf_evlist *evlist) | 442 | static int test__checkevent_pmu_events(struct perf_evlist *evlist) |
443 | { | 443 | { |
444 | struct perf_evsel *evsel; | 444 | struct perf_evsel *evsel = perf_evlist__first(evlist); |
445 | 445 | ||
446 | evsel = list_entry(evlist->entries.next, struct perf_evsel, node); | ||
447 | TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->nr_entries); | 446 | TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->nr_entries); |
448 | TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->attr.type); | 447 | TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->attr.type); |
449 | TEST_ASSERT_VAL("wrong exclude_user", | 448 | TEST_ASSERT_VAL("wrong exclude_user", |
@@ -1456,7 +1455,7 @@ static int test_pmu(void) | |||
1456 | int ret; | 1455 | int ret; |
1457 | 1456 | ||
1458 | snprintf(path, PATH_MAX, "%s/bus/event_source/devices/cpu/format/", | 1457 | snprintf(path, PATH_MAX, "%s/bus/event_source/devices/cpu/format/", |
1459 | sysfs_find_mountpoint()); | 1458 | sysfs__mountpoint()); |
1460 | 1459 | ||
1461 | ret = stat(path, &st); | 1460 | ret = stat(path, &st); |
1462 | if (ret) | 1461 | if (ret) |
@@ -1473,7 +1472,7 @@ static int test_pmu_events(void) | |||
1473 | int ret; | 1472 | int ret; |
1474 | 1473 | ||
1475 | snprintf(path, PATH_MAX, "%s/bus/event_source/devices/cpu/events/", | 1474 | snprintf(path, PATH_MAX, "%s/bus/event_source/devices/cpu/events/", |
1476 | sysfs_find_mountpoint()); | 1475 | sysfs__mountpoint()); |
1477 | 1476 | ||
1478 | ret = stat(path, &st); | 1477 | ret = stat(path, &st); |
1479 | if (ret) { | 1478 | if (ret) { |