From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751726Ab1ADPZC (ORCPT ); Tue, 4 Jan 2011 10:25:02 -0500 Received: from casper.infradead.org ([85.118.1.10]:38316 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751300Ab1ADPZB (ORCPT ); Tue, 4 Jan 2011 10:25:01 -0500 Date: Tue, 4 Jan 2011 13:24:42 -0200 From: Arnaldo Carvalho de Melo To: Stephane Eranian Cc: linux-kernel@vger.kernel.org, Frederic Weisbecker , Han Pingtian , Mike Galbraith , Paul Mackerras , Peter Zijlstra , Tom Zanussi , Thomas Gleixner , mingo@elte.hu Subject: Re: [GIT PULL||RFC 00/11] perf library and regression testing improvements Message-ID: <20110104152442.GG19989@ghostprotocols.net> References: <20110104140338.GA19989@ghostprotocols.net> <20110104141958.GC19989@ghostprotocols.net> <20110104142715.GD19989@ghostprotocols.net> <20110104143658.GF19989@ghostprotocols.net> 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.21 (2010-09-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Jan 04, 2011 at 04:10:17PM +0100, Stephane Eranian escreveu: > Ok, The problem comes both files picking up a different verison for > perf_event.h. > > In my case, util/evsel.c was using /usr/include/linux/perf_event.h whereas > builtin-stat.c was using ../../include/linux/perf_event.h. Both have a different > struct perf_event_attr. > > When I remove the /usr/include/linux/perf_event.h file, then I cannot compile > perf anymore: > In file included from perf.c:15: > util/parse-events.h:7:30: error: linux/perf_event.h: No such file or directory > > Looks like something changed in the Makefile and the util modules don't know > where to pickup perf_event.h Ouch, all need to use ../../include/linux/perf_event.h, I think, my bad, checking that. Thanks for figuring out the issue! - Arnaldo