perf_counter: Detect debugfs location
authorJason Baron <jbaron@redhat.com>
Tue, 21 Jul 2009 18:16:29 +0000 (14:16 -0400)
committerPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 22 Jul 2009 16:05:57 +0000 (18:05 +0200)
commit5beeded123c5befa21f1c6e16219f2a3eb7dd197
tree4ac812126910994516300c53171c7267b97f6f5d
parentf6bdafef2ab911f03321fa83d8da1df99878009e
perf_counter: Detect debugfs location

If "/sys/kernel/debug" is not a debugfs mount point, search for the debugfs
filesystem in /proc/mounts, but also allows the user to specify
'--debugfs-dir=blah' or set the environment variable: 'PERF_DEBUGFS_DIR'

Signed-off-by: Jason Baron <jbaron@redhat.com>
[ also made it probe "/debug" by default ]
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20090721181629.GA3094@redhat.com>
tools/perf/perf.c
tools/perf/util/cache.h
tools/perf/util/parse-events.c
tools/perf/util/parse-events.h
tools/perf/util/string.h