Skip to content

Commit

Permalink
Merge branch 'perf/urgent' of git://github.com/acmel/linux into perf/…
Browse files Browse the repository at this point in the history
…urgent
  • Loading branch information
Ingo Molnar committed Dec 7, 2011
2 parents 86b47c2 + 6340cfe commit 167e33c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tools/perf/builtin-stat.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,8 @@ 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, first) < 0) {
if (errno == EINVAL || errno == ENOSYS || errno == ENOENT) {
if (errno == EINVAL || errno == ENOSYS ||
errno == ENOENT || errno == EOPNOTSUPP) {
if (verbose)
ui__warning("%s event is not supported by the kernel.\n",
event_name(counter));
Expand Down
2 changes: 1 addition & 1 deletion tools/perf/util/header.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ static int write_event_desc(int fd, struct perf_header *h __used,
/*
* write event string as passed on cmdline
*/
ret = do_write_string(fd, attr->name);
ret = do_write_string(fd, event_name(attr));
if (ret < 0)
return ret;
/*
Expand Down

0 comments on commit 167e33c

Please sign in to comment.