From: Taeung Song <treeze.taeung@gmail.com>
To: Namhyung Kim <namhyung@kernel.org>
Cc: Arnaldo Carvalho de Melo <arnaldo.melo@gmail.com>,
perf group <linux-perf-users@vger.kernel.org>
Subject: [Question] perf ftrace: regarding thread ID
Date: Thu, 26 Jan 2017 21:19:04 +0900 [thread overview]
Message-ID: <7c637f38-9b46-07a1-1ff4-42c7e568a531@gmail.com> (raw)
Hi, Namhyung :)
I saw new 'ftrace' tool that was applied yesterday.
If running perf ftrace as below..
1) current tracer : function_graph
# perf ftrace -t function_graph /usr/toybox/bin/usleep 123456 | head -5
2) 0.171 us | finish_task_switch();
2) 0.070 us | finish_wait();
2) | mutex_lock() {
2) 0.035 us | _cond_resched();
2) 0.423 us | }
2) current tracer : function
# perf ftrace -t function /usr/toybox/bin/usleep 123456 | head -5
<...>-24384 [002] d... 14170.310700: finish_task_switch
<-__schedule
<...>-24384 [002] .... 14170.310701: finish_wait <-pipe_wait
<...>-24384 [002] .... 14170.310702: mutex_lock <-pipe_wait
<...>-24384 [002] .... 14170.310702: _cond_resched <-mutex_lock
<...>-24384 [002] .... 14170.310702:
generic_pipe_buf_confirm <-pipe_read
If tracer is 'function', we can see tids.
But if tracer is 'function_graph', they aren't appeared.
So, I think tids should be printed both 'function' and 'function_graph'
like below.
(such as uftrace :) )
# perf ftrace -t function_graph /usr/toybox/bin/usleep 123456 | head -5
2) 0.171 us [24384] | finish_task_switch();
2) 0.070 us [24384] | finish_wait();
2) | mutex_lock() {
2) 0.035 us [24384] | _cond_resched();
2) 0.423 us [24384] | }
What do you think about this ?
How about this ?
Thanks,
Taeung
reply other threads:[~2017-01-26 12:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=7c637f38-9b46-07a1-1ff4-42c7e568a531@gmail.com \
--to=treeze.taeung@gmail.com \
--cc=arnaldo.melo@gmail.com \
--cc=linux-perf-users@vger.kernel.org \
--cc=namhyung@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).