All of lore.kernel.org
 help / color / mirror / Atom feed
From: gnurou@gmail.com (Alexandre Courbot)
To: kernelnewbies@lists.kernelnewbies.org
Subject: can we measure the traffic between user and kernel mode
Date: Fri, 28 Jan 2011 10:07:15 +0900	[thread overview]
Message-ID: <AANLkTinHkU=gXf191OJWe6zYy02smdDbqSf-6qo-EFzk@mail.gmail.com> (raw)
In-Reply-To: <AANLkTik4ZhxLCJJFEU=RmSWDjKEgusUmp-QvxBx5f7Vd@mail.gmail.com>

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

strace does output to stderr unless you specify the -o option. So by
using something like

$ strace -tt your_program

or

$ strace -tt your_program &> log.txt

you will have both outputs intermingled. Note that the console output
of your program will appear in the middle of the corresponding write()
system call.

Alex.

  parent reply	other threads:[~2011-01-28  1:07 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
2011-01-27 17:45         ` Mulyadi Santosa
2011-01-30  7:50           ` loody
2011-01-28  1:07         ` Alexandre Courbot [this message]
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='AANLkTinHkU=gXf191OJWe6zYy02smdDbqSf-6qo-EFzk@mail.gmail.com' \
    --to=gnurou@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.