perf top: Add error message for EMFILE
authorNamhyung Kim <namhyung@gmail.com>
Sat, 7 Jan 2012 17:25:27 +0000 (02:25 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sun, 8 Jan 2012 15:26:11 +0000 (13:26 -0200)
commitcdce445906852d90efdc773ca7ba460e6e41664d
treeb09c6c99908c573f4c72cf1c30e5078eb0413c96
parentc30ab8aa084843159b4679e9a3d7f63187d5906a
perf top: Add error message for EMFILE

When a user tries to open so many events, perf_event_open syscall may
fail with EMFILE. Provide advise for that case.

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1325957132-10600-3-git-send-email-namhyung@gmail.com
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-top.c