All of lore.kernel.org
 help / color / mirror / Atom feed
From: miloody@gmail.com (loody)
To: kernelnewbies@lists.kernelnewbies.org
Subject: can we measure the traffic between user and kernel mode
Date: Thu, 27 Jan 2011 21:48:53 +0800	[thread overview]
Message-ID: <AANLkTik4ZhxLCJJFEU=RmSWDjKEgusUmp-QvxBx5f7Vd@mail.gmail.com> (raw)
In-Reply-To: <AANLkTikZnE39b34UowE9OPW=dqfHr_d8oFtY2kb+mbgP@mail.gmail.com>

hi all:

2011/1/27 Mulyadi Santosa <mulyadi.santosa@gmail.com>:
> On Thu, Jan 27, 2011 at 12:56, loody <miloody@gmail.com> wrote:
>> I got a user-mode application without symbol and source, and it keeps
>> console no response about 2 mins.
>> I just want to know whether it is busy on processing itself or do the
>> context switch frequently for calling kernel drivers at that time.
>
> well then, strace/ltrace is probably the right tool to do the job :)
> or just use /proc/<pid>/stack :)
I have tried the suggestions you gave. :)

Can I combine all the message together?
Supposedly, my console shows:
A begins
A finish
B begins
B finish
and I measure 2mins from '#A finish' to "#B begins".

I can "strace -o -tt 123 a.out" before "A begin" but how could I
combine console output with the content of strace?
such as
A begins
strace content ......
A finish
strace content ......
B begins
strace content ......
B finish

appreciate your kind help :-)
miloody

  parent reply	other threads:[~2011-01-27 13:48 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-27  3:42 can we measure the traffic between user and kernel mode loody
2011-01-27  4:41 ` Alexandre Courbot
2011-01-27  5:02 ` Mulyadi Santosa
2011-01-27  5:56   ` loody
2011-01-27  6:20     ` Mulyadi Santosa
2011-01-27 11:56       ` Pravin Shedage
2011-01-27 13:48       ` loody [this message]
2011-01-27 17:45         ` Mulyadi Santosa
2011-01-30  7:50           ` loody
2011-01-28  1:07         ` Alexandre Courbot
2011-01-30  8:07           ` loody
2011-01-31  1:38             ` Alexandre Courbot
2011-01-31  1:40               ` Alexandre Courbot
2011-01-27  5:56 ` Michael Blizek

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='AANLkTik4ZhxLCJJFEU=RmSWDjKEgusUmp-QvxBx5f7Vd@mail.gmail.com' \
    --to=miloody@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.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 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.