Re: [PATCH 11/15] tools lib api: Add mount support for fs

2015-09-04 Thread Raphaël Beamonte
2015-09-04 11:00 GMT-04:00 Steven Rostedt : > I will also add that the reason the /sys/kernel/debug directory is > created when DEBUGFS is enabled, was specifically so that tools had a > place to automatically mount it when needed. That was the entire > purpose of that directory. Makes sense! It's

Re: [PATCH 11/15] tools lib api: Add mount support for fs

2015-09-04 Thread Steven Rostedt
On Fri, 4 Sep 2015 10:57:00 -0400 Steven Rostedt wrote: > > AFAICS we do this only for debugfs and tracefs.. procfs > > and sysfs are mounted most of the time anyway > > Note, if sysfs isn't already mounted, than nothing will get mounted by > perf. As sysfs is a requirement to get to /sys/kern

Re: [PATCH 11/15] tools lib api: Add mount support for fs

2015-09-04 Thread Steven Rostedt
On Fri, 4 Sep 2015 16:26:31 +0200 Jiri Olsa wrote: > On Fri, Sep 04, 2015 at 10:14:28AM -0400, Raphaël Beamonte wrote: > > 2015-09-02 3:56 GMT-04:00 Jiri Olsa : > > > Adding name__mount (where name is in sysfs,procfs,debugfs,tracefs) > > > interface that tries to mount the filesystem in case no m

Re: [PATCH 11/15] tools lib api: Add mount support for fs

2015-09-04 Thread Jiri Olsa
On Fri, Sep 04, 2015 at 10:14:28AM -0400, Raphaël Beamonte wrote: > 2015-09-02 3:56 GMT-04:00 Jiri Olsa : > > Adding name__mount (where name is in sysfs,procfs,debugfs,tracefs) > > interface that tries to mount the filesystem in case no mount is found. > > > > Link: http://lkml.kernel.org/n/tip-ja4

Re: [PATCH 11/15] tools lib api: Add mount support for fs

2015-09-04 Thread Steven Rostedt
On Fri, 4 Sep 2015 10:14:28 -0400 Raphaël Beamonte wrote: > 2015-09-02 3:56 GMT-04:00 Jiri Olsa : > > Adding name__mount (where name is in sysfs,procfs,debugfs,tracefs) > > interface that tries to mount the filesystem in case no mount is found. > > > > Link: http://lkml.kernel.org/n/tip-ja49vwfiq

Re: [PATCH 11/15] tools lib api: Add mount support for fs

2015-09-04 Thread Raphaël Beamonte
2015-09-02 3:56 GMT-04:00 Jiri Olsa : > Adding name__mount (where name is in sysfs,procfs,debugfs,tracefs) > interface that tries to mount the filesystem in case no mount is found. > > Link: http://lkml.kernel.org/n/tip-ja49vwfiq2qqkmoxx9yk2...@git.kernel.org > Signed-off-by: Jiri Olsa > --- > to

[PATCH 11/15] tools lib api: Add mount support for fs

2015-09-02 Thread Jiri Olsa
Adding name__mount (where name is in sysfs,procfs,debugfs,tracefs) interface that tries to mount the filesystem in case no mount is found. Link: http://lkml.kernel.org/n/tip-ja49vwfiq2qqkmoxx9yk2...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/lib/api/fs/fs.c | 44 ++