diff --git a/[refs] b/[refs] index 5beb9c3751ce..177e806e8986 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c30ab8aa084843159b4679e9a3d7f63187d5906a +refs/heads/master: cdce445906852d90efdc773ca7ba460e6e41664d diff --git a/trunk/tools/perf/builtin-top.c b/trunk/tools/perf/builtin-top.c index d89dec90103e..8f80df896038 100644 --- a/trunk/tools/perf/builtin-top.c +++ b/trunk/tools/perf/builtin-top.c @@ -888,6 +888,10 @@ static void perf_top__start_counters(struct perf_top *top) ui__warning("The %s event is not supported.\n", event_name(counter)); goto out_err; + } else if (err == EMFILE) { + ui__warning("Too many events are opened.\n" + "Try again after reducing the number of events\n"); + goto out_err; } ui__warning("The sys_perf_event_open() syscall "