linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] ftrace: support for SOFT_DISABLE to syscall events caused huge slowdown of ftrace startup test
@ 2013-12-03 17:16 Petr Mladek
  2013-12-03 17:41 ` Steven Rostedt
  0 siblings, 1 reply; 5+ messages in thread
From: Petr Mladek @ 2013-12-03 17:16 UTC (permalink / raw)
  To: Tom Zanussi, Steven Rostedt; +Cc: Jiri Kosina, linux-kernel

Hi,

I tested my ftrace-related patches and enabled also the startup test:

  CONFIG_FTRACE_SELFTEST=y
  CONFIG_FTRACE_STARTUP_TEST=y

On today's kernel/git/tip/tip.git, the boot "freezed" for 1 minute when
doing "Testing event system syscalls".

A bisect pointed finger to the commit d562aff93bfb530b099 (tracing: Add
support for SOFT_DISABLE to syscall events).

It seems that the culprit are the "synchronize_sched" calls added to
"unreg_event_syscall_enter" and "unreg_event_syscall_exit" functions.
They are called 2312 times during the boot here and are responsible for
the delay.

I wonder if it might cause slowdown also at runtime.

I am going to look deeper into the code and eventually come up with a
solution. But it might take some time. I am still newbie in the kernel
development. Any hints or tips are welcome ;-)

Best Regards,
Petr


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-12-04 12:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-03 17:16 [BUG] ftrace: support for SOFT_DISABLE to syscall events caused huge slowdown of ftrace startup test Petr Mladek
2013-12-03 17:41 ` Steven Rostedt
2013-12-03 20:46   ` Tom Zanussi
2013-12-03 22:32     ` Tom Zanussi
2013-12-04 12:47   ` Petr Mladek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).