Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757537Ab0GATzI (ORCPT ); Thu, 1 Jul 2010 15:55:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:19712 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754553Ab0GATzG (ORCPT ); Thu, 1 Jul 2010 15:55:06 -0400 Date: Thu, 1 Jul 2010 16:54:40 -0300 From: Arnaldo Carvalho de Melo To: Vince Weaver Cc: Ingo Molnar , LKML , Peter Zijlstra , Paul Mackerras Subject: Re: [PATCH] perf wrong branches event on AMD Message-ID: <20100701195439.GJ4078@ghostprotocols.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 903 Lines: 25 Em Thu, Jul 01, 2010 at 03:30:16PM -0400, Vince Weaver escreveu: > Hello > > while doing some performance counter validation tests on some assembly > language programs I noticed that the "branches:u" count was very wrong on > AMD machines. > > It looks like the wrong event was selected. > > This is why event selection needs to be in user-space... it could be fixed > instantly there, but the way things are done now it will take months to > years for this fix to filter down to those trying to use perf counters... Well, you can use: rNNN (see 'perf list --help' on how to encode it) [Raw hardware event descriptor] In the meantime. - Arnaldo -- 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/