~ubuntu-branches/debian/experimental/linux-tools/experimental

« back to all changes in this revision

Viewing changes to tools/perf/tests/parse-events.c

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-02-02 16:57:49 UTC
  • mfrom: (1.1.10) (0.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20140202165749-tw94o9t1t0a8txk6
Tags: 3.13-1~exp2
Merge changes from sid up to 3.12.6-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#include "parse-events.h"
3
3
#include "evsel.h"
4
4
#include "evlist.h"
5
 
#include "sysfs.h"
 
5
#include "fs.h"
6
6
#include <lk/debugfs.h>
7
7
#include "tests.h"
8
8
#include <linux/hw_breakpoint.h>
441
441
 
442
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
446
        TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->nr_entries);
448
447
        TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->attr.type);
449
448
        TEST_ASSERT_VAL("wrong exclude_user",
1456
1455
        int ret;
1457
1456
 
1458
1457
        snprintf(path, PATH_MAX, "%s/bus/event_source/devices/cpu/format/",
1459
 
                 sysfs_find_mountpoint());
 
1458
                 sysfs__mountpoint());
1460
1459
 
1461
1460
        ret = stat(path, &st);
1462
1461
        if (ret)
1473
1472
        int ret;
1474
1473
 
1475
1474
        snprintf(path, PATH_MAX, "%s/bus/event_source/devices/cpu/events/",
1476
 
                 sysfs_find_mountpoint());
 
1475
                 sysfs__mountpoint());
1477
1476
 
1478
1477
        ret = stat(path, &st);
1479
1478
        if (ret) {