Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755509Ab2JVPkL (ORCPT ); Mon, 22 Oct 2012 11:40:11 -0400 Received: from mga02.intel.com ([134.134.136.20]:33955 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755439Ab2JVPjx (ORCPT ); Mon, 22 Oct 2012 11:39:53 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.80,630,1344236400"; d="scan'208";a="230683766" Date: Mon, 22 Oct 2012 08:39:52 -0700 From: Andi Kleen To: Stephane Eranian Cc: LKML , Peter Zijlstra , "mingo@elte.hu" , Arnaldo Carvalho de Melo , Jiri Olsa Subject: Re: [PATCH v2 1/2] perf tools: add event modifier to request exclusive PMU access Message-ID: <20121022153952.GM2095@tassilo.jf.intel.com> References: <1350912052-10066-1-git-send-email-eranian@google.com> <1350912052-10066-2-git-send-email-eranian@google.com> <20121022135358.GJ2095@tassilo.jf.intel.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 Content-Length: 819 Lines: 26 > But maybe you're talking about a generic event exports in > /sys/device/cpu/events. > But why would I expose prec_dist there. And under what name? I already exposed it in the Haswell patchkit (instructions-p) I also exposed precise there so that some events can be forced PEBS If you want to expose it on Sandy Bridge too you need to add the event to the user tool grammar, like I did for precise. Then user can just use perf record -e instructions-p ... and the kernel does automagically the right thing. -Andi -- ak@linux.intel.com -- Speaking for myself only -- 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/