tools lib fs debugfs: Check if debugfs is mounted when handling ENOENT
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 22 Jan 2015 19:35:42 +0000 (16:35 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 22 Jan 2015 20:02:23 +0000 (17:02 -0300)
commitf816b3cc99804a9f771315331deb36abec47f5b4
tree25868dac6f71cf91e6a2b63ef6b565b3632dd112
parent2cc990ba3af4f9511f0d016c73b8163591f890e7
tools lib fs debugfs: Check if debugfs is mounted when handling ENOENT

If debugfs was already mounted, then its a matter of not finding the
tracepoint, tell the user that perhaps a CONFIG_ setting is not enabled.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-6chfytoflyx3jwfqm7ebltu0@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/api/fs/debugfs.c