Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760260Ab1D2RR1 (ORCPT ); Fri, 29 Apr 2011 13:17:27 -0400 Received: from mail-vx0-f174.google.com ([209.85.220.174]:60891 "EHLO mail-vx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759983Ab1D2RR0 convert rfc822-to-8bit (ORCPT ); Fri, 29 Apr 2011 13:17:26 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=Vs5NmJ2dMYQgsxVX1gp1oBJ8gyQvTFtdqVfYYWZ4nQgo7fzg/khiyXV/PMkzsb6AHu sOW8atYEVaqj++TwyHX2YdQ6ZSd9M+dhS1sZ+hn4VnVfDe83Ox5TQV9J8zu2OhdIZ5pZ gtrsaBSCP317TNOSEvGHsj636zor28WGnaEOw= MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 29 Apr 2011 20:17:24 +0300 X-Google-Sender-Auth: BNp2_2Tibtv6OcR_eoOniKhLFEc Message-ID: Subject: Re: re-enable Nehalem raw Offcore-Events support From: Pekka Enberg To: Vince Weaver Cc: torvalds@linux-foundation.org, Ingo Molnar , linux-kernel@vger.kernel.org, Peter Zijlstra , Stephane Eranian , Andi Kleen Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1674 Lines: 38 Hi Vince, On Fri, Apr 29, 2011 at 6:04 PM, Vince Weaver wrote: > Hello Linus > > can you revert the commit b52c55c6a25e4515b5e075a989ff346fc251ed09 > > This removed functionality from perf_events that allowed raw event access > for OFFCORE_EVENTS type events on Nehalem and Westmere cpus. > > To be fair, this is not technically a regression as the feature was only > (finally!) added in the 2.6.39 merge window. ?However this is a useful > feature and many tools (including the PAPI performance counter library > that I work on) had added support for it in anticipation of the 2.6.39 > release. > > Ingo's reasons for removing the feature seem to boil down to > ?1. ?"perf" doesn't use the functionality, and any other userspace > ? ? ?program that uses the perf_events syscalls don't matter > ?2. ?Users are too stupid to use the raw functionality properly; > ? ? ?we should only allow a kernel-developer-approved small subset > ? ? ?of the features provided by the CPU as described in the intel > ? ? ?developers manuals. > > #2 seems like a gross misinterpretation of the whole "Linux gives you > enough rope to shoot yourself in the foot" policy from days passed, but > maybe things have moved on. That's a gross misrepresentation of what Ingo has been saying on LKML. Really, learn to work with relevant maintainers before you ask Linus to revert something. Pekka -- 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/