Re: can we measure the traffic between user and kernel mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux