linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] perf tools: Add hint for 'Too many events are opened.' error message
@ 2015-05-25 20:51 Jiri Olsa
  2015-05-27 23:30 ` Arnaldo Carvalho de Melo
  2015-05-28  9:31 ` [tip:perf/core] perf tools: Add hint for ' Too " tip-bot for Jiri Olsa
  0 siblings, 2 replies; 3+ messages in thread
From: Jiri Olsa @ 2015-05-25 20:51 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo
  Cc: Michael Petlan, lkml, Peter Zijlstra, Paul Mackerras,
	David Ahern, Namhyung Kim, Ingo Molnar

Enhancing the 'Too many events are opened.' error message
with hint to use use 'ulimit -n <limit>' command.

Before:
  $ perf record -e 'sched:*,syscalls:*' ls
  Error:
  Too many events are opened.
  Try again after reducing the number of events.

Now:
  $ perf record -e 'sched:*,syscalls:*' ls
  Error:
  Too many events are opened.
  Probably the maximum number of open file descriptors has been reached.
  Hint: Try again after reducing the number of events.
  Hint: Try increasing the limit with 'ulimit -n <limit>'

Cc: Michael Petlan <mpetlan@redhat.com>
Link: http://lkml.kernel.org/n/tip-vfe0a2oxr4ga4ipl3nd90vk6@git.kernel.org
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
---
 tools/perf/util/evsel.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c
index c886b9f7a48d..a3e36fc634dc 100644
--- a/tools/perf/util/evsel.c
+++ b/tools/perf/util/evsel.c
@@ -2149,7 +2149,9 @@ int perf_evsel__open_strerror(struct perf_evsel *evsel, struct target *target,
 	case EMFILE:
 		return scnprintf(msg, size, "%s",
 			 "Too many events are opened.\n"
-			 "Try again after reducing the number of events.");
+			 "Probably the maximum number of open file descriptors has been reached.\n"
+			 "Hint: Try again after reducing the number of events.\n"
+			 "Hint: Try increasing the limit with 'ulimit -n <limit>'");
 	case ENODEV:
 		if (target->cpu_list)
 			return scnprintf(msg, size, "%s",
-- 
1.9.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] perf tools: Add hint for 'Too many events are opened.' error message
  2015-05-25 20:51 [PATCH] perf tools: Add hint for 'Too many events are opened.' error message Jiri Olsa
@ 2015-05-27 23:30 ` Arnaldo Carvalho de Melo
  2015-05-28  9:31 ` [tip:perf/core] perf tools: Add hint for ' Too " tip-bot for Jiri Olsa
  1 sibling, 0 replies; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2015-05-27 23:30 UTC (permalink / raw)
  To: Jiri Olsa
  Cc: Michael Petlan, lkml, Peter Zijlstra, Paul Mackerras,
	David Ahern, Namhyung Kim, Ingo Molnar

Em Mon, May 25, 2015 at 10:51:54PM +0200, Jiri Olsa escreveu:
> Enhancing the 'Too many events are opened.' error message
> with hint to use use 'ulimit -n <limit>' command.

<SNIP>

> Now:
>   $ perf record -e 'sched:*,syscalls:*' ls
>   Error:
>   Too many events are opened.
>   Probably the maximum number of open file descriptors has been reached.
>   Hint: Try again after reducing the number of events.
>   Hint: Try increasing the limit with 'ulimit -n <limit>'

Thanks, applied.

- Arnaldo
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tip:perf/core] perf tools: Add hint for ' Too many events are opened.' error message
  2015-05-25 20:51 [PATCH] perf tools: Add hint for 'Too many events are opened.' error message Jiri Olsa
  2015-05-27 23:30 ` Arnaldo Carvalho de Melo
@ 2015-05-28  9:31 ` tip-bot for Jiri Olsa
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Jiri Olsa @ 2015-05-28  9:31 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: mingo, hpa, namhyung, paulus, jolsa, a.p.zijlstra, tglx, mpetlan,
	acme, linux-kernel, dsahern

Commit-ID:  18ffdfe8e98f861a39590ef2374ad51fc963567e
Gitweb:     http://git.kernel.org/tip/18ffdfe8e98f861a39590ef2374ad51fc963567e
Author:     Jiri Olsa <jolsa@kernel.org>
AuthorDate: Mon, 25 May 2015 22:51:54 +0200
Committer:  Arnaldo Carvalho de Melo <acme@redhat.com>
CommitDate: Wed, 27 May 2015 20:28:37 -0300

perf tools: Add hint for 'Too many events are opened.' error message

Enhancing the 'Too many events are opened.' error message with hint to
use use 'ulimit -n <limit>' command.

Before:

  $ perf record -e 'sched:*,syscalls:*' ls
  Error:
  Too many events are opened.
  Try again after reducing the number of events.

Now:

  $ perf record -e 'sched:*,syscalls:*' ls
  Error:
  Too many events are opened.
  Probably the maximum number of open file descriptors has been reached.
  Hint: Try again after reducing the number of events.
  Hint: Try increasing the limit with 'ulimit -n <limit>'

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1432587114-14924-1-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
 tools/perf/util/evsel.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c
index c886b9f..a3e36fc 100644
--- a/tools/perf/util/evsel.c
+++ b/tools/perf/util/evsel.c
@@ -2149,7 +2149,9 @@ int perf_evsel__open_strerror(struct perf_evsel *evsel, struct target *target,
 	case EMFILE:
 		return scnprintf(msg, size, "%s",
 			 "Too many events are opened.\n"
-			 "Try again after reducing the number of events.");
+			 "Probably the maximum number of open file descriptors has been reached.\n"
+			 "Hint: Try again after reducing the number of events.\n"
+			 "Hint: Try increasing the limit with 'ulimit -n <limit>'");
 	case ENODEV:
 		if (target->cpu_list)
 			return scnprintf(msg, size, "%s",

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-05-28  9:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-25 20:51 [PATCH] perf tools: Add hint for 'Too many events are opened.' error message Jiri Olsa
2015-05-27 23:30 ` Arnaldo Carvalho de Melo
2015-05-28  9:31 ` [tip:perf/core] perf tools: Add hint for ' Too " tip-bot for Jiri Olsa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).