Thread (14 messages) 14 messages, 5 authors, 2011-01-31

can we measure the traffic between user and kernel mode

From: loody <hidden>
Date: 2011-01-27 13:48:53

hi all:

2011/1/27 Mulyadi Santosa [off-list ref]:
On Thu, Jan 27, 2011 at 12:56, loody [off-list ref] wrote:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help