Re: [PATCH 2/2] perf_counter: detect debugfs location

From: Ray Lee
Date: Tue Jul 21 2009 - 12:35:39 EST


On Tue, Jul 21, 2009 at 9:20 AM, Jason Baron <jbaron@xxxxxxxxxx> wrote:
>
> Search for the debugfs filesystem in /proc/mounts, but also allows the user to
> specify '--debugfs-dir=blah' or set the environment variable: 'PERF_DIR_DEBUGFS'

> -static char default_debugfs_path[] = "/sys/kernel/debug/tracing/events";

There are server systems out there that run with thousands of mounts.
It would be kinder to the users of those systems (ie, faster perf
startup) if you only went rooting around /proc/mounts if opening the
default location failed.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/