Re: [PATCH 1/5] tools lib fs: Add helper to find mounted file systems

2015-01-25 Thread Steven Rostedt
On Sun, 25 Jan 2015 17:41:00 +0100 Jiri Olsa wrote: > On Sat, Jan 24, 2015 at 01:13:31PM -0500, Steven Rostedt wrote: > > > - debugfs_found = true; > > - > > - return debugfs_mountpoint; > > + return find_mountpoint("debugfs", (long) DEBUGFS_MAGIC, > > + debugfs_m

Re: [PATCH 1/5] tools lib fs: Add helper to find mounted file systems

2015-01-25 Thread Jiri Olsa
On Sat, Jan 24, 2015 at 01:13:31PM -0500, Steven Rostedt wrote: SNIP > /* find the path to the mounted debugfs */ > const char *debugfs_find_mountpoint(void) > { > - const char * const *ptr; > - char type[100]; > - FILE *fp; > - > if (debugfs_found) > return (co

[PATCH 1/5] tools lib fs: Add helper to find mounted file systems

2015-01-24 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" In preparation for adding tracefs for perf to use, create a findfs helper utility that find_debugfs uses instead of hard coding the search in the code. This will allow for a find_tracefs to be used as well. Signed-off-by: Steven Rostedt --- tools/lib/api/Makefi