From: Qu Wenruo <quwenruo@cn.fujitsu.com>
To: linux-perf-users@vger.kernel.org
Subject: Ideas to measure kernel function execution time using perf
Date: Tue, 19 Apr 2016 09:42:49 +0800 [thread overview]
Message-ID: <57158D19.7070307@cn.fujitsu.com> (raw)
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
next reply other threads:[~2016-04-19 1:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-19 1:42 Qu Wenruo [this message]
2016-04-19 23:37 ` Ideas to measure kernel function execution time using perf 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=57158D19.7070307@cn.fujitsu.com \
--to=quwenruo@cn.fujitsu.com \
--cc=linux-perf-users@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).