Re: tracer_init_tracefs really slow

2020-12-09 Thread Steven Rostedt
On Wed, 09 Dec 2020 15:38:50 +0100 Lucas Stach wrote: > - trace_eval_init(); > - > ... and this. Moving the trace_eval_init into its own initcall means it > gets started before tracer_init_tracefs. As it holds the > trace_event_sem while updating the eval maps, event_trace_init() then > block

Re: tracer_init_tracefs really slow

2020-12-09 Thread Lucas Stach
Hi Steven, Am Montag, den 07.12.2020, 14:47 -0500 schrieb Steven Rostedt: On Mon, 07 Dec 2020 17:24:58 +0100 Lucas Stach wrote: > I would be happy to test a patch on our whimpy machines, though. :) Let me know if this helps: -- Steve diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c in

Re: tracer_init_tracefs really slow

2020-12-07 Thread Steven Rostedt
On Mon, 07 Dec 2020 17:24:58 +0100 Lucas Stach wrote: > I would be happy to test a patch on our whimpy machines, though. :) Let me know if this helps: -- Steve diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 06134189e9a7..48aa5b6a7d15 100644 --- a/kernel/trace/trace.c +++ b/kern

Re: tracer_init_tracefs really slow

2020-12-07 Thread Steven Rostedt
On Mon, 07 Dec 2020 17:24:58 +0100 Lucas Stach wrote: > > We could make a thread that does this, that the init wakes up and runs, > > letting the kernel to move forward. Would you like to make that patch > > or shall I? > > I guess you are much more likely to come up with a correct patch, as >

Re: tracer_init_tracefs really slow

2020-12-07 Thread Lucas Stach
Hi Steven, Am Donnerstag, den 03.12.2020, 21:18 -0500 schrieb Steven Rostedt: > Sorry for the really late reply, but I received this while I was on > vacation, and my backlog was so big when I got back that I left most of > it unread. :-/ And to make matters worse, my out-of-office script > wasn'

Re: tracer_init_tracefs really slow

2020-12-03 Thread Steven Rostedt
Sorry for the really late reply, but I received this while I was on vacation, and my backlog was so big when I got back that I left most of it unread. :-/ And to make matters worse, my out-of-office script wasn't working, to let people know I was on vacation. On Mon, 07 Sep 2020 18:16:52 +0200

tracer_init_tracefs really slow

2020-09-07 Thread Lucas Stach
Hi all, one of my colleagues has taken a look at device boot times and stumbled across a pretty big amount of kernel boot time being spent in tracer_init_tracefs(). On this particular i.MX6Q based device the kernel spends more than 1 second in this function, which is a significant amount of the ov