Re: [PATCH RESEND] tracing: Make tracing work when debugfs is not compiled or initialized.

2015-11-06 Thread Jiaxing Wang
On Thu, Nov 05, 2015 at 10:54:32AM -0500, Steven Rostedt wrote: > On Thu, 5 Nov 2015 13:23:01 +0800 > Jiaxing Wang wrote: > > > > > - /* > > > > -* As there may still be users that expect the tracing > > > > -* files to exist in debugfs/tracing, we must automount > > > > -

Re: [PATCH RESEND] tracing: Make tracing work when debugfs is not compiled or initialized.

2015-11-06 Thread Jiaxing Wang
On Thu, Nov 05, 2015 at 10:54:32AM -0500, Steven Rostedt wrote: > On Thu, 5 Nov 2015 13:23:01 +0800 > Jiaxing Wang wrote: > > > > > - /* > > > > -* As there may still be users that expect the tracing > > > > -* files to exist in debugfs/tracing, we must

Re: [PATCH RESEND] tracing: Make tracing work when debugfs is not compiled or initialized.

2015-11-05 Thread Steven Rostedt
On Thu, 5 Nov 2015 13:23:01 +0800 Jiaxing Wang wrote: > > > - /* > > > - * As there may still be users that expect the tracing > > > - * files to exist in debugfs/tracing, we must automount > > > - * the tracefs file system there, so older tools still > > > - * work with the newer kerenl. >

Re: [PATCH RESEND] tracing: Make tracing work when debugfs is not compiled or initialized.

2015-11-05 Thread Steven Rostedt
On Thu, 5 Nov 2015 13:23:01 +0800 Jiaxing Wang wrote: > > > - /* > > > - * As there may still be users that expect the tracing > > > - * files to exist in debugfs/tracing, we must automount > > > - * the tracefs file system there, so older tools still > > > - * work with

Re: [PATCH RESEND] tracing: Make tracing work when debugfs is not compiled or initialized.

2015-11-04 Thread Jiaxing Wang
On Wed, Nov 04, 2015 at 10:03:39AM -0500, Steven Rostedt wrote: > On Wed, 4 Nov 2015 09:11:18 +0800 > Jiaxing Wang wrote: > > > Currently tracing_init_dentry() returns -ENODEV when debugfs is not > > initialized, which causes tracefs not populated with tracing files and > > directories, so we

Re: [PATCH RESEND] tracing: Make tracing work when debugfs is not compiled or initialized.

2015-11-04 Thread Steven Rostedt
On Wed, 4 Nov 2015 10:54:42 -0800 Greg Kroah-Hartman wrote: > On Wed, Nov 04, 2015 at 10:03:39AM -0500, Steven Rostedt wrote: > > On Wed, 4 Nov 2015 09:11:18 +0800 > > Jiaxing Wang wrote: > > > > > Currently tracing_init_dentry() returns -ENODEV when debugfs is not > > > initialized, which

Re: [PATCH RESEND] tracing: Make tracing work when debugfs is not compiled or initialized.

2015-11-04 Thread Greg Kroah-Hartman
On Wed, Nov 04, 2015 at 10:03:39AM -0500, Steven Rostedt wrote: > On Wed, 4 Nov 2015 09:11:18 +0800 > Jiaxing Wang wrote: > > > Currently tracing_init_dentry() returns -ENODEV when debugfs is not > > initialized, which causes tracefs not populated with tracing files and > > directories, so we

Re: [PATCH RESEND] tracing: Make tracing work when debugfs is not compiled or initialized.

2015-11-04 Thread Steven Rostedt
On Wed, 4 Nov 2015 09:11:18 +0800 Jiaxing Wang wrote: > Currently tracing_init_dentry() returns -ENODEV when debugfs is not > initialized, which causes tracefs not populated with tracing files and > directories, so we will get an empty directory even after we manually > mount tracefs. > > We

Re: [PATCH RESEND] tracing: Make tracing work when debugfs is not compiled or initialized.

2015-11-04 Thread Steven Rostedt
On Wed, 4 Nov 2015 10:54:42 -0800 Greg Kroah-Hartman wrote: > On Wed, Nov 04, 2015 at 10:03:39AM -0500, Steven Rostedt wrote: > > On Wed, 4 Nov 2015 09:11:18 +0800 > > Jiaxing Wang wrote: > > > > > Currently tracing_init_dentry() returns

Re: [PATCH RESEND] tracing: Make tracing work when debugfs is not compiled or initialized.

2015-11-04 Thread Jiaxing Wang
On Wed, Nov 04, 2015 at 10:03:39AM -0500, Steven Rostedt wrote: > On Wed, 4 Nov 2015 09:11:18 +0800 > Jiaxing Wang wrote: > > > Currently tracing_init_dentry() returns -ENODEV when debugfs is not > > initialized, which causes tracefs not populated with tracing files and > >

Re: [PATCH RESEND] tracing: Make tracing work when debugfs is not compiled or initialized.

2015-11-04 Thread Steven Rostedt
On Wed, 4 Nov 2015 09:11:18 +0800 Jiaxing Wang wrote: > Currently tracing_init_dentry() returns -ENODEV when debugfs is not > initialized, which causes tracefs not populated with tracing files and > directories, so we will get an empty directory even after we manually >

Re: [PATCH RESEND] tracing: Make tracing work when debugfs is not compiled or initialized.

2015-11-04 Thread Greg Kroah-Hartman
On Wed, Nov 04, 2015 at 10:03:39AM -0500, Steven Rostedt wrote: > On Wed, 4 Nov 2015 09:11:18 +0800 > Jiaxing Wang wrote: > > > Currently tracing_init_dentry() returns -ENODEV when debugfs is not > > initialized, which causes tracefs not populated with tracing files and > >

[PATCH RESEND] tracing: Make tracing work when debugfs is not compiled or initialized.

2015-11-03 Thread Jiaxing Wang
Currently tracing_init_dentry() returns -ENODEV when debugfs is not initialized, which causes tracefs not populated with tracing files and directories, so we will get an empty directory even after we manually mount tracefs. We can make tracing_init_dentry() return NULL as long as tracefs is

[PATCH RESEND] tracing: Make tracing work when debugfs is not compiled or initialized.

2015-11-03 Thread Jiaxing Wang
Currently tracing_init_dentry() returns -ENODEV when debugfs is not initialized, which causes tracefs not populated with tracing files and directories, so we will get an empty directory even after we manually mount tracefs. We can make tracing_init_dentry() return NULL as long as tracefs is