Skip to content

Commit 167e33c

Browse files
author
Ingo Molnar
committed
Merge branch 'perf/urgent' of git://github.com/acmel/linux into perf/urgent
2 parents 86b47c2 + 6340cfe commit 167e33c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tools/perf/builtin-stat.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,8 @@ static int run_perf_stat(int argc __used, const char **argv)
463463

464464
list_for_each_entry(counter, &evsel_list->entries, node) {
465465
if (create_perf_stat_counter(counter, first) < 0) {
466-
if (errno == EINVAL || errno == ENOSYS || errno == ENOENT) {
466+
if (errno == EINVAL || errno == ENOSYS ||
467+
errno == ENOENT || errno == EOPNOTSUPP) {
467468
if (verbose)
468469
ui__warning("%s event is not supported by the kernel.\n",
469470
event_name(counter));

tools/perf/util/header.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ static int write_event_desc(int fd, struct perf_header *h __used,
388388
/*
389389
* write event string as passed on cmdline
390390
*/
391-
ret = do_write_string(fd, attr->name);
391+
ret = do_write_string(fd, event_name(attr));
392392
if (ret < 0)
393393
return ret;
394394
/*

0 commit comments

Comments
 (0)