All of lore.kernel.org
 help / color / mirror / Atom feed
* Ideas to measure kernel function execution time using perf
@ 2016-04-19  1:42 Qu Wenruo
  2016-04-19 23:37 ` Masami Hiramatsu
  2016-04-20 13:09 ` Andi Kleen
  0 siblings, 2 replies; 5+ messages in thread
From: Qu Wenruo @ 2016-04-19  1:42 UTC (permalink / raw)
  To: linux-perf-users

Hi,

Is there any method to measure kernel function execution time for 
specific functions using perf?

Current ftrace events can only record the timestamp when hitting the 
trace point (along with some other info).

I'm OK adding new ftrace events into kernel, but even after adding such 
ftrace events, is it possible to use perf to calculate the function 
execution time?

Any advice is welcomed.

Thanks,
Qu

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

end of thread, other threads:[~2016-04-20 13:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-19  1:42 Ideas to measure kernel function execution time using perf Qu Wenruo
2016-04-19 23:37 ` Masami Hiramatsu
2016-04-20  0:52   ` Qu Wenruo
2016-04-20  2:02   ` Arnaldo Carvalho de Melo
2016-04-20 13:09 ` Andi Kleen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.