Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350011
b: refs/heads/master
c: 0de233b
h: refs/heads/master
i:
  350009: e8b8794
  350007: 2a13d54
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Jan 31, 2013
1 parent 417d307 commit d4f7e72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 11859e821761e9738c4d8a0e7d6ca1cc2e0d37e8
refs/heads/master: 0de233b9c4f8c83b2cb655bfdbec306c8da81199
6 changes: 4 additions & 2 deletions trunk/tools/perf/builtin-top.c
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@ int cmd_top(int argc, const char **argv, const char *prefix __maybe_unused)
if (!top.evlist->nr_entries &&
perf_evlist__add_default(top.evlist) < 0) {
ui__error("Not enough memory for event selector list\n");
return -ENOMEM;
goto out_delete_maps;
}

symbol_conf.nr_events = top.evlist->nr_entries;
Expand All @@ -1187,7 +1187,7 @@ int cmd_top(int argc, const char **argv, const char *prefix __maybe_unused)
} else {
ui__error("frequency and count are zero, aborting\n");
status = -EINVAL;
goto out_delete_evlist;
goto out_delete_maps;
}

top.sym_evsel = perf_evlist__first(top.evlist);
Expand Down Expand Up @@ -1220,6 +1220,8 @@ int cmd_top(int argc, const char **argv, const char *prefix __maybe_unused)

status = __cmd_top(&top);

out_delete_maps:
perf_evlist__delete_maps(top.evlist);
out_delete_evlist:
perf_evlist__delete(top.evlist);

Expand Down

0 comments on commit d4f7e72

Please sign in to comment.