Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 245490
b: refs/heads/master
c: c63ca0c
h: refs/heads/master
v: v3
  • Loading branch information
David Ahern authored and Ingo Molnar committed Apr 29, 2011
1 parent b0e1a3d commit e16e926
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 947b4ad1d198b7303ecc961f4939a331be0c48f0
refs/heads/master: c63ca0c01d73563d4e2ab174bb3dd1e5efb907e6
6 changes: 5 additions & 1 deletion trunk/tools/perf/builtin-stat.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,12 @@ static int run_perf_stat(int argc __used, const char **argv)

list_for_each_entry(counter, &evsel_list->entries, node) {
if (create_perf_stat_counter(counter) < 0) {
if (errno == EINVAL || errno == ENOSYS || errno == ENOENT)
if (errno == EINVAL || errno == ENOSYS || errno == ENOENT) {
if (verbose)
ui__warning("%s event is not supported by the kernel.\n",
event_name(counter));
continue;
}

if (errno == EPERM || errno == EACCES) {
error("You may not have permission to collect %sstats.\n"
Expand Down

0 comments on commit e16e926

Please sign in to comment.