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: Sun, 30 Jan 2011 16:07:35 +0800	[thread overview]
Message-ID: <AANLkTinrr=OqCW+ssw93_D5Tunjo3cPoAFeHD95kRNkR@mail.gmail.com> (raw)
In-Reply-To: <AANLkTinHkU=gXf191OJWe6zYy02smdDbqSf-6qo-EFzk@mail.gmail.com>

hi:
2011/1/28 Alexandre Courbot <gnurou@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.
I have tried both ways you mentioned.
in case 1:
it did interleave the output of standard output with standard error.
in case 2:
the standard output seems will be collect for flush at later,
combine.strace.txt.
(I attach the testing result for your reference.)
theoretically, file re-direction should not be effect the content of
output, right?
appreciate your help :-)
miloody.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strace.output.tar.bz2
Type: application/x-bzip2
Size: 1882 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110130/5b02b45e/attachment.bz2 

  reply	other threads:[~2011-01-30  8: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
2011-01-30  8:07           ` loody [this message]
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='AANLkTinrr=OqCW+ssw93_D5Tunjo3cPoAFeHD95kRNkR@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.