Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757362Ab1EXUNA (ORCPT ); Tue, 24 May 2011 16:13:00 -0400 Received: from aspirin.dii.utk.edu ([160.36.0.81]:45228 "EHLO aspirin.dii.utk.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756839Ab1EXUM7 (ORCPT ); Tue, 24 May 2011 16:12:59 -0400 Date: Tue, 24 May 2011 16:12:49 -0400 (EDT) From: Vince Weaver To: Ingo Molnar cc: Peter Zijlstra , linux-kernel@vger.kernel.org, paulus@samba.org, acme@redhat.com Subject: Re: perf: regression -- missing /sys/devices/system/cpu/perf_events In-Reply-To: <20110524194810.GB27634@elte.hu> Message-ID: References: <1306246306.18455.36.camel@twins> <20110524194810.GB27634@elte.hu> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 681 Lines: 18 On Tue, 24 May 2011, Ingo Molnar wrote: > > So, what is wrong with the method Peter suggested: the presence of the perf > syscall (it not returning -ENOSYS) is bona fide evidence that perf is > available. it's just hard to do that from a shell script. also, running the perf syscall can be tricky if you have a new kernel but an older set of header files that doesn't have the syscall number defined. Vince vweaver1@eecs.utk.edu -- 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/