From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756546Ab2JJNlU (ORCPT ); Wed, 10 Oct 2012 09:41:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:9177 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756321Ab2JJNlS (ORCPT ); Wed, 10 Oct 2012 09:41:18 -0400 Date: Wed, 10 Oct 2012 15:40:20 +0200 From: Jiri Olsa To: Stephane Eranian Cc: LKML , Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Paul Mackerras , Corey Ashford , Frederic Weisbecker Subject: Re: [PATCHv4 0/8] perf, tool: Allow to use hw events in PMU syntax Message-ID: <20121010134020.GA14897@krava.brq.redhat.com> References: <1349873598-12583-1-git-send-email-jolsa@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 10, 2012 at 03:34:53PM +0200, Stephane Eranian wrote: > On Wed, Oct 10, 2012 at 2:53 PM, Jiri Olsa wrote: > > hi, > > here's the change to make following syntax available: > > perf stat -e cpu/event=instructions/u ls > > perf stat -e cpu/cycles/u ls > > > Unless, I am mistaken but I did not see in your patch where you adjust the list > of generic Hw events (and encodings) you expose via sysfs based on CPU model > number. Some generic HW PMU may not have actual physical mappings. Look > at IvyBridge, for instance. hm, path 2 remove any attribute that is not defined via x86_pmu.event_map, if that's what you mean.. jirka