From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758115Ab0ENRaU (ORCPT ); Fri, 14 May 2010 13:30:20 -0400 Received: from fg-out-1718.google.com ([72.14.220.152]:24186 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752021Ab0ENRaR (ORCPT ); Fri, 14 May 2010 13:30:17 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=YUCHg+e/DOdfNRzuZR4yS+Cbd0MP2WOn8Dc3KKCD1RBkgCO3xshoRZaX9XZlhDMoKN M+ClZajW8dybsHa2PlHGTVviVoFDuSSnRoTS0mD9R6iacIH/wJqsTZryhMP89FWNzgyi Ig0QnLALTDEmNG5hC8J9yFaCTNjHzgAPf+8yw= Date: Fri, 14 May 2010 21:30:12 +0400 From: Cyrill Gorcunov To: Jaswinder Singh Rajput Cc: Ingo Molnar , Lin Ming , Linux Kernel Mailing List , Peter Zijlstra , Frederic Weisbecker Subject: Re: Performance Events hangs with Intel P4 system Message-ID: <20100514173012.GD13509@lenovo> References: <1273834571.3530.82.camel@minggr.sh.intel.com> <20100514115655.GA18069@elte.hu> <20100514135240.GA4952@lenovo> <20100514145213.GA13509@lenovo> <20100514162813.GB13509@lenovo> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 14, 2010 at 10:06:44PM +0530, Jaswinder Singh Rajput wrote: ... > Ok, I added few more events and now I am able see few hardware events : > > $ ./perf stat -e > cycles,instructions,cache-references,cache-misses,branches,branch-misses,bus-cycles,L1-dcache-loads,L1-dcache-load-misses,L1-dcache-stores,L1-dcache-store-misses,L1-dcache-prefetches,L1-dcache-prefetch-misses,L1-icache-loads,L1-icache-load-misses,L1-icache-prefetches,L1-icache-prefetch-misses,LLC-loads,LLC-load-misses,LLC-stores,LLC-store-misses,LLC-prefetches,LLC-prefetch-misses,dTLB-loads,dTLB-load-misses,dTLB-stores,dTLB-store-misses,dTLB-prefetches,dTLB-prefetch-misses,iTLB-loads,iTLB-load-misses > ls -lR /dev > /dev/null > ok, they work as expected. Could you try only "cycles"? The things are that different events may attempt to borrow same resources already allocated for another event, ie they can't run simultaneously. And iirc we encode only a subset of chache events. Though all "general" events should work. (by "general" events I mean "cycles", "instructions", "cache-references", "cache-misses", "branch-instructions", "branch-misses", "bus-cycles"). Could you check them one-by-one? -- Cyrill