From mboxrd@z Thu Jan 1 00:00:00 1970 From: miloody@gmail.com (loody) Date: Thu, 27 Jan 2011 13:56:56 +0800 Subject: can we measure the traffic between user and kernel mode In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org hi all: thanks for your kind reply :-) 2011/1/27 Mulyadi Santosa : > On Thu, Jan 27, 2011 at 10:42, loody wrote: >> Dear all: >> Is there any directory under proc/sys or tools that can help us to >> measure the traffic between user and kernel mode? >> (such as ioctl, open, close, etc.) > > By "traffic", you mean context switch latency? Perhaps you mean a tool > like lmbench? 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. thanks a lot, miloody > > -- > regards, > > Mulyadi Santosa > Freelance Linux trainer and consultant > > blog: the-hydra.blogspot.com > training: mulyaditraining.blogspot.com > -- Regards,