Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422812AbWJOTYZ (ORCPT ); Sun, 15 Oct 2006 15:24:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1422814AbWJOTYZ (ORCPT ); Sun, 15 Oct 2006 15:24:25 -0400 Received: from outpost.ds9a.nl ([213.244.168.210]:31666 "EHLO outpost.ds9a.nl") by vger.kernel.org with ESMTP id S1422812AbWJOTYZ (ORCPT ); Sun, 15 Oct 2006 15:24:25 -0400 Date: Sun, 15 Oct 2006 21:24:23 +0200 From: bert hubert To: ranjith kumar Cc: linux-kernel@vger.kernel.org Subject: Re: privilege levels and kernel mode Message-ID: <20061015192423.GA22346@outpost.ds9a.nl> Mail-Followup-To: bert hubert , ranjith kumar , linux-kernel@vger.kernel.org References: <20061015191716.15283.qmail@web27401.mail.ukl.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061015191716.15283.qmail@web27401.mail.ukl.yahoo.com> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 784 Lines: 19 On Sun, Oct 15, 2006 at 08:17:16PM +0100, ranjith kumar wrote: > memory reads, number of cache misses occured while > running a "C" program. For that I have to wright some > values into "Model specific registers of pentium-4 > processor". But those registers can be written ONLY at > privilege level of zero of pentium4 processor. Look at 'perfmon' and 'perfctr', they give you what you want. -- http://www.PowerDNS.com Open source, database driven DNS Software http://netherlabs.nl Open and Closed source services - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/