Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349900
b: refs/heads/master
c: c5d3d50
h: refs/heads/master
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Dec 10, 2012
1 parent 149a3ea commit de6aa16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7be5ebe8767eaa482e18f566de5f56c1519abf59
refs/heads/master: c5d3d50da2e32441d65d63ac27a67197998668c5
4 changes: 3 additions & 1 deletion trunk/tools/perf/tests/mmap-basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ int test__basic_mmap(void)
goto out_munmap;
}

err = -1;
evsel = perf_evlist__id2evsel(evlist, sample.id);
if (evsel == NULL) {
pr_debug("event with id %" PRIu64
Expand All @@ -137,16 +138,17 @@ int test__basic_mmap(void)
nr_events[evsel->idx]++;
}

err = 0;
list_for_each_entry(evsel, &evlist->entries, node) {
if (nr_events[evsel->idx] != expected_nr_events[evsel->idx]) {
pr_debug("expected %d %s events, got %d\n",
expected_nr_events[evsel->idx],
perf_evsel__name(evsel), nr_events[evsel->idx]);
err = -1;
goto out_munmap;
}
}

err = 0;
out_munmap:
perf_evlist__munmap(evlist);
out_close_fd:
Expand Down

0 comments on commit de6aa16

Please sign in to comment.