From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261820AbTDHOuo (for ); Tue, 8 Apr 2003 10:50:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261821AbTDHOuo (for ); Tue, 8 Apr 2003 10:50:44 -0400 Received: from air-2.osdl.org ([65.172.181.6]:19431 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S261820AbTDHOun (for ); Tue, 8 Apr 2003 10:50:43 -0400 Date: Tue, 8 Apr 2003 08:01:55 -0700 From: "Randy.Dunlap" To: "shesha bhushan" Cc: linux-kernel@vger.kernel.org, kernelnewbies@nl.linux.org Subject: Re: KERNEL PROFILING Message-Id: <20030408080155.7ce7172c.rddunlap@osdl.org> In-Reply-To: References: Organization: OSDL X-Mailer: Sylpheed version 0.8.11 (GTK+ 1.2.10; i586-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 08 Apr 2003 07:58:54 +0000 "shesha bhushan" wrote: | HI ALL, | I am trying to profile the linux kernel. Can any one suggest an easy way | to do. Like, I wanted to see how much TCP is using CPU, how much of CPU is | used in memcpy, etc. | Can any one please suggest me. Start with the file linux/Documentation/basic_profiling.txt (it's in Linux 2.5.66-or-so or later). It explains how to use oprofile and readprofile. You can read about oprofile at http://oprofile.sourceforge.net/ . You can read about basic in-kernel profiling using /proc/profile and readprofile via 'man readprofile'. It's simple to use. -- ~Randy