[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <AANLkTinVncBZdNwBxgSb=BmnMes3LSrMF-r-NAq=T_YQ@mail.gmail.com>
Date: Tue, 4 Jan 2011 16:30:56 +0100
From: Stephane Eranian <eranian@...gle.com>
To: Arnaldo Carvalho de Melo <acme@...radead.org>
Cc: linux-kernel@...r.kernel.org,
Frederic Weisbecker <fweisbec@...il.com>,
Han Pingtian <phan@...hat.com>, Mike Galbraith <efault@....de>,
Paul Mackerras <paulus@...ba.org>,
Peter Zijlstra <peterz@...radead.org>,
Tom Zanussi <tzanussi@...il.com>,
Thomas Gleixner <tglx@...utronix.de>, mingo@...e.hu
Subject: Re: [GIT PULL||RFC 00/11] perf library and regression testing improvements
On Tue, Jan 4, 2011 at 4:30 PM, Stephane Eranian <eranian@...gle.com> wrote:
> Just submitted a patch to fix this.
>
That also means that on your build machine, you have a matching perf_event.h.
You cannot expect this from most distros.
>
> On Tue, Jan 4, 2011 at 4:24 PM, Arnaldo Carvalho de Melo
> <acme@...radead.org> wrote:
>> 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
>>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists